KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Is there any way I connect Apache to Tomcat using an HTTP proxy such that Tomcat gets the correct incoming host name rather than localhost? I'm using this directive in apache: ProxyPass /path http://localhost:8080/path But it comes through as localhost, which is useless when we have a bunch of sites on the same server. I could set the host manually in the server config: <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" proxyName="pretend.host" proxyPort="80" /> But that again doesn't serve more than one site. And I don't like the idea of using a different internal port for each site, that sounds really ugly. Is there no way to transfer the port when I proxy it? (If you ask why I don't just use AJP, the answer is this error . I'm trying everything I can before giving up on Tomcat and Apache entirely )
Tags (comma-separated)
Save Edits
Cancel