index.php and autoindex on

basti mailinglist at unix-solution.de
Wed Oct 11 07:58:13 UTC 2017


Hello,

i have a config look like

server {
   servername example.com
....

   location /foo {
	index index.php;
	proxy_pass ...
	...
   }

root /some/path;
autoindex on;
...
}

I want Autoindex if url is
example.com/

and want to run index.php if url is example.com/foo but in this dir I
can also see all files.

Best Regards,
Basti


More information about the nginx mailing list