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: