在Centos+nginx+wordpress環境停啟動iptables 網站返回502

來源:互聯網
上載者:User
在Centos+nginx+wordpress環境下啟動iptables 網站返回502
網站環境:Centos nginx php(wordpress)

現在的問題總結如下:
啟動iptables網站返回502,關閉iptables網站開啟正常

iptables 設定如下:
Chain INPUT (policy DROP 1 packets, 139 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- lo any anywhere anywhere
17 1460 ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
1 40 ACCEPT tcp -- any any anywhere anywhere tcp dpt:ssh
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:mysql
2 80 ACCEPT tcp -- any any anywhere anywhere tcp dpt:http
0 0 ACCEPT all -- lo any anywhere anywhere
0 0 ACCEPT icmp -- any any anywhere anywhere
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:pptp
0 0 ACCEPT gre -- any any anywhere anywhere

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination

Chain OUTPUT (policy ACCEPT 16 packets, 4024 bytes)
pkts bytes target prot opt in out source destination
2 80 ACCEPT tcp -- any any anywhere anywhere tcp spt:http

開啟了lo,開啟了80,開始了9000

在開啟iptables時,靜態網頁時能開啟的,但是切換回wordpress是又返回502.

查看error-log都是:
2013/09/26 01:45:37 [error] 1745#0: *106 recv() failed (104: Connection reset by peer) while reading response header from upstream, client:, server: xiaobuxun.me, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "xiaobuxun.me", referrer: "http://xiaobuxun.me/wp-admin/post-new.php"

我考慮是iptables的問題,是fastCGI用的9000連接埠沒有開啟,,但是我已經配置上了,為什麼還是返回502,求大神指教了!!! iptables nginx fastCGI

分享到:
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.