Running TeamCity and YouTrack on same server and same port?

I've read a post on how to do this using apache and ProxyPreserveHost and ProxyPass.

I created a virtual host like this:

NameVirtualHost *:80

<VirtualHost *:80>
    ProxyPreserveHost On
    ProxyPass / http://youtrack.local:8080/
    ProxyPassReverse / http://youtrack.loca:8080/
    ServerName youtrack.local
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:

<Proxy *>
            AddDefaultCharset off
            Order deny,allow
            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.

Please sign in to leave a comment.