nginx配置本地服務-如圖片伺服器
阿新 • • 發佈:2020-12-08
技術標籤:limp-framework-cloud
修改配置Conf下的nginx配置
配置檔案如下
server { listen 9111 reuseport; # server_name localhost; location / { allow all; deny all; set $upstream_mirror_host ''; set $upstream_scheme 'http'; set $upstream_host $host; set $upstream_upgrade ''; set $upstream_connection ''; set $upstream_uri ''; proxy_http_version 1.1; proxy_set_header Host $upstream_host; proxy_set_header Upgrade $upstream_upgrade; proxy_set_header Connection $upstream_connection; proxy_set_header X-Real-IP $remote_addr; proxy_pass_header Server; proxy_pass_header Date; root /opt/tar/website/; index ./index.html index.htm; } }