You need to change jserv.conf. Look for the "ApJServMount" lines - there
are a lot of sample comments. You probably want to add this line:
ApJServMount /lucas /lucas
The first parameter is the mount point (URL to capture), the second is the
zone name. If you had "ApJServMount /lucas /example", all requests for
URLs under "http://myserver.com/lucas" would go to JServ and JServ would
use the zone "example" to tell what to do with them.
It doesn't matter where the properties file goes. The repositories entry
in the properties file for the zone tells JServ where to find the ".class"
files.
Jason
-----Original Message-----
From: Jeff Abrahamson (via site@lelios) [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, July 21, 1999 1:46 PM
To: [EMAIL PROTECTED]
Subject: second zone is acting like htdocs instead of servlets
Now that I have JServ 1.0 up and running and my servlets seem to work ok
in the example directory, I thought I should be responsible and put them
in their own directory. But what happens is that my apache 1.3.6 server
thinks that <http://davinci.purple.com/lucas/hello> is in htdocs instead
of being a servlet (see log entry at bottom).
In particular, I configure as follows to add the new zone, as per the
FAQ:
- http.conf doesn't change
- jserv.conf doesn't change
- jserv.properties now says
zones=example,lucas
example.properties=/home/vividata/jssi/ApacheJServ-1.0/example/example.p
roperties
#lucas.properties=/home/httpd/conf/lucas.properties
lucas.properties=/home/httpd/servlets/lucas/lucas.properties
(Does it matter where lucas.properties goes?)
Then in lucas.properties, the only thing that changes from
example.properties is the repositories line:
repositories=/home/httpd/servlets/lucas/
And that directory looks ok. The hello.class file (not Hello.class)
works if it's in example/ instead.
[vividata@davinci lucas]$ ls -l /home/httpd/servlets/lucas/
total 8
-rw-rw-r-- 1 root root 1101 Jul 21 13:30 hello.class
-rw-rw-r-- 1 root root 5303 Jul 21 13:30 lucas.properties
[vividata@davinci lucas]$
When I go to the URL that should run hello.class
<http://davinci.purple.com/lucas/hello>, I see no response in the jserv
log, but the following in the httpd log:
192.168.0.5 - - [21/Jul/1999:14:06:46 -0400] "GET /lucas/hello HTTP/1.0"
404 279
[Wed Jul 21 14:06:46 1999] [error] [client 192.168.0.5] File does not
exist: /usr/local/apache/htdocs/lucas/hello
Of course it doesn't exist, it's supposed to look in the repositories
directory, think I.
Any suggestions appreciated.
Tia.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]