Re: Tomcat 3.3, server.xml and a lot of fun

2001-12-04 Thread hanzo

You know what ? Even though -java programmer- sounds rude, I must admit that all
his points are right
Apache's docs is just slightly better than Tomcat's, but since its structure is
not so complicated,
Apache is easier to learn.  Browsing through Tomcat's docs gets you nowhere.
*sigh*
Its configuration is somewhat confusing. I mean.. what is a webapps ?
It would help if there is a simple tutorial to create one.

And I havent solve this mod_webapp thing... :(


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: mod_webapp config

2001-12-04 Thread hanzo

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]




Re: mod_webapp config

2001-12-03 Thread hanzo


- Original Message - 
From: William Tansill [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
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:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: mod_webapp config

2001-12-02 Thread hanzo

- Original Message -
From: William Tansill
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, December 02, 2001 3:52 AM
Subject: RE: mod_webapp config

Thanks a lot, it works.. now I have _more_ questions ^_^

 This is a partial listing of my VHosts section of Apache's httpd.conf file:

 #
 # Use name-based virtual hosting.
 #
 NameVirtualHost 192.168.123.105

 VirtualHost 192.168.123.105
ServerName www.servlets.com
DocumentRoot d:/Program Files/Apache Tomcat 4.0/webapps/ROOT/

WebAppConnection conn warp localhost:8008
WebAppDeploy examples conn /examples
 /VirtualHost

How can I tell Apache to process jsp files ?
the above config dont process jsp files.. for example.. if I drop index.jsp into
the /ROOT/ dir, Apache wont process it
Even if I have add DirectoryIndex directives, it just display the file (just
like HTML files), but not 'process' it
The strange thing is if I click on the examples, it works..
Should I modify the config, or I just have to use port 8080 (which I don't want
to)

Thanks in advance



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: mod_webapp config

2001-12-02 Thread hanzo

- Original Message -
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, December 03, 2001 12:25 AM
Subject: Re: mod_webapp config


 William Tansill wrote:

  This is a partial listing of my VHosts section of Apache's httpd.conf file:

 What does your web.xml look like? I'm having troubles with Tomcat side, I'd
say.
 I'm using one of Pier's nightly builds, but I have a nasty feeling it's me
 screwing something up - Pier's code looks clean on the part that's bugging me.

What troubles ?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




mod_webapp config

2001-11-30 Thread hanzo

I'm trying to configure Tomcat 4.01 with Apache 1.3.22 on Win2k
I have installed mod_webapp, but what does it suppose to do ?
What I want is one of the Apache's virtual host will point to Tomcat
so that virtualhost can serve JSPs. (no need to type 8080 port)
But now if I type the vhost url name, it is not redirected by Apache..
Anyone have a solution ?


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]