You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Alexander F. Hartner" <al...@solms.co.za> on 2004/04/13 10:23:13 UTC

[users@httpd] Virtual Host, Locations and Mod_JK2

I host several websites on my apache2 (2.0.49) using virtual hosts. One 
of the hosts I would like to forward fully to a web application 
deployed on tomat via Mod_JK. What I have done is the following:

Installed the webapplication in tomcat's root "/" context

Configured a worker in workers2.properties

Configured a virutal host on apache2

<VirtualHost 196.22.194.227>
         ServerAdmin root@solms.co.za
         DocumentRoot /home/www/solms.co.za/
         ServerName www.solms.co.za
         ServerAlias solms.co.za *.solms.co.za solmstraining.co.za 
*.solmstraining.co.za
         ErrorLog logs/solms.co.za-error_log
         CustomLog logs/solms.co.za-access_log combined
         <Location "/">
           JkUriSet worker ajp13:localhost:28009
         </Location>
</VirtualHost>

Everything is working, except the Location directive spans all my other 
virtual hosts as well. A request to any of the virtual hosts is 
redirected to /index.jsp, which I guess comes from my web application's 
deployment descriptor. Direct requests to otherhost.com/index.html are 
still processed by apache correctly, but general request to 
otherhost.com are redirected to otherhost.com/index.jsp.

Ugly solution:
What I have done in the mean time is to either
-create index.jsp files which are typically copies of the index.html
-modify the webapplication to redirect to index.html

I should not have to do this as the location should only work for the 
virtual host in which it is configured.

Any suggestions welcome

Alex

[users@httpd] Certificates & reverse proxy

Posted by Pete Stokes <st...@quinn-direct.com>.
Hi.

I'm assuming that using Apache (Linux) to reverse proxy will terminate 
SSL sessions fine. Are there any intricates in setting this up that any1 
knows of or will it be plain sailing with the relevant doccos?

Thanks,
Pete.



***********************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager.
This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses.
***********************************************************************************
For any information on the Quinn Group of Companies please visit :-

http://www.quinn-group.com


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