HEAD and Nginx nginx-0.6.36-1.el5
Gena Makhomed
gmm at csdoc.com
Mon Sep 14 20:18:00 MSD 2009
On Monday, September 14, 2009 at 17:21:42, xmichielx wrote:
x> I tried to configure proxy_redirect but still got the 404.
see into error.log and access.log from nginx and apache for cause.
if not help with default loglevel - set loglevel to info or debug.
x> This my httpd.conf:
x> ServerAdmin webmaster at myce.nl
x> ServerName 172.23.3.14
x> CustomLog logs/css-proxy-access.log combined
x> DocumentRoot /var/www/www.staging.myler.nl/web-docs
x> ProxyPass / http://www.staging.myler.nl/
x> But still not working :(
x> I have disabled on other nginx + apache hosts the proxy_redirect
x> and is working but do I understand that I have to enable it for HEAD requests?
HEAD requests in nginx enabled by default.
x> And what am I missing that it still isn't working when I enable the proxy_redirect?
what you missing - you can know from logfiles of http://www.staging.myler.nl/
PS looks like this is problem with your backend, this is not nginx issue:
> lwp-request -m HEAD -U -s -S -e http://staging.myler.nl/
----------------------------------------------------------------------
HEAD http://www.myler.nl/web/persoon/staging
User-Agent: lwp-request/2.08
HEAD http://staging.myler.nl/ --> 302 Found
HEAD http://www.myler.nl/web/persoon/staging --> 404 Not Found
Connection: close
Date: Mon, 14 Sep 2009 16:06:22 GMT
Content-Type: text/html; charset=UTF-8
Client-Date: Mon, 14 Sep 2009 16:06:22 GMT
Client-Peer: 80.79.193.91:80
Client-Response-Num: 1
> lwp-request -m HEAD -U -s -S -e http://www.staging.myler.nl/
-------------------------------------------------------------------------
HEAD http://www.staging.myler.nl/
User-Agent: lwp-request/2.08
HEAD http://www.staging.myler.nl/ --> 403 Forbidden
Connection: close
Date: Mon, 14 Sep 2009 16:06:54 GMT
Server: Apache
Content-Type: text/html; charset=iso-8859-1
Client-Date: Mon, 14 Sep 2009 16:06:54 GMT
Client-Peer: 80.79.193.92:80
Client-Response-Num: 1
--
Best regards,
Gena
More information about the nginx
mailing list