----------------------------------------------------------------
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,

I am running Apache on Linux (default installation that comes with Redhat
Linux 6.1 with no extra modules installed).
Server version: Apache/1.3.9 (Unix)  (Red Hat/Linux)
Server built:   Sep 21 1999 10:46:27

And Tomcat version 3.1 with Jserv allowing Tomcat and Apache to talk to each
other.

I have a number of virtual hosts running off the same IP address, I have
multiple server.xml files (one for each virtual host) and have a separate
directory within /jakarta-tomcat/webapps/ for each virtual host. This is
working perfectly as far as the Tomcat/JServ side of things is concerned.
The problem I have is with running cgi stuff. Originally I tried having a
separate cgi-bin directory for each virtual host, but in an effort to
simplify this (as I was having problems) I've tried having just one cgi-bin
directory that each virtual host accesses. The cgi-bin directory is
accessible and everything works through just the IP address but if I go
through one of the virtual host names it doesn't work, but if I comment out
the ApJServMount line, I can access the cgi-bin directory as you would
expect, and successfully run any cgi scripts/applications that live there.

The relevant extract from my httpd.conf file is here:


Include /jakarta-tomcat/conf/tomcat-apache.rd
ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
NameVirtualHost 192.168.2.38

<VirtualHost 192.168.2.38>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /jakarta-tomcat/webapps/ronan/
ErrorLog /etc/httpd/logs/ronan_error.log
TransferLog /etc/httpd/logs/ronan_transfer.log
</VirtualHost>

<VirtualHost 192.168.2.38>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /jakarta-tomcat/webapps/test
ServerName www.testing123.com
#ApJServMount / ajpv12://localhost:8007/test
ErrorLog /etc/httpd/logs/test_err.log
TransferLog /etc/httpd/logs/test_access.log
</VirtualHost>

---------------------
Below is the contents of the tomcat-apache.rd file
---------------------
LoadModule jserv_module libexec/mod_jserv.so
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice

ApJServDefaultPort 8007
ApJServDefaultHost localhost

AddType test/jsp .jsp
AddHandler jserv-servlet .jsp
-----------------------

If anyone could shed any light on this, it would be greatly appreciated.

Ronan.

-----------------------------------------------------------------------
Ronan Derby                     Ph: +353 1 8874047
Senior Software Engineer        Fax: + 353 1 8874050
Púca Technologies               E-mail: [EMAIL PROTECTED]
-----------------------------------------------------------------------



--
--------------------------------------------------------------
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]

Reply via email to