tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hanzo" <hanzo...@yahoo.com>
Subject Re: mod_webapp config
Date Wed, 05 Dec 2001 01:27:03 GMT
mod_webapp turned out to be quite easy to set up... (if we had decent docs and
tutorials) *sigh*

this is a Apache virtual host setting...

<VirtualHost 192.168.0.1>
    ServerAlias my
    ServerName my.domain

    <IfModule mod_webapp.c>
    WebAppConnection TestConn warp my.domain:8008
    WebAppDeploy     test TestConn /
    </IfModule>

    DocumentRoot C:/Program Files/Apache Tomcat 4.0/webapps/test

    ErrorLog logs/my-error.log
    CustomLog logs/my-access.log common
</VirtualHost>


then you can save below example as index.jsp in "C:/Program Files/Apache Tomcat
4.0/webapps/test"

<%@ page language="Java" %>
<HTML>
<BODY>
JSP Request Method: <%= request.getMethod() %><BR>
Date: <%= new java.util.Date() %><BR>
</BODY>
</HTML>

Go to http://my.domain from your web browser...

The reason why I cant get it working in the first place is the WebAppDeploy
directive.
If you want jsp pages on your root dir then the last parameter should be "/"
like the above examples
If you set it to.. lets say "/test/" then you should point your browser to
http://my.domain/test
I hope this will end a lot of confusion..




--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message