Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am having difficulty getting my Varnish/Nginx Wordpress setup working. I had set up varnish to listen on poert 80, and nginx to listen on port 8080, with a rule on wp-admin URLs to pass through to nginx (bypassing the cache). The main blog pages seem to work ok with this setup, but the dashboard and other admin pages are not reachable, which suggests that the varnish configuration is "working" (in that it is behaves differently for the pages with the rule set up). The site itself works fine if I disable Varnish and just set nginx to listen on port 80. I did wonder if there was a problem with port 8080 not being open, so I tried setting nginx to listen on port 8080, and I could not connect.

What I have done to try and diagnose this:

  1. Set my security group on the EC2 dashboard to allow 8080
  2. Disabled the Ubuntu firewall
  3. Tried the suggestions I have seen to get rid of IPTables
  4. Run nc -l 8080 and tried to connect from another machine. This did not work. Setting nc to listen on port 80 DID work, so it looks like a firewall problem, rather than any nginx/WordPress/Varnish problem.

My question is, how might I diagnose what of the many firewalling services could be stopping the connection (supplemental quation - how do I allow the connection).

share|improve this question
1  
Why not just fix varnish? –  Michael Hampton Oct 22 '12 at 14:05
    
were you able to successfully bind to 8080 using nc? There might be something already listening there. –  Aditya Patawari Oct 23 '12 at 8:04
    
In the end I reset everything back to how it was, and it magically started working again. I am still interested in the answer though for the future. I used netstat to verify that no other program was listening on 8080, so nc should have been able to work. –  Greg Reynolds Oct 23 '12 at 9:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.