[Ilugc] offline browsing local name virtual hosts

  • From: 0@xxxxxxxxxxx (0)
  • Date: Tue, 20 Dec 2011 16:20:22 +0530


front end is nginx listening on port 80 with a name virtual host proxied
to another webserver  that actually runs the app on ports 8000 onwards.
This works fine as long as there is an internet connection - if there is
no internet connection, firefox barfs saying it cannot access the net
and find the site. There is no problem if I run an IP based virtual host
- but then I can only run one site at a time. In the old days firefox
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.

-- 
0

Other related posts: