In centos+nginx+wordpress environment stop start Iptables website return 502

Source: Internet
Author: User
Launch of Iptables website in centos+nginx+wordpress Environment return 502
Site environment: Centos nginx php (WordPress)

The current questions are summarized as follows:
Start Iptables website return 502, close iptables website open Normal

The iptables settings are as follows:
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
1460 ACCEPT All – any anywhere, anywhere state related,established
1 + ACCEPT TCP--any anywhere anywhere TCP Dpt:ssh
0 0 ACCEPT TCP--any anywhere anywhere TCP Dpt:mysql
2 ACCEPT TCP--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 anywhere anywhere TCP DPT:PPTP
0 0 ACCEPT GRE--any anywhere anywhere

Chain FORWARD (Policy ACCEPT 0 packets, 0 bytes)
Pkts bytes Target prot opt in Out source destination

Chain OUTPUT (Policy ACCEPT packets, 4024 bytes)
Pkts bytes Target prot opt in Out source destination
2 ACCEPT TCP--any anywhere anywhere TCP spt:http

Open lo, open 80, start with 9000

When the iptables is turned on, the static page can be opened, but the switch back to WordPress is back to 502.

View Error-log are:
2013/09/26 01:45:37 [ERROR] 1745#0: *106 recv () failed (104:connection reset by peer) and 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 "

I consider is the problem of iptables, is fastcgi with the 9000 port is not open, but I have configured on, why or return 502, ask the great God teach!!! iptables Nginx FastCGI

Share to:
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    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.