Problem with HTTPS

View: New views
3 Messages — Rating Filter:   Alert me  

Problem with HTTPS

by Ricardo Alvarez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

We have Artifactory 2.0.2 installed on a Tomcat listening on 8080 port. Prior the Tomcat, we have an Apache (with mod-proxy), listening on 443 port, so our users access to a HTTPS URL to get Artifactory.

But we have a problem: in "Browser" tag on Artifactory, inside the browsed objects , we have several "HTTP" links generated from the application that produce "not found errors" (our Apache is using HTTPS).

So, do you know how could we avoid this HTTP links?

Thank you in advance!!

Ricardo Álvarez

Re: Problem with HTTPS

by Thijs Schnitger-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ricardo Alvarez wrote:

> Hi!
>
> We have Artifactory 2.0.2 installed on a Tomcat listening on 8080 port.
> Prior the Tomcat, we have an Apache (with mod-proxy), listening on 443 port,
> so our users access to a HTTPS URL to get Artifactory.
>
> But we have a problem: in "Browser" tag on Artifactory, inside the browsed
> objects , we have several "HTTP" links generated from the application that
> produce "not found errors" (our Apache is using HTTPS).
>
> So, do you know how could we avoid this HTTP links?
>
> Thank you in advance!!
>
> Ricardo Álvarez

You could try configuring a virtualhost in Apache listening on port 80
with a Redirect permanent statement to your https url, like so:

<VirtualHost *:80>
     ServerName yourartifactoryserver
     Redirect permanent / https://yourartifactoryserver/
</VirtualHost>
<VirtualHost *:443>
     ServerName yourartifactoryserver
     ...
</VirtualHost>


--
Thijs Schnitger
Func. Internet Integration
W http://www.func.nl
T +31 20 4230000
F +31 20 4223500


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Re: Problem with HTTPS

by freddy33 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The problem is that Apache is sending a pure HTTP with no SSL to Tomcat. So, Artifactory does not have the information of the original request.
This is due to the mod_proxy doing the requests from Apache to Tomcat.
The normal solution is to add "ProxyPreserveHost on", but in your case it will not work, since you are transforming HTTPS queries into HTTP.

So, you have 2 solutions:
- Make queries in HTTPS to Tomcat (Complicated HTTPS setup and heavy on CPU)
- Use mod_proxy_ajp instead of mod_proxy

HTH,
Fred.

On Thu, Sep 17, 2009 at 12:16 PM, Ricardo Alvarez <ricardoj.alvarez.ext@...> wrote:

Hi!

We have Artifactory 2.0.2 installed on a Tomcat listening on 8080 port.
Prior the Tomcat, we have an Apache (with mod-proxy), listening on 443 port,
so our users access to a HTTPS URL to get Artifactory.

But we have a problem: in "Browser" tag on Artifactory, inside the browsed
objects , we have several "HTTP" links generated from the application that
produce "not found errors" (our Apache is using HTTPS).

So, do you know how could we avoid this HTTP links?

Thank you in advance!!

Ricardo Álvarez
--
View this message in context: http://www.nabble.com/Problem-with-HTTPS-tp25487802p25487802.html
Sent from the Artifactory-Users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users



--
JFrog Ltd
5 Habonim st., P.O.Box 8187
Netanya, Israel 42504.
Tel: +972 9 8941444    
Fax: +972 9 8659977
http://www.jfrog.org/
http://freddy33.blogspot.com/
http://nothingisinfinite.blogspot.com/

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users