|
|
|
@ -50,6 +50,7 @@ http {
|
|
|
|
|
listen [::]:80;
|
|
|
|
|
server_name _;
|
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
client_max_body_size 500m;
|
|
|
|
|
|
|
|
|
|
# Load configuration files for the default server block.
|
|
|
|
|
include /etc/nginx/default.d/*.conf;
|
|
|
|
@ -100,20 +101,16 @@ http {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
location /upload {
|
|
|
|
|
proxy_pass http://127.0.0.1:81/upload;
|
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
|
proxy_set_header Host $http_host;
|
|
|
|
|
proxy_set_header X-NginX-Proxy true;
|
|
|
|
|
location ~ ^/upload/ {
|
|
|
|
|
root /opt/waynboot-mall;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_page 404 /404.html;
|
|
|
|
|
location = /404.html {
|
|
|
|
|
location = /404.html {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
|
location = /50x.html {
|
|
|
|
|
location = /50x.html {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|