I have installed Archiva on my machine under Tomcat 6.x at http://dev.mycompany.com:8080/archiva
and can access the application and everything, but I want to access it from the subdomain archiva.mycompany.com
.
I have Apache 2.x running on port 80
and using Virtual Hosts and mod_proxy to route from other subdomains to the other various services I am running on this machine.
I now want to create a subdomain archiva.dev.mycompany.com
and point that to dev.mycompany.com:8080/archiva
.
I can't figure out what I need to put in my ProxyPass
and ProxyPassReverse
to make this work like I want it to.
I tried the following and all it does is add /archiva
to the URL over and over again.
<VirtualHost *:80>
ServerAdmin me@mycompany.com
ServerName archiva.dev.mycompany.com
ProxyPreserveHost On
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass / http://dev.mycompany.com:8080/archiva
ProxyPassReverse / http://dev.mycompany.com:8080/archiva
</VirtualHost>
and I get this error message
HTTP Status 404 - /archivaarchiva/
type Status report
message /archivaarchiva/
description The requested resource (/archivaarchiva/) is not available.
I went and dug through everything I could find on Google once again and tried the following:
ProxyPass / ajp://dev.mycompany.com:8080/archiva/
ProxyPassReverse / http://dev.mycompany.com:8080/archiva/
now I just get a 404 error code from the Winstone Servlet Engine, I know I am getting close.
Can anyone tell me what magic incantation I need to make this behave as I desire?