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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |