|
|
@ -50,6 +50,7 @@ http {
|
|
|
|
listen [::]:80;
|
|
|
|
listen [::]:80;
|
|
|
|
server_name _;
|
|
|
|
server_name _;
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
|
|
|
client_max_body_size 500m;
|
|
|
|
|
|
|
|
|
|
|
|
# Load configuration files for the default server block.
|
|
|
|
# Load configuration files for the default server block.
|
|
|
|
include /etc/nginx/default.d/*.conf;
|
|
|
|
include /etc/nginx/default.d/*.conf;
|
|
|
@ -100,12 +101,8 @@ http {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location /upload {
|
|
|
|
location ~ ^/upload/ {
|
|
|
|
proxy_pass http://127.0.0.1:81/upload;
|
|
|
|
root /opt/waynboot-mall;
|
|
|
|
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;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
error_page 404 /404.html;
|
|
|
|
error_page 404 /404.html;
|
|
|
|