Hi Tim,

In the mean time I looks like the proxy pass reverse and rewrite rule is
wrongly configured, it should be (with Custom URL set to "
http://mvn.mydomain.com <http://localhost:8080/artifactory/>"):
ProxyPreserveHost On
ProxyPassReverseCookiePath /artifactory/ /
ProxyPass / http://localhost:8080/artifactory/
ProxyPassReverse /
http://mvn.mydomain.com/artifactory/<http://localhost:8080/artifactory/>

RewriteEngine On
RewriteCond %{HTTP_HOST} ^mvn\.mydomain\.com$ [NC]
RewriteRule ^/artifactory/(.*)$ /$1 [L,R=301]

Hope this help,
Fred.

On Tue, Jun 14, 2011 at 1:06 PM, Eli Givoni <[email protected]> wrote:

> Hi Tim,
> It seems that artifactory is not behaving as expected when removing the
> /artifactory/ from the URL.
> We will make sure to fix it on our next release.
>
> Thanks,
>
> Eli
> The Artifactory team
>
>
> On Tue, Jun 14, 2011 at 1:26 AM, Tim <[email protected]> wrote:
>
>> Hi Frederic
>>
>> thanks for the speedy reply.
>>
>> My config now looks as follows:
>>
>> <Proxy 80>
>> Order deny,allow
>> Allow from all
>> </Proxy>
>> ProxyPreserveHost On
>> ProxyPassReverseCookiePath /artifactory/ /
>> ProxyPass / http://localhost:8080/artifactory/
>> ProxyPassReverse / http://localhost:8080/artifactory/
>>
>>
>> RewriteEngine On
>> RewriteCond %{HTTP_HOST} ^mvn\.mydomain\.com$ [NC]
>> RewriteRule ^/artifactory/(.*)$ $1 [L,R=301]
>>
>>
>>
>> I needed the the rewrite to stop my URL becoming
>> mvn.mydomain.com/artifactory/webapp/
>> With the rewrite it becomes mvn.mydomain.com/webapp/
>> (I've tried setting the custom base URL to mydomain.com and
>> mvn.mydomain.com)
>>
>>
>> I can now browse around the Artifactory app with my sessionID staying the
>> same, but the moment I attempt a login the sessionID changes, and I get
>> the
>> following error text " Page Expired: The page you requested has expired"
>>
>>
>>
>> --
>> View this message in context:
>> http://forums.jfrog.org/Hosting-Artifactory-behind-Apache-Web-Server-tp6471305p6472035.html
>> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> EditLive Enterprise is the world's most technically advanced content
>> authoring tool. Experience the power of Track Changes, Inline Image
>> Editing and ensure content is compliant with Accessibility Checking.
>> http://p.sf.net/sfu/ephox-dev2dev
>> _______________________________________________
>> Artifactory-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>


-- 
Chief Architect
JFrog Ltd
http://www.jfrog.org/
http://twitter.com/freddy33
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to