Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

[SOLVED] NGINX using server_name twice for all requests, resuling in 404

$
0
0
EDIT: This has now been resolved.

This wasn't exactly an NGINX issue but rather an issue with my index.html.

All the <a> tags were referencing href="anna.home/path_to.." and as I also had the root directive set as /var/www/anna.home, the URLs were basically turning out as http://anna.home/anna.home/path_to..

Regenerating the hugo site with baseURL variable set to "" within my config.toml all my contents are now discoverable and the webpage loads properly.

I did try to change my root directive within nginx.conf to /var/www and set the location directive below it to anna.home/ however I kept getting 403 eventho all my directories had 0755 and all my files had 0644.

Viewing all articles
Browse latest Browse all 4759

Latest Images

Trending Articles



Latest Images

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