Tomcat and proxy request -
i configure default tomcat installation (running on "localhost" @ port "8080") proxy server in browser , try connect http://www.google.com.
i expect either error message saying tomcat not configured proxy server or should contents of google website.
instead index.html page of tomcat installation.
what going wrong?
tomcat doesn't know it's supposed proxy request. knows browser showed , asked something, this:
get http://www.google.com/example http/1.1 [plus other headers]
with apache httpd, might have configuration such when request shows host that's not itself, acts proxy request.
tomcat not used proxy. tomcat used behind reverse proxy request may "www.google.com" may relayed tomcat site it's supposed serving. tomcat's standard configuration pretty accepts host specified own, , adopts purpose of creating absolute references itself, assumption if request got it, legitimate. can of course alter behavior configuration, if don't, tomcat pretty going try serve requested set of applications, assuming knew doing host header.
Comments
Post a Comment