Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6025

Response header of apache 2.4.52 Server (ubuntu) is not correct

$
0
0

Wondering why my apache 2.4.52 (Ubuntu) Server is giving me a response Header "content-type": "text/html" when my requested should be a "content-type":"application/json".'However when I run my code on my webpack dev server locally everything works fine.When I upload my programmstructure to my ubuntu apache server and when I access it to try my website I always get this GET error:Screenshot of my error:

Should I use another server than apache? I am stuck. Would be really cool if someone is able to help me.

Thank you!

I changed the apache2.conf file according to youtube. However it did not fix my issue. See here what I changed in the file: Screenshot of my apache2.conf file

I created the file httpd.conf (it is empty and not required in any other file by now).

The problem must be with the apache2 server. My code is running in my webpack dev server without any problem.


Viewing all articles
Browse latest Browse all 6025

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>