index directive not taking effect in case of alias

Maxim Dounin mdounin at mdounin.ru
Wed Aug 22 11:34:29 UTC 2012


Hello!

On Wed, Aug 22, 2012 at 07:07:42AM -0400, yashgt wrote:

> I would like the pnp4nagios app to be accessed as:
> http://server/pnp4nagios/. With this URL it gives a 403 Forbidden error. It
> works when I give: http://server/pnp4nagios/index.php.
> What might be wrong?
> 
> Here is the pnp4nagios location config:
> 
>     location ~ /pnp4nagios {
>         alias $pnp4nagiosbase/share;

-     location ~ /pnp4nagios {
+     location /pnp4nagios {

[...]

Maxim Dounin



More information about the nginx mailing list