You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lionel <li...@art-informatique.com> on 2006/02/03 17:38:09 UTC

BaseTag and HTTPS behind a proxy

Hi all !

I have a struts application deployed on tomcat 5.5 which does not use https.
A <base href="http://myWebsite"> is generated by the <html:base/> tag.
The administrator wants to hide the site behind a reverse proxy that makes
the website available through HTTPS.
The client emits an https request to the proxy that sends an http request to
my tomcat, and send back the response over https to the client.
The problem is that my application receives a http request from the proxy,
so the baseTag generates a http:// url instead https:// which is required to
work.
How could I make it work through the https proxy and keep it work on my
developpement server which is not behind a proxy ?
I can override renderBaseElement of BaseTag to use https instead of
request.getScheme(), but the application won't work anymore in my
deloppement environment.

Thanks for your advices




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: BaseTag and HTTPS behind a proxy

Posted by Marcelo Morales <ma...@redcetus.com>.
Helo


On Feb 3, 2006, at 1:30 PM, Lionel wrote:

> Lionel wrote:
>> Hi all !
>>
>> I have a struts application deployed on tomcat 5.5 which does not use
>> https. A <base href="http://myWebsite"> is generated by the
>> <html:base/> tag.
>> The administrator wants to hide the site behind a reverse proxy that
>> makes the website available through HTTPS.
>
> Forget what I said, the administrator of the reverse proxy directed  
> me to a
> wrong path.
> It seems that it's a tomcat issue.
> The request is sent to tomcat but it seems I can't get the parameters.
> Any idea about tomcat and reverse proxies is stil welcome :)
>
>

I suggest to use ajp. I never liked reverse proxy because hides the  
request's real origin. Also, as far as i understand, ajp performs  
better.

Regards

Marcelo Morales

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: BaseTag and HTTPS behind a proxy

Posted by Lionel <li...@art-informatique.com>.
Lionel wrote:
> Hi all !
>
> I have a struts application deployed on tomcat 5.5 which does not use
> https. A <base href="http://myWebsite"> is generated by the
> <html:base/> tag.
> The administrator wants to hide the site behind a reverse proxy that
> makes the website available through HTTPS.

Forget what I said, the administrator of the reverse proxy directed me to a
wrong path.
It seems that it's a tomcat issue.
The request is sent to tomcat but it seems I can't get the parameters.
Any idea about tomcat and reverse proxies is stil welcome :)




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org