Apache + Tomcat + JK2 + VirtualHost Problem

This is a discussion on Apache + Tomcat + JK2 + VirtualHost Problem within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I had my server set up to do Apache2/Tomcat4/JK2 for a while with no problem. But lately ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-08-2004
John Cook
 
Posts: n/a
Default Apache + Tomcat + JK2 + VirtualHost Problem

Hi,

I had my server set up to do Apache2/Tomcat4/JK2 for a while with no
problem. But lately I started hosting another domain and now I'm
having a config issue.

siteA.com needs Tomcat since it's JSP. The other one, siteB.com, is
PHP and doesn't need the connector.

If I go to siteA.com, the JSP is executed correctly. However if I go
to www.siteA.com, I just get the text of the JSP (it's not being
executed). siteB.com and www.siteB.com both work correctly.

Here's the relevant line from workers2.properties for siteA.com:
[uri:siteA.com/*.jsp]

Here's the Apache2 VirtualHost config for siteA.com:
NameVirtualHost *
<VirtualHost *>
ServerName siteA.com
ServerAlias siteA.com *.siteA.com
.. (and so on)
</VirtualHost>

What I can not seem to accomplish is to get both www.siteA.com and
just siteA.com to work. Any ideas? I tried using a regular
expression in the [uri] entry of workers2.properties but it didn't
work.

Thanks,
John
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:44 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0