【问题标题】:LoadBalancer Configuration负载均衡器配置
【发布时间】:2013-11-15 12:35:45
【问题描述】:

我的设置在这里

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 *;

可以吗,请帮帮我

【问题讨论】:

    标签: apache nginx load-balancing


    【解决方案1】:

    如果您希望这是您的全部,请使用

    server {
        listen 80 default_server;
        #the rest of the configuration
    }
    

    【讨论】:

    • server_name _; 是多余的。
    猜你喜欢
    • 2018-11-05
    • 2011-12-29
    • 2019-01-09
    • 1970-01-01
    • 2021-12-07
    • 2023-04-09
    • 1970-01-01
    • 2012-12-24
    • 1970-01-01
    相关资源
    最近更新 更多