Re: using a proxied server as default_server

2013-05-31 Thread angelochen960
Hi Francis, I think that's a good approach, will give that a try, thanks, Angelo Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239707,239726#msg-239726 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: using a proxied server as default_server

2013-05-31 Thread Francis Daly
On Fri, May 31, 2013 at 07:30:22AM -0400, angelochen960 wrote: Hi there, > Sorry for not making it more specific, the issue is, the app in the tomcat > is a virtual host as well, so it checks 'host' field for 'sample.com', No worries. Now that you have identified the problem, the possibilities

Re: using a proxied server as default_server

2013-05-31 Thread angelochen960
Hi, Sorry for not making it more specific, the issue is, the app in the tomcat is a virtual host as well, so it checks 'host' field for 'sample.com', a default_server with specific IP when accessed by a IP address like http://192.168.1.1/, it will not have a 'host', thus when passed to the app in

Re: using a proxied server as default_server

2013-05-31 Thread Francis Daly
On Thu, May 30, 2013 at 10:16:28PM -0400, angelochen960 wrote: Hi there, > I have a tomcat app running behind nginx, it works, now I make it the > default_server, this works if it access with server name like sample.com, > but if access with an IP, http://192.168.1.1, it does not work, any idea

using a proxied server as default_server

2013-05-30 Thread angelochen960
Hi, I have a tomcat app running behind nginx, it works, now I make it the default_server, this works if it access with server name like sample.com, but if access with an IP, http://192.168.1.1, it does not work, any idea ? Thanks, server { listen 192.168.1.1:80 default_server; se