Insert this virtual host declaration in /etc/apache2/vhosts.d/myown_vhost.conf:
<VirtualHost *:80> ServerName www.myownhost.com ServerAdmin webmaster@myownhost.com # don't lose time with IP address lookups HostnameLookups Off # needed for named virtual hosts UseCanonicalName Off ProxyPass / http://localhost:80xx/ ProxyPassReverse / http://localhost:80xx/ </VirtualHost>
But this was not enough. Some application inside Tomcat calls request.getServerName() and still gets “localhost”. So, inside Tomcat, I had to edit conf/server.xml and modify the connector declaration:
<Connector port="8088" address="localhost" proxyName="www.myownhost.com" proxyPort="80" ... other arguments here ...
After that, everything worked just fine.
For detailed information, see http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
Diese Beiträge könnten Sie noch interessieren:
- Parallels on the Mac: Where is my Insert key?
- Windows runs on the Mac
- Nokia E65 SSL Zertifikat installieren
- Java 6 for the Mac?
- Leopard’s second firewall
Berater, Coach und Trainer für effektive Produktentwicklung