Hi Frederic & Eli
Thanks for the feedback I'm very appreciative.
Also thanks for spotting the errors in my rules ... My level of expertise
with them is more along the lines of try and pray!
I've been running FireBug to see if I can see where things are going wrong
(rewriting causing in invalid request etc etc) and the only thing that even
looks odd is this request:
----RESPONSE----
Failed to load source for:
http://mvn.mydomain.com/webapp/;jsessionid=fa306c71c1201fd6d6e256fa2822?wicket:interface=:2:loginBorder:loginForm::IFormSubmitListener
::
----REQUEST HEADERS-----
Host mvn.mydomain.com
User-Agent Mozilla/5.0 (Windows NT 6.0; rv:2.0.1) Gecko/20100101
Firefox/4.0.1
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-gb,en;q=0.5
Accept-Encoding gzip, deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 115
Connection keep-alive
Referer
http://mvn.mydomain.com/webapp/login.html;jsessionid=fa306c71c1201fd6d6e256fa2822
----RESPONSE HEADERS----
Date Tue, 14 Jun 2011 19:34:04 GMT
Server GlassFish Server Open Source Edition 3.1
X-Powered-By Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1
Java/Sun Microsystems Inc./1.6)
Location
http://mvn.mydomain.com/webapp/expirederrorpage.html;jsessionid=fa57a78015b707f6ed6dcccb04a2
Content-Type text/html;charset=ISO-8859-1
Content-Language en-US
Content-Length 262
Set-Cookie JSESSIONID=fa57a78015b707f6ed6dcccb04a2; Path=/artifactory;
HttpOnly
Connection close
The other interesting thing to note is that when you browse around
Artifactory yout SessionID remains the same, but the moment that you try
login you get a new sessionID.
On Tue, Jun 14, 2011 at 1:15 PM, Frederic Simon <[email protected]> wrote:
> 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
>
>
------------------------------------------------------------------------------
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