0
我這裏設置的負載平衡器配置
server {
listen 80;
server_name *.amvertising.com;
location/{
# needed to forward user's IP address to rails
proxy_set_header X-Real-IP $remote_addr;
# needed for HTTPS
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_max_temp_file_size 0;
proxy_pass http://mysite;
} #end location
} #end server
現在我想只給
server_name *;
是否可以請幫我
Thx它就像一個魅力! –
'server_name _;'是多餘的。 – VBart