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 Tue, 04 Dec 2001 04:38:14 GMT

----- Original Message ----- 
From: "William Tansill" <wtansill@erols.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Monday, December 03, 2001 1:15 AM
Subject: RE: mod_webapp config


> My guess is that if you want to create and run your own JSP's, you will need
> to install them per the standard deployment mechanism, update server.xml to
> reflect the new deployment context, and then restart Tomcat.  At least those
> are the steps I'm planning on taking when I get an example up and running.
> If you get your stuff working first, write back to the group and let me know
> how you did it.  Thanks!

I give up using mod_webapp.. mod_rewrite is -a lot easier-

<VirtualHost 192.168.0.1>
    ServerAlias my
    ServerName my.domain

    RewriteEngine on
    RewriteLog "logs/my-rewrite.log"
    RewriteLogLevel 1

    RewriteCond %{SERVER_PORT} ^80$
    RewriteRule ^/(.*) http://my.domain:8080/$1 [L,R]

    DocumentRoot C:/Program Files/Apache Tomcat 4.0/webapps/test
    DirectoryIndex index.html index.php index.jsp

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


--
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