Missing slash on URL?

Floren Munteanu nginx at yqed.com
Sun May 25 23:32:41 MSD 2008




> -----Original Message-----
> From: Igor Sysoev [mailto:is-G97k7egY2jIKNkxEY4oc4w at public.gmane.org]
> Posted At: Sunday, May 25, 2008 2:40 PM Posted To: 
> gmane.comp.web.nginx.english
> Conversation: Missing slash on URL?
> Subject: Re: Missing slash on URL?
> 
> First, instead of
> 
>              if (-f $request_filename) {
>                    break;
>              }
> 
>              if (!-e $request_filename) {
>                    rewrite ^.*$ /404.html last;
>              }
> 
> it's better to use:
> 
>              error_page  404  =/404.html;
> 

Thanks Igor, I will do that.

> 
> Do
>        /var/www/html/forum
> and
>        /var/www/html/forum/index.php
> 
> exist ?
> 

/var/www/html/forum is a directory, not a file.
/var/www/html/forum/index.php exist and is readable, can be accessed through
a browser.

Thanks for clearing this.








More information about the nginx mailing list