I need to append an hashbang - # to all of my requests to make my Javascript-based routing happy. It works as I want it to, but I get double slashes appended to my URL's making them look like this: http://www.example.com//page/2 What am I doing wrong in the config below? server { listen 80; server_name example.com *.example.com; location / { root /var/www/examplby Joakim - Migration from Other Servers
Thanks Edho! That did it. I tried cleaning the cache when I first saw the error, but as I tried different settings I forgot to clean again. Never thought it were that simple :)by Joakim - Nginx Mailing List - English
Hi Mathias, Thanks for your answer. That won't do it unfortunately. Also tried moving the "try_files" param out of the "location /" bracket - no luck with that either. What I did when setting up Nginx was following the instructions in the /etc/nginx/sites-available/default config file. So I created my new file containing the above config in "/etc/nginx/sites-availablby Joakim - Nginx Mailing List - English
Hi guys, I've just setup nginx on my Ubuntu staging machine. Entering http://192.168.1.1/index.php works like a charm and loads the index.php file i've put in the /var/www/public_html folder. http://192.168.1.1 however instead shows the "Welcome to nginx!" page and not my index.php file. What am I doing wrong? Here's my nginx config: server { listen 80 default;by Joakim - Nginx Mailing List - English