atom feed8 messages in ru.sysoev.nginxRE: error_page
FromSent OnAttachments
Glen LumanauMay 11, 2010 10:25 pm 
Igor SysoevMay 11, 2010 11:44 pm 
Glen LumanauMay 11, 2010 11:53 pm 
Igor SysoevMay 12, 2010 12:01 am 
Glen LumanauMay 12, 2010 12:11 am 
Igor SysoevMay 12, 2010 12:15 am 
Glen LumanauMay 12, 2010 12:21 am 
Igor SysoevMay 12, 2010 12:30 am 
Subject:RE: error_page
From:Glen Lumanau (gl@lumanau.web.id)
Date:May 12, 2010 12:11:09 am
List:ru.sysoev.nginx

location / { expires 60; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_pass http://lb; }

Which is http://lb is forwarded to my fastcgi daemon

-----Original Message----- From: Igor Sysoev [mailto:ig@sysoev.ru] Sent: 12 Mei 2010 14:02 To: ngi@nginx.org Subject: Re: error_page

On Wed, May 12, 2010 at 01:53:41PM +0700, Glen Lumanau wrote:

server { listen 80; index index.php index.html; root /home/mysite;

error_page 403 /error-page/403.html; error_page 404 /error-page/404.html;

location / { ... } }

In my test this works as expoected. What is in "location /" ?

-----Original Message----- From: Igor Sysoev [mailto:ig@sysoev.ru] Sent: 12 Mei 2010 13:45 To: ngi@nginx.org Subject: Re: error_page

On Wed, May 12, 2010 at 12:25:55PM +0700, Glen Lumanau wrote:

Dear millis,

I have set like this

error_page 403 /error-page/403.html;

however when I open http://mydomain.com/error-page/ is still giving me forbidden msg default by nginx.

This's shown on my error log

2010/05/12 12:19:31 [error] 14785#0: *727087 directory index of "/home/mysite/error-page/" is forbidden, client: 1.2.1.4, server: www.mydomain.com, request: "GET /error-page/ HTTP/1.0", host: "www.mydomain.com"

Where is this "error_page ...": on server or location level ?