On Tue, 2011-12-20 at 16:20 +0530, 0 wrote:
front end is nginx listening on port 80 with a name virtual hostproxied
to another webserver that actually runs the app on ports 8000onwards.
This works fine as long as there is an internet connection - ifthere is
no internet connection, firefox barfs saying it cannot access thenet
and find the site. There is no problem if I run an IP based virtualhost
- but then I can only run one site at a time. In the old daysfirefox
had an option like - 'these are local sites, no need for internet'.(or
was that netscape? Any suggestions?
Did you try with good old telnet ? Also, check whether you have any
proxies in firefox settings. In your case, since there are multiple
levels before you get the page, it might be better to debug step by
step
using curl (or something similar).
If you know the remapping rules, you should first try sending the
requests to your app running on port 8000+ with proper headers and
make
sure it works. It might not a simple task but might help in debugging
greatly. And, If your app works, then you can try checking whether
nginx
rules are correct and whether the remapping to your app works
correctly.