Setup Artifactory with empty path

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Setup Artifactory with empty path

Shrike
Hi.

I want to host an Artifactory server behind Apache and have it to be accessible without any path (like "/artifactory"). I have a DNS "artifacts.mycompany.com" and I want that DNS leads exactly to the Artifactory.

I read this: http://www.jfrog.com/confluence/display/RTF/Apache+HTTP+Server

I added an AJP connector in Artifactory TomCat's config and added the following VHost in Apache config:

<VirtualHost *:80>
    ServerName artifacts.mycompany.com
    ProxyRequests Off
    ProxyPreserveHost On
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
    ProxyPass / ajp://localhost:8022/
    ProxyPassReverse / ajp://localhost:8022/
</VirtualHost>

This works and I can access my Artifactory via "http://artifacts.mycompany.com/artifactory".
Now I want to have it on "http://artifacts.mycompany.com"

How to do this?

I tired to add path to:
    ProxyPass / ajp://localhost:8022/artifactory/
    ProxyPassReverse / ajp://localhost:8022/artifactory/
This doesn't work.