You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Shaun Campbell <sh...@uk2.net> on 2004/09/29 14:37:43 UTC

[users@httpd] Apache Tomcat setup query

First of all I have Apache 2.0.51 working with Tomcat 4.1.30 via mod_jk2 so
my question does not exactly relate to the set up of mod_jk.

What I am trying to do is run a servlet on Tomcat through Apache using SSL.
I have got this working at the moment so that I can type in the URL
http://www.anycompany.com:443/apt/servlet/apt and the application will run.
I initially had a problem where the application wouldn't find my stylesheet
or images but I fixed that by putting [uri:www.anycompany.com/apt/*] in my
workers.properties file.

What I would like to be able to do is make the URL simpler to something like
https://www.anycompany.com by using https instead of 443, and by losing the
apt/servlet/apt bit of the URL.

I would also like to use the <Location> to restrict access to certain
directories.  I tried to use the JkMount directive in httpd.conf instead of
using the uri entry in workers.properties but I get errors when starting up
Apache.

Any advice or pointers to info on how to configure this would be
appreciated.

Shaun



---------------------------------------------------------------------
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] Apache Tomcat setup query

Posted by Aman Raheja <ar...@techquotes.com>.
You can use mod_proxy such that the url looks like the way you want.
I have this setting

    ProxyRequests Off
    ProxyPass / http://localhost:8091/
    ProxyPassReverse / http://localhost:8091/

tomcat runs on http://localhost:8091/ but users don't see the 8091 
wherever they go in the app - they only browse w.r.t. http://localhost/
I am sure you can do that for the SSl part too.
Aman Raheja

Shaun Campbell wrote:

>First of all I have Apache 2.0.51 working with Tomcat 4.1.30 via mod_jk2 so
>my question does not exactly relate to the set up of mod_jk.
>
>What I am trying to do is run a servlet on Tomcat through Apache using SSL.
>I have got this working at the moment so that I can type in the URL
>http://www.anycompany.com:443/apt/servlet/apt and the application will run.
>I initially had a problem where the application wouldn't find my stylesheet
>or images but I fixed that by putting [uri:www.anycompany.com/apt/*] in my
>workers.properties file.
>
>What I would like to be able to do is make the URL simpler to something like
>https://www.anycompany.com by using https instead of 443, and by losing the
>apt/servlet/apt bit of the URL.
>
>I would also like to use the <Location> to restrict access to certain
>directories.  I tried to use the JkMount directive in httpd.conf instead of
>using the uri entry in workers.properties but I get errors when starting up
>Apache.
>
>Any advice or pointers to info on how to configure this would be
>appreciated.
>
>Shaun
>  
>

---------------------------------------------------------------------
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