I installed Archiva on my machine under Tomcat 6.x in http://dev.mycompany.com:8080/archivaand 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 a port 80, and using Virtual Hosts and mod_proxy to route from other subdomains to the various other services that I run on this computer.
Now I want to create a subdomain archiva.dev.mycompany.comand point to dev.mycompany.com:8080/archiva.
I can’t understand what I need to put in mine ProxyPassand ProxyPassReverseto do this work the way I want it.
I tried the following and everything he does adds /archivato the URL again and 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.
, Google, :
ProxyPass / ajp://dev.mycompany.com:8080/archiva/
ProxyPassReverse / http://dev.mycompany.com:8080/archiva/
404 Servlet Winstone, , .
- , , , ?