You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andy Rogers <ar...@quisset.com> on 2000/09/08 19:52:50 UTC
ALias
Below is my config file as included in httpd.conf of my Apache Server. I only recently set this up. Tomcat works at port 8080 and I can run the examples from there but when I try to start Apache I get this error:
Syntax error on line 16 of C:\Program Files\jakarta-tomcat\conf\my-tomcat-apache.conf: Alias takes two arguments, a fakename and a realname
The tomcat-apache.conf was generated by tomcat and the Alias statements seem to have two arguments. Any ideas?
my-tomcat-apache.conf
LoadModule jserv_module modules/ApacheModuleJServ.dll
<IfModule mod_jserv.c>
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
ApJServDefaultHost localhost
ApJServDefaultPort 8007
AddType test/jsp .jsp
AddHandler jserv-servlet .jsp
Alias /examples C:\Program Files\jakarta-tomcat\webapps\examples
<Directory "C:\Program Files\jakarta-tomcat\webapps\examples">
Options Indexes FollowSymLinks
</Directory>
Alias /test C:\Program Files\jakarta-tomcat\webapps\test
<Directory "C:\Program Files\jakarta-tomcat\webapps\test">
Options Indexes FollowSymLinks
</Directory>
ApJServMount /examples/servlet /examples
<Location /examples/WEB-INF/ >
AllowOverride None
deny from all
</Location>
ApJServMount /test/servlet /test
<Location /test/WEB-INF/ >
AllowOverride None
deny from all
</Location>
ApJServMount /servlet /ROOT
</IfModule>