nginx存在多个虚拟机时候必须所有虚拟机都去掉才会生效
nginx存在多个虚拟机时候必须所有虚拟机都去掉才会生效
apache 删除响应headerHeader unset Access-Control-Allow-Originapache 增加headerHeader set Access-Control-Allow-Methods * nginx 增加headeradd_header Access-Control-Allow-Origin $http_origin always;
server { listen 80; server_name geo.datav.aliyun.com; location / { proxy_pass http://geo.datav.aliyun.com; } }
解决办法修改ports例如如下服务 nginx: image: "nginx:alpine" ports: - target: 80 published: 80 protocol: tcp mode: host - target: 443 published: 443...
增加黑名单在nginx.conf同目录新建nginx.blockip.conf引入配置可以放在虚拟机配置里,这里放在全局的nginx.confhttp里最后增加一行# 封禁ip include nginx.blockip.conf;配置黑名单deny 5.188.0.0/16; deny 5.188.210.5;第一个是封禁网段,16代表ip转换为2进制后,前16位有效,只要前16位相同就会...
location /exhibition/ { index index.html index.htm; proxy_redirect off; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_...