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

I'm running with Solaris 2.7, Apache 1.3.11, Jserv 1.1.  Apache is set
up with virtual hosts (orange and grape) with corresponding CNAME
records in the DNS system; the machine (fruit) has one ip address.
Everything is running on the same box.

I was curious to see what would happen if I changed my apjservmount to
use the virtual host.  My original conf files are as follows:

    ================
    jserv.conf
    ================
    ApJServMount /servlets /orange
    ApJServMount /servlets /grape

    ================
    jserv.properties
    ================
    zones=orange
    zones=grape

    orange.properties=/usr/local/www/jserv/etc/orange.properties
    grape.properties=/usr/local/www/jserv/etc/grape.properties

    ================
    orange.properties
    ================
    repositories=/usr/local/www/htdocs/orange/servlets

    ================
    grape.properties
    ================
    repositories=/usr/local/www/htdocs/grape/servlets

I changed the jserv.conf file for orange like so:

    ApJServMount /servlets ajpv12://localhost:8007/orange

When I go to http://orange/jserv/ the table looks the same as when the
config files are as they were before I added the protocol, host, and
port.

Then I changed the line to

    ApJServMount /servlets ajpv12://orange:8007/orange

Now when I go to the http://orange/jserv/ page the table has two
entries under Mapped servlet engines; ajpv12://orange:8007 and
ajpv12://localhost:8007.  If I click on the localhost one (second one)
it goes to the "engine/1" page which has the same contents as it did
before I started fiddling with the config files.  But if I click on
the orange link (engine/0) I get an "Internal Server Error" page.  The
lines from the mod_jserv.log file are:

[date&time] (EMERGENCY) ajp12: connection fail
[date&time] (ERROR) an error returned handling request via protocol "ajpv12"
[date&time] (ERROR) an error returned handling request via protocol "status"

(I also find it interesting that the first line in the log file says
"ajp12" instead of "ajpv12".)

If I change the apjservmount line to

    ApJServMount /servlets //orange:8007/orange

Then everything works and is the way it was before I made any changes;
1 mapped servlet engine (localhost), etc.


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to