Insert this virtual host declaration in /etc/apache2/vhosts.d/myown_vhost.conf:
<VirtualHost *:80> ServerName www.myownhost.com ServerAdmin email@example.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