> You will probably want your new location, which will probably use "^~",
> to be in the same server{} block as the rest of your configuration.
Thanks for your suggestion.
For benefit of others I solved this way:
server {
[...]
location /work/management_site/ {
location ~ \.(js
On Tue, Dec 17, 2013 at 12:26:16PM +0100, Lorenzo Milesi wrote:
Hi there,
> I need to override default index file for a subdirectory only.
http://nginx.org/r/location
Make sure that requests for this subdirectory only are handled in a
specific location block.
Set the default index file within
Hi.
I need to override default index file for a subdirectory only.
My actual config (pretty much ubuntu's default):
server {
listen 80 default_server;
root /var/www;
index index.php index.html index.htm;
server_name localhost;
location / {
try_files $uri $uri/ /index.h