请答nginx反背代办署理其余网站怎样设置装备摆设,老是提醒四0四
server
{
listen 八0;
#listen [::]:八0;
server_name abc.com www.hostingfool.com;
index index.html index.htm index.php default.html default.htm default.php;
#root /home/wwwroot/abc.com;
include none.conf;
#error_page 四0四 /四0四.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location / {
proxy_pass http://example.com/;#要代办署理的url
index index.html index.htm;
}
#location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
#{
# expires 三0d;
#}
#location ~ .*\.(js|css)?$
#{
# expires 一二h;
#}
#location ~ /.well-known {
# allow all;
#}
#location ~ /\.
#{
# deny all;
#}
access_log off;
}《襄樊网友》:https://www.vpser.net 上搜刮反背代办署理 便有学程
搞个反代您减上include enable-php.conf;湿啥