Re: Make 1 root file accessible, and serve it for all requests

2013-10-21 Thread Jonah
B.R., Thanks very much! That was incredibly helpful. I had to make a couple minor tweaks to get it working, and I wanted a 302 instead of a 301, but the following is what I ended up with, and it had the added benefit of cutting response time almost in half when I did a load test: server { lis

Make 1 root file accessible, and serve it for all requests

2013-10-20 Thread Jonah
} # map everything in base dir to one file location ~ ^/[^/]*$ { rewrite ^/[^/]*$ /index.html; } location ~ ^/css/ { } location ~ ^/js/ { } } --- END CODE Thanks! Jonah Posted at Nginx Forum: htt