JSP not working on a domain alias?

Frenck

Active Member
Nov 12, 2002
29
0
151
Hengelo, The Netherlands
I have a little problem over here.

on my domain (Frenck.nl) I have added a wildcard DNS record
& added *.frenck.nl to the ServerAlias in the httpd.conf.

So now all subdomains of Frenck.nl are showing Frenck.nl.

This is working fine for everything except jsp.

When I call:
http://frenck.nl/test.jsp?var=CPANEL
It works fine...

But when I call:
http://ASubdomain.frenck.nl/test.jsp?var=CPANEL
It doesn't work.

I get this error from Apache Tomcat (4.1):

The requested resource (/test.jsp) is not available.

(Althoug the file really exists!)

How to solve this one?
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
The reason that this is happening is that Tomcat and Apache only allow .domain.com and www.domain.com by default.

You would need to modify server.xml and httpd.conf for each subdomain that would need jsp support. Unfortuntly you cannot use wildcarding with jsp.
 

davyboyhayes

Registered
Dec 17, 2004
1
0
151
Did mod_rewrite work?

Frenck said:
Than i need to go for the dirty fix..

mod_rewrite :P
I know it has been an eternity since, but Frenck, did you get anywhere with it. Could you post any code. I've been trying various ways, and getting myself in a tiz!

Thanks in advance.

Davy Boy Out...
 

Ivanner

Active Member
Oct 13, 2003
28
0
151
It has been 4 years since then and the problem persists. Has this been officially reported as a bug?