I've read a post on how to do this using apache and ProxyPreserveHost and ProxyPass.
I created a virtual host like this:
ProxyPass / http://youtrack.local:8080/
ProxyPassReverse / http://youtrack.loca:8080/
Seems to work to some extent. Since in my apache log I get this:
client denied by server configuration: proxy:http://youtrack.local:8080/
But I have no idea why. If i surf directly to http://youtrack.local:8080/ it works fine.
Does the apache server need some kinda special permissions to access the tomcat/catalina root?
Found the solution. In apache2/mods-enable/proxy.conf one need to change in the section to this:
Deny from all
Allow from all
Warning: This will allow every request to be passed over the proxy. You might want to check in tomod_access to restrict access.