You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by ravindra <ra...@btpsoft.com> on 2009/07/06 10:49:06 UTC

[users@httpd] modules need to enable to setup https at apache level

Hi Everybody

 

We are load balancing the Struts2 application running in Tomcat6 using
Apache (apache 2.2) web server. To implement it we have enabled mod_jk. Both
Tomcat6 and Apache are on the same host right now. We want to access Struts2
application securely through https. So I enabled mod_ssl module, I am able
to access static part of my site securely but when I try to access struts2
application it's not accessible.  

How to transfer https request through apache to tomcat? Do I need to add any
other modules?

 

Thank you,

Ravindra.


Re: [users@httpd] modules need to enable to setup https at apache level

Posted by Krist van Besien <kr...@gmail.com>.
On Mon, Jul 6, 2009 at 10:49 AM, ravindra<ra...@btpsoft.com> wrote:

> We are load balancing the Struts2 application running in Tomcat6 using
> Apache (apache 2.2) web server. To implement it we have enabled mod_jk. Both
> Tomcat6 and Apache are on the same host right now. We want to access Struts2
> application securely through https. So I enabled mod_ssl module, I am able
> to access static part of my site securely but when I try to access struts2
> application it's not accessible.
>
> How to transfer https request through apache to tomcat? Do I need to add any
> other modules?

You do not need an additional module. Waht you probably need to do is
to make sure that your https virtual host knows what requests to
forward to your tomcat site, and how to do this. When setting up an
SSL host it does not necessarily inherit all the configuration of the
non-SSL host.

Can you show us your config?

Krist

-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] modules need to enable to setup https at apache level

Posted by André Warnier <aw...@ice-sa.com>.
ravindra wrote:
> Hi Everybody
> 
>  
> 
> We are load balancing the Struts2 application running in Tomcat6 using
> Apache (apache 2.2) web server. To implement it we have enabled mod_jk. Both
> Tomcat6 and Apache are on the same host right now. We want to access Struts2
> application securely through https. So I enabled mod_ssl module, I am able
> to access static part of my site securely but when I try to access struts2
> application it's not accessible.  
> 
> How to transfer https request through apache to tomcat? Do I need to add any
> other modules?
> 
Let's maybe simplify this first :
If you are planning to always access Tomcat through Apache httpd, and if 
the connection between Apache httpd and background Tomcat(s) is always 
on the same host, or using a link that is internal and secure, then you 
do not need to have Tomcat also use SSL/HTTPS.
You can make your clients connect via HTTPS to Apache, and Apache/mod_jk 
use a non-SSL AJP connection to Tomcat.
That would be easier and more efficient.

If on the other hand, you absolutely want the Apache http -to Tomcat 
connection to be SSL, you can configure that also, but it is more 
complicated.

In any case, start here for the mod_jk configuration directives :
http://tomcat.apache.org/connectors-doc/
and pick the item :
Generic HowTo .. for the impatient

Then, if you have more questions, start by explaining this phrase above 
: "..but when I try to access struts2 application it's not accessible"
How are you trying to access it, and what happens ?
Also provide some details about your Apache httpd and mod_jk 
configuration, to allow people to help you without having to guess too much.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org