Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

apache/tomcat virtual hosts

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Alias in .htaccess  
Author Message
suntacnospampl

External


Since: Sep 04, 2003
Posts: 41



(Msg. 1) Posted: Tue Sep 30, 2003 1:29 pm
Post subject: apache/tomcat virtual hosts
Archived from groups: alt>apache>configuration (more info?)

I have set up tomcat and apache... bind them with a JK2 connector both
on port 80.

I have 2 domains running on the machine.

the apache docs are located on the following location:

/export/home/webroot/site1 (www.site1.com)
/export/home/webroot/site2 (www.site2.com)

I would like to access jsp files on both the website's like
www.site1.com/index.jsp and www.site2.com/index.jsp


How do I make tomcat understeand that it must be running jsp files on
this locations. I also would like to store the jsp files on
/export/home/webroot/site1 and /export/home/webroot/site2

anybody knows how to do this?

Thanks already,
Johan.

 >> Stay informed about: apache/tomcat virtual hosts 
Back to top
Login to vote
nandagopalnair

External


Since: Oct 07, 2003
Posts: 8



(Msg. 2) Posted: Tue Oct 07, 2003 1:16 pm
Post subject: Re: apache/tomcat virtual hosts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Johan Louwers wrote:
 >
 > How do I make tomcat understeand that it must be running jsp files on
 > this locations. I also would like to store the jsp files on
 > /export/home/webroot/site1 and /export/home/webroot/site2
 >
 > anybody knows how to do this?
 >
 > Thanks already,
 > Johan.

Add this to your workers2.properties . The connector modules looks for
this file under your {apache-root}/conf. Which for most people is under
/usr/local/apache, I think. Personally, I find the RH style more
intuitive, so mine falls under /usr.

# Set debug level
[logger.apache2]
level=DEBUG

[shm]
file=/tmp/shm.file
size=1048576

[status:status]
info=Status worker, displays runtime information

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:/*.jsp]
worker=ajp13:localhost:8009

[uri:/jkstatus]
worker=status:status

#--------EOF----

Restart/reload apache. Check status at <a style='text-decoration: underline;' href="http://www.site1.com/jkstatus" target="_blank">www.site1.com/jkstatus</a> to see if
your URI mapping has been picked up by the connector.

Since you have already hooked up the connector, I'm not posting my
server.xml

HTH<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: apache/tomcat virtual hosts 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
virtual hosts apache/tomcat - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...

virtual hosts apache/tomcat - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...

virtual hosts on apache/tomcat - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...

virtual hosts apache/tomcat - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...

Apache/tomcat and virtual hosts - Ok, finaly have apache and tomcat running both on port 80. I have created the following dir's /export/home/www.someserver.com /export/home/mnt.someserver.com This will be the location of http://www.someserver.com and http://mnt.someserver.com To test...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]