Logging virtual host

2002-02-08 Thread Elm Gysel

Hello,

I have a question regerding logging in Tomcat. When I define a Virtual Host
in Apache i would put

VirtualHost *
DocumentRoot /home/gunnar/public-www/opbit/
ServerName somename
CustomLog /home/gunnar/public-www/logs/opbit.log full
/VirtualHost

Or even maybe
ErrorLog logs/public-www-error.log
TransferLog logs/public-www-access.log
instead of customlog.

Anyway, I want to be able to perform the same when I define my VirtualHost
in a apps-somename.xml file.
Is there some directive that I can put before a line in my xml file to get
it in the auto/mod_jk.conf file that is automaticly generated with tomcat.sh
start -jkconf?
Something like
# CustomLog /home/gunnar/public-www/logs/opbit.log ful
so that jkconf creates the file with
CustomLog /home/gunnar/public-www/logs/opbit.log ful
between the VirtualHost * directive for that virtual domain?

So if this is one of the apps-.xml file for example

?xml version=1.0 encoding=ISO-8859-1?
Server
Host name=www.example.com 
Context path= docBase=/var/www-data/example.com/
 LogSetter name=example.com.log
path=/usr/local/apache_1.3.23/logs/ /
/Context
/Host
/Server

The output of this is :

VirtualHost *
ServerName www.opbit.com
DocumentRoot /home/gunnar/public-www/opbit
Directory /var/www-data/example.com/
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
/Directory
# Deny direct access to WEB-INF and META-INF
#
Location /WEB-INF/*
AllowOverride None
deny from all
/Location
Location /META-INF/*
AllowOverride None
deny from all
/Location
JkMount /servlet/*  ajp13
JkMount /*.jsp ajp13
 /VirtualHost

I want something like CustomLog /home/gunnar/public-www/logs/opbit.log
full inthere when the file is generated.


Thanks for any responses!

Elm


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




Tomcat 3.3a Apache 1.3.22 : Apache not hiding WEB-INF and not using default document (.jsp)

2002-01-29 Thread Elm Gysel

Hello,


Tomcat seems to create all the configuration files as I want them
(with -jkconf) but apache doesn't seem to get them right.
I can browse all my directories through Apache, I can browse WEB-INF without
problem? When I click on a .jsp it goes through Tomcat as its supposed to.

This Tomcat configuration has worked on Apache 1.3.9. I don't know if this
is a Apache problem or a Tomcat problem or my problem :)
Is there a way to get the configuration from Apache at runtime? To see what
he really has loaded in what way?
Here is the file Tomcat generates and the one Apache includes.

IfModule !mod_jk.c
  LoadModule jk_module /usr/lib/apache/1.3/mod_jk-3.3-ap13-noeapi.so
/IfModule

JkWorkersFile /usr/local/jakarta-tomcat-3.3a/conf/jk/workers.properties
JkLogFile /usr/local/jakarta-tomcat-3.3a/logs/mod_jk.log

JkLogLevel emerg


 /examples 

# Static files
Alias /examples /usr/local/jakarta-tomcat-3.3a/webapps/examples

Directory /usr/local/jakarta-tomcat-3.3a/webapps/examples
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /examples/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /examples/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /examples/servlet/*  ajp13
JkMount /examples/*.jsp ajp13


Thanks for any suggestions.

Elm


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




Re: Tomcat 3.3a Apache 1.3.22 : Apache not hiding WEB-INF and not using default document (.jsp)

2002-01-29 Thread Elm Gysel


Yes, sorry for being not very clear. I do mean the WEB-INF directorie in the
examples directory. Also on other mappings its not taking index.jsp as
default as defined in the DirectoryIndex for that directory.

But let me do say again that all this worked perfectly with 1.3.9 . I have
also used other versions of Apache with this Tomcat release and it was also
working.

Elm


Do you mean with 'my directories' and 'WEB-INF'
directories that are in the examples directory ?

If not you must define the Directory and the
Location tag for your base directory.

 -Ursprüngliche Nachricht-
 Von: Elm Gysel [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 29. Januar 2002 09:56
 An: Tomcat Users List
 Betreff: Tomcat 3.3a  Apache 1.3.22 : Apache not hiding
 WEB-INF and not
 using default document (.jsp)
snip/
 I can browse all my directories through Apache, I can browse
 WEB-INF without
 problem?
snip/

 Directory /usr/local/jakarta-tomcat-3.3a/webapps/examples
 Options Indexes FollowSymLinks
 DirectoryIndex index.jsp index.html index.htm
 /Directory


 # Deny direct access to WEB-INF and META-INF
 #
 Location /examples/WEB-INF/*
 AllowOverride None
 deny from all
 /Location

 Location /examples/META-INF/*
 AllowOverride None
 deny from all
 /Location

 JkMount /examples/servlet/*  ajp13
 JkMount /examples/*.jsp ajp13


 Thanks for any suggestions.

 Elm


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




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




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




Re: Tomcat 3.3a Apache 1.3.22 : Apache not hiding WEB-INF and not using default document (.jsp)

2002-01-29 Thread Elm Gysel


For anyone who may be interested I found the problem.

I've staticly linked with a few modules also with mod_access and mod_mime
and I had the LoadModule directive for those modules included in my
httpd.conf. When you load them dynamicly and link with them static you
really get a weird behavour!! So watch out of it!

Elm

To see the some configuration of apache at runtime include the
following in httpd.conf (If not already there):

LoadModule info_module /apache dir/lib/mod_info.so

IfModule mod_info.c
   Location /server-info
SetHandler server-info
/Location
/IfModulea

Hit the Url servername/server-info

 -Ursprüngliche Nachricht-
 Von: Elm Gysel [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 29. Januar 2002 10:17
 An: Tomcat Users List
 Betreff: Re: Tomcat 3.3a  Apache 1.3.22 : Apache not hiding
 WEB-INF and
 not using default document (.jsp)



 Yes, sorry for being not very clear. I do mean the WEB-INF
 directorie in the
 examples directory. Also on other mappings its not taking index.jsp as
 default as defined in the DirectoryIndex for that directory.

 But let me do say again that all this worked perfectly with
 1.3.9 . I have
 also used other versions of Apache with this Tomcat release
 and it was also
 working.

 Elm


 Do you mean with 'my directories' and 'WEB-INF'
 directories that are in the examples directory ?

 If not you must define the Directory and the
 Location tag for your base directory.

  -Ursprüngliche Nachricht-
  Von: Elm Gysel [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 29. Januar 2002 09:56
  An: Tomcat Users List
  Betreff: Tomcat 3.3a  Apache 1.3.22 : Apache not hiding
  WEB-INF and not
  using default document (.jsp)
 snip/
  I can browse all my directories through Apache, I can browse
  WEB-INF without
  problem?
 snip/

  Directory /usr/local/jakarta-tomcat-3.3a/webapps/examples
  Options Indexes FollowSymLinks
  DirectoryIndex index.jsp index.html index.htm
  /Directory
 
 
  # Deny direct access to WEB-INF and META-INF
  #
  Location /examples/WEB-INF/*
  AllowOverride None
  deny from all
  /Location
 
  Location /examples/META-INF/*
  AllowOverride None
  deny from all
  /Location
 
  JkMount /examples/servlet/*  ajp13
  JkMount /examples/*.jsp ajp13
 
 
  Thanks for any suggestions.
 
  Elm
 
 
  --
  To unsubscribe:
mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




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




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



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



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




No mod_jk in Tomcat 4.0 ?

2002-01-18 Thread Elm Gysel

Heya!

Do I get it right?

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/index.html

doesn't say a word about mod_jk for Tomcat 4.0? We have to use WAR¨P or AJP?

Am I missing something?

Thanks!
Elm


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




web.xml extension mapping

2001-12-12 Thread Elm Gysel

hello,

I'm currently using Tomcat 3.2.2 with Apache and i'm trying to map *.pdf to the Tomcat 
engine.
I'm using mod_jk.
Since this is version 3.2.2 the mod_jk.conf-auto file gets generated automaticly when 
tomcat starts.

I've added these lines to my WEB-INF/web.xml file :

(partial file)

 servlet
  servlet-name
   PDFCreator
  /servlet-name
  servlet-class
   com.nihisoft.odm.servlet.PDFCreator
  /servlet-class
 /servlet
 servlet-mapping
  servlet-name
   PDFCreator
  /servlet-name
  url-pattern
   *.pdf
  /url-pattern
 /servlet-mapping

now when I run Tomcat and the mod_jk.auto-conf file gets generated the mapping doesn't 
seem to be done in mod_jk.auto-conf. Am I missing something?

Thanks for any help!

Elm



mod_jk Vs mod_webapp

2001-10-31 Thread Elm Gysel

Hello,

I have been using mod_jserv and then I moved to mod_jk. Now there is all this fuzz 
about mod_webapp but I can hardly find information on it. Can anyone redirect me to 
some page that explains it? Or can anyway tell me what its all about?

Thanks!

Elm



Re: unsubscribe!!

2001-10-31 Thread Elm Gysel

You silly person
have you never looked at the the bottom of a message?

let me show it to you again :

To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]

that is : TO UNSUBSCRIBE, E-MAIL
MAILTO:[EMAIL PROTECTED]

I hope you got this one now...


 I have attempted to unsubscribe twice now and I'm still getting emails!
 Someone PLEASE take me off this list.

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: unsubscribe!!

2001-10-31 Thread Elm Gysel

You are right! I apologize! My boss was crappy and I did it without
thinking!
Lets go have a beer! :)

Sorry again..

Elm

Why so unpolite without cause.

He didn't say that he doesn't know how to unsubscribe,
but that it didn't work.

 -Ursprüngliche Nachricht-
 Von: Elm Gysel [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 31. Oktober 2001 15:58
 An: Tomcat Users List
 Betreff: Re: unsubscribe!!
snip/
 You silly person
 have you never looked at the the bottom of a message?
 let me show it to you again :
snip/

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Worth Upgrading to Tomcat4?

2001-09-25 Thread Elm Gysel

I've been following this mailing list for some time now. From the moment
Tomcat4.0 was released I've seen alot of questions and bugs passing by. This
is understandable since its a whole new version. But now my question is, is
it worth upgrading from Tomcat 3.2.2?


Thanks for any responses!

Elm




Re: UNSUSCRIBE

2001-09-20 Thread Elm Gysel

list-unsubscribe: [EMAIL PROTECTED]
not here.

Elm

- Original Message - 
From: John Pashley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 10:16 AM
Subject: UNSUSCRIBE


 UNSUSCRIBE




Re: Tomcat 4.0 Session Timeout

2001-09-20 Thread Elm Gysel

If you have changed session-timeout and restarted the server then it
should work.

How are you noticing that your session is still active?

Elm


- Original Message -
From: Jim Urban [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 20, 2001 4:27 PM
Subject: Tomcat 4.0 Session Timeout


 I've asked this twice already and have yet to receive an answer.  Someone
 running Tomcat 4.0 must know the answer to my question.  I must get this
 resolved since the security requirements of my application require the
 user's session to automatically time out after 5 minutes of inactivity...

 How do I set the session time out for a context in Tomcat 4.0.  The
session
 time out is defaulting to 18000 seconds (5 hours?).  I have tried adding
the
 following to both my context's WEB-INF/web.xml file and the
 $CATALINA_HOME/conf/web.xml file but both are ignored.

   session-config
 session-timeout300/session-timeout
   /session-config

 How do I go about setting the time out to 5 minutes?

 Thanks,
 Jim Urban
 Product Manager
 Netsteps Inc.
 Suite 505E
 1 Pierce Pl.
 Itasca, IL  60143
 Voice:  (630) 250-3045 x2164
 Fax:  (630) 250-3046


 PS:  Love Tomcat 4.0, it seems really solid!




Re: Getting a Verisign certificate

2001-09-19 Thread Elm Gysel

Why don't you get a verisign certificate from verisign from
http://www.verisign.com/ . ;)

Elm

  -Original Message-
  From: Alex Colic [SMTP:[EMAIL PROTECTED]]
  Sent: Wednesday, September 19, 2001 9:04 AM
  To: Tomcat-User
  Subject: Re: Getting a Verisign certificate
 
  Hi,
 
  we need an official certificate. Any idea where I can get one for
Tomcat?
 
 
  Alex
 

 --
  --
  ---
 
  Wednesday, September 19, 2001, 3:42:33 PM, Alex Colic
  [EMAIL PROTECTED] wrote:
   Hi, I am trying to get a verisign certificate for tomcat.
   The wizard is asking for a (CSR) Certificate Signing Request. Do you
  know
   where I can get one of those for tomcat?
 
  I'm guessing those generate by openssl are just as good, unless you
  really need an oficial cert. See http://www.openssl.org/ .
 
  --Ciprian




ApacheModuleJServ.dll is gone?

2001-09-13 Thread Elm Gysel

Hello,

Where did ApacheModuleJServ.dll go? I can't seem to find it. Is this being
replaced or something? If so, does there anything need to change on the
installation configuration?

Thanks!

Elm




Re: ApacheModuleJServ.dll is gone?

2001-09-13 Thread Elm Gysel

Thanks for the replies!
Just to be very sure, if I try mod_jk.dll then I'll have to change this line
in /conf/tomcat-apache.conf
LoadModule jserv_module modules/ApacheModuleJServ.dll
to
LoadModule jserv_module modules/mod_jk.dll
and all of this will stil work with version 3.2.2?

Thanks!!

Elm

- Original Message -
From: Larry Isaacs [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 3:51 PM
Subject: RE: ApacheModuleJServ.dll is gone?


 ApacheModuleJServ.dll is the older mod_jserv derived connector.
 I doesn't appear that one was build for Tomcat 3.2.3.  Since
 I don't think much has changed, you can try the one in the
 Tomcat 3.3 beta2 release:


http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-b2/bin/win32/i
386/

 Larry

  -Original Message-
  From: Hoggatt Matt - mahogg [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 13, 2001 9:37 AM
  To: '[EMAIL PROTECTED]'
  Subject: RE: ApacheModuleJServ.dll is gone?
 
 
  I believe the file name has been changed to mod_jk.dll.  You
  can get it
  here:
 
  http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3
  /bin/win32/i38
  6/
 
  -Matt
 
  -Original Message-
  From: Elm Gysel [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, September 13, 2001 5:04 AM
  To: [EMAIL PROTECTED]
  Subject: ApacheModuleJServ.dll is gone?
 
 
  Hello,
 
  Where did ApacheModuleJServ.dll go? I can't seem to find it.
  Is this being
  replaced or something? If so, does there anything need to
  change on the
  installation configuration?
 
  Thanks!
 
  Elm
 




Re: Can I configure Tomcat to accept HTTP requests from remote machines?

2001-09-13 Thread Elm Gysel

heya!

You don't need to run apache, but its recommended.
here are pro's and contra's from :
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html#coo
peration_need
  1.Tomcat is not as fast as Apache when it comes to static pages.
  2.Tomcat is not as configurable as Apache.
  3.Tomcat is not as robust as Apache.
  4.Tomcat may not address many sites' need for functionality found
only in Apache modules (e.g. Perl, PHP, etc.).

  For all these reasons it is recommended that real-world sites use an
industrial-strength web server, such as Apache, for serving static content,
and use Tomcat as a Servlet/JSP add-on.

  Cheers!

  Elm

- Original Message -
From: Raymond Reid [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 13, 2001 4:16 PM
Subject: Can I configure Tomcat to accept HTTP requests from remote
machines?


 Can I configure Tomcat to accept http requests from remote IP addresses
 without running another web server at the same time? I
 currently have Tomcat 3.2.3 installed on NT 4.0 Service pack 6.  After
 configuring Tomcat, I can enter http://localhost8080
 into the location field in my browser and see the welcome page.  But
 when I try to access the same page from a
 different computer using the IP address of the machine I have Tomcat
 running on, the page won't come up.

 Do I need to be running Apache with Tomcat to access pages remotely?  If
 someone could please point me in the right
 direction, I would really appreciate it.

 Thanks,
 Ray




Re: Announce: OurSQL, JSP interface for MySQL

2001-09-12 Thread Elm Gysel

That page has 4 links of its own and 3 of them give you jsp errors.

I'm not sure if I would join that project tho :)

Greetings from Belgium!

Elm

- Original Message -
From: Kaneda K [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 12, 2001 12:42 PM
Subject: Re: Announce: OurSQL, JSP interface for MySQL


 At 06:47 12/09/2001 +0200, you wrote:
 Hi,
 First, I'm sorry for being half off-topic.
 Recently, I was looking for a good admin tool for MySQL. All I found was
 MyAdmin, which is written in PHP. I don't want any PHP on my server, so I
 decided to write my own software, and here it is - the first version of
 OurSQL.
 What it can do? Right now - you can log in to any MySQL database (local
or
 remote) and execute any queries you want, viewing results. The goal is,
of
 course, to make easy any frequent operation.
 Tell me what do you think, any suggestions, etc.
 Yes I know the current version sucks. Think of it as an interactive demo.
 Installation: copy the .jsps to a single directory anywhere and add
MM.MySQL
 drives to WEB-INF/lib
 
 You can get it here: http://oursql.wwtech.pl
 
 Greetings,
   deacon Marcus
 
 p.s. I still need the Tomcat plushie, please...

 http://www.javaphilia.com/

 Is the same kind of project may be you could go faster by joining it,
don't
 you think ?
 that the purpuse of GLP
 --
 Kaneda K - matchmaker ;)