Re: Override index.php for a subdirectory

2013-12-18 Thread Lorenzo Milesi
> 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

Re: Override index.php for a subdirectory

2013-12-17 Thread Francis Daly
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

Override index.php for a subdirectory

2013-12-17 Thread Lorenzo Milesi
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