>
> Hello,
>
> I am having quite a hard time getting the ApJServMount command in
> in my httpd.conf to work. I have read lots of documentation and
> seen examples, but I still cannot get things to work.
> Any help is appreciated.
>
> 1. Running latest Apache Jserv on Redhat5.2.
>
> 2. Web server root is /opt/apache
> ./htdocs
> ./cgi-bin
> ...
> ./servlets
> ./servlets/servsubdir/MyClass.class
> (MyClass.class is a working servlet)
>
> 3. Relevant lines in /opt/apache/conf/jserv.properties
> zones=servlets,mysubzone
> mysubzone.properties=/opt/apache/conf/jserv.mysubzone.properties
>
> 4. Relevant lines in /opt/apache/conf/httpd.conf
> ApJServMount /servlets/servsubdir mysubzone
ApJServMount /servlets/servsubdir /mysubzone
> 5. Relevant line in jserv.mysubzone.properties
> repositories=/opt/apache/servlets/mysubzone
>
> The line above in jserv.mysubzone.properties attempts to
> make it so that a uri, i.e., www.mydom.com/mysubzone/MyClass
> goes to the servlet "MyClass" located in the directory
> "/opt/apache/servlets/mysubzone" and in the servlet zone
> "mysubzone". It does not work. What am I missing? I find the
> documentation sparse on ApJServMount.
Then URI should be: http://www.mydom.com/servlets/servsubdir/MyClass
I believe the ApJServMount is really the path info between the domain and class
specifiers. I created a production and development mounts like so:
ApJServMount /servlets /production
ApJServMount /devservlets /development
And point them at their respective file system locations with the
production.properties and development.properties files. I then access them with:
http://www.mydom.com/servlets/MyClass and http://www.mydom.com/devservlets/MyClass.
Hope this helps.
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]