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:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to