我在本地運行一個網站,所有的流量都通過NGinx路由,然後將請求分發到PHP頁面到Apache並提供靜態文件。在Chrome,Safari瀏覽器,IE瀏覽器等完美作品Nginx 502錯誤的網關錯誤只在Firefox
但是,每當我在Firefox中打開網站,我收到以下錯誤:
502 Bad Gateway
nginx/0.7.65
如果我清除緩存和Cookie,然後重新啓動Firefox,我能夠在錯誤返回之前加載一次或兩次該網站。我試過Firefox 3.6和3.5,兩者都有同樣的問題。
這裏是我的Nginx的配置是什麼樣子:
worker_processes 2;
events {
worker_connections 1024;
}
http {
server {
listen 80;
server_name local.mysite.amc;
root /Users/joshmaker/Sites/mysite;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
location/{
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://local.mysite.amc:8080;
}
include /opt/local/etc/nginx/rewrite.txt;
}
server {
include /opt/local/etc/nginx/mime.types;
listen 80;
server_name local.static.mysite.amc;
root /Users/joshmaker/Sites/mysite;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
}
}
這裏是Firefox的產生在我的error.log文件中的錯誤:
[error] 11013#0: *26 kevent() reported that connect() failed (61: Connection refused) while connecting to upstream
[error] 11013#0: *30 upstream sent too big header while reading response header from upstream
[error] 11013#0: *30 no live upstreams while connecting to upstream
我完全不知所措爲什麼瀏覽器會導致服務器錯誤。有人可以幫忙嗎?
您正在使用FirePHP – noah 2011-11-22 19:46:39