- 論壇徽章:
- 0
|
環(huán)境:centos 5.3
nginx-0.7.59
nginx 0.7.59 配置404 502 自定義錯誤請教,以下是配置,當(dāng)我把192.168.1.11:8080的apache 服務(wù)停了,訪問www.tt.com 出現(xiàn)
502 Bad Gateway
--------------------------------------------------------------------------------
nginx/0.7.59
沒有出現(xiàn)自定義的502錯誤,404 也不生效,請問應(yīng)該怎么設(shè)置。謝謝!
upstream test {
server 192.168.1.11:8080;
}
server {
listen 80;
server_name www.tt.com;
location / {
proxy_pass http://test;
}
error_page 404 /var/www/404.html;
error_page 502 /var/www/502.html;
}
換成 error_page 404 =200 /var/www/404.html; 也沒效果. |
|