【发布时间】:2014-01-04 01:27:53
【问题描述】:
我有 nginx+apache+php 配置。 如果在我的浏览器中我写“http://example.com”服务器将我重定向到“http//example.com:8080”(8080 是我的 Apache 端口),但如果我添加斜杠(如 example.com/)工作正常。 nginx 配置:
server {
location / {
proxy_pass http://127.0.0.1:8080;
proxy_read_timeout 600;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_buffering off;
}
【问题讨论】: