You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Filip Hanik <fh...@pakana.com> on 2000/12/08 18:32:15 UTC

why can't I get the ApJservMount right

I must be missing something crucial.

I am playing around with Tomcat and Apache and I am reading the Tomcat User
Guide.
I copied and pasted the examples on how to write a tomcat-apache
configuration file
I still can not get the ApJServMount command to work properly.
In the document it says
ApJServMount URI protocol://host:port/context

which would mean anything that gets sent to your URI will be proxied
forward.
So for example
ApJServMount /cgi-bin ajpv12://localhost:8007/examples
should redirect any request that comes in to /cgi-bin to Tomcat examples.

This works fine using the ProxyPass command but I can't get the context to
redirect properly

below is my configuration file, and everything works except for the last
APJServMount command for cgi-bin,
any ideas or clarification on the ApJServMount directive would be a great
deal of help

thanks
Filip

############################################################################
###
#                     Apache JServ Configuration File
#
############################################################################
###

 LoadModule jserv_module modules/ApacheModuleJServ.dll


<IfModule mod_jserv.c>
# Do not edit!
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice


ApJServDefaultHost localhost
ApJServDefaultPort 8007

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

Alias /examples D:\Apache\jakarta-tomcat\webapps\examples
<Directory "D:\Apache\jakarta-tomcat\webapps\examples">
	Options Indexes FollowSymLinks
	Options -Indexes
	DirectoryIndex index.html
</Directory>

<Location /examples/WEB-INF>
	AllowOverride None
	deny from all
</Location>

ApJServMount /examples/servlet /examples

#Why doesn't this one work?
ApJServMount /cgi-bin ajpv12://localhost:8007/examples

</IfModule>


Filip Hanik
Technical Architect
Pakana Corporation
fhanik@pakana.com
415-371 9200 ext 3529