Nginx反向代理错误页面
我正在使用nginx作为单个机器的反向代理.我想在后端机器关闭时有一个错误页面.
这是我的配置文件:
server {
listen 80;
access_log /var/log/nginx/access.log;
root /var/www/nginx;
error_page 403 404 500 502 503 504 /error.html;
location / {
proxy_pass http://192.168.1.78/;
include /etc/nginx/proxy.conf;
}