index.php and autoindex on

basti mailinglist at unix-solution.de
Wed Oct 11 08:46:36 UTC 2017


Hello again,

OK i have fixed it.

On 11.10.2017 09:58, basti wrote:
> 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
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
> 


More information about the nginx mailing list