Hi,
I tried to configure proxy_redirect but still got the 404.
This is my nginx.conf:
[code]
server {
listen 80;
server_name _;
location / {
proxy_pass http://172.23.3.14:81/;
# proxy_redirect on;
proxy_redirect / /;
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_max_temp_file_size 0;
client_max_body_size 2g;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
}
[/code]
This my httpd.conf:
[code]
<VirtualHost *:81>
ServerAdmin webmaster@myce.nl
ServerName 172.23.3.14
CustomLog logs/css-proxy-access.log combined
DocumentRoot /var/www/www.staging.myler.nl/web-docs
ProxyPass / http://www.staging.myler.nl/
</VirtualHost>
[/code]
But still not working :(
I have disabled on other nginx + apache hosts the proxy_redirect and is working but do I understand that I have to enable it for HEAD requests?
And what am I missing that it still isn't working when I enable the proxy_redirect?