----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hi All,
Apache JServ 1.1 is running well if I don't run any virtual host. Once I
turn on virtual host, it always says http://www.domain1.com/servlet/myclass
file does not exist.
I suppost document root of
http://www.domain1.com/ should be mapped to /home/vhost/www.domain1.com/
and
http://www.domain2.com should be mapped to /home/vhost/www.domain2.com/
This part of virtual document root substitution works fine.
And I want http://www.domainN.com/servlet/myclass?user=xxx
works for each domain. But it doesn't. The access.log of httpd says :
GET /servlet/myclass?user=username HTTP/1.1" 404 230
and error.log says:
[error] [client 1.2.3.4] File does not exist:
/home/vhost/www.domain1.com/servlet/myclass
Part of the configure is as follow :
---------------------------
in httpd.conf
VirtualDocumentRoot /home/vhost/%0
(where %0 should be the host from user requested url.)
in jserv.conf
ApJServManual off
ApJServMount /servlet /project1
ApJServMountCopy on
in jserv.properties
project1.properties=/usr/local/project1/servlet.properties
----------------------------
if I change "VirtualDocumentRoot /home/vhost/%0"
to "DocumentRoot /home/www.domain1.com"
then everything works fine.
It seems that httpd does not know /servlet is a ApJservMount when using
virtual document root.
Can anyone help? Thanks.
Xavier Tsai
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]