Re: [users@httpd] Redirection on apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Ronaldy, Franky" <franky.ronaldy@xxxxxx> wrote on 24/03/2005 08.33.23:

> Hi All
> 
> This is may be a dummy question. I have a context (let say context name
> is abc) in the tomcat. I would like to set new virtual host in my apache
> which will automatically redirect to that abc context in the tomcat when
> I access this new virtual host. How can I do that? Thank you in advance.
> 

I've 2 virtual host set-up only for tomcat redirection, using mod_jk2 
(!!you should use jk now!!, at the time of my setup, jk2 was advised with 
apache2)
Here is what I've done:

- Apache with DSO support + mod_jk2 connector

JK2 needs two configurationf files:
- jk2.properties in /opt/jakarta/tomcat/conf, used by Tomcat
- workers2.properties, used by the web server. With the SuSe's 
distribution, it's in /etc/apache2

In httpd.conf:

#
# JK2 is the Apache/Tomcat connector
#
LoadModule jk2_module /usr/lib/apache2/mod_jk2.so

JkSet config.file /etc/apache2/workers2.properties

In workers2.properties

# Uri mapping
[uri:www.mydomain.org:80/*]
worker=ajp13:localhost:8009

In the virtual host configuration file

<Location "/">
   JkUriSet worker ajp13:localhost:8009
</Location>

I hope it helps

Gaël


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux