8 messages in ru.sysoev.nginxRe: Missing slash on URL?
FromSent OnAttachments
Floren MunteanuMay 24, 2008 12:42 pm 
Jeffrey 'jf' LimMay 25, 2008 6:46 am 
Igor SysoevMay 25, 2008 11:39 am 
Floren MunteanuMay 25, 2008 12:32 pm 
Igor SysoevMay 27, 2008 1:38 am 
Floren MunteanuMay 28, 2008 9:39 pm 
Jeffrey 'jf' LimMay 28, 2008 10:44 pm 
Floren MunteanuMay 29, 2008 3:08 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Missing slash on URL?Actions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:May 27, 2008 1:38:55 am
List:ru.sysoev.nginx

On Sun, May 25, 2008 at 03:32:41PM -0400, Floren Munteanu wrote:

-----Original Message----- From: Igor Sysoev
[mailto:is-G@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.

Sorry, I had mistyped:

- error_page 404 =/404.html; + error_page 404 = /404.html;

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.

Then /forum will be handled in location '/' as static file or dir, and it will be redirected to /forum/.