Re: mod_jk binary for Solaris 9

2003-10-15 Thread Johan Louwers
Take a look at http://www.johnturner.com/



- Original Message -
From: "Kellam, Jeannie K Priest" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, October 14, 2003 9:42 PM
Subject: mod_jk binary for Solaris 9


Hi,

Does anyone have a Solaris 9 (sparc) binary for mod_jk available to share?
If not, can anyone provide instructions from their experience building
mod_jk for Solaris 9?  That's for apache-1.3.

Thanks,
Jeannie

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


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



Re: HOW TO CREATE VIRTUAL HOST IN APACHE

2003-10-09 Thread Johan Louwers
Edit your httpd.conf and make it look like something like this:


ServerAdmin [EMAIL PROTECTED]
DocumentRoot /export/home/www.someserver2.com
ServerName www.someserver2.com
ErrorLog /export/home3/system_logs/error-log_www.someserver2.com
CustomLog
/export/home3/system_logs/common-log_common_www.someserver2.com common





ServerAdmin [EMAIL PROTECTED]
DocumentRoot /export/home/www.someserver1.com
ServerName www.someserver1.com
ErrorLog /export/home3/system_logs/error-log_www.someserver1.com
CustomLog /export/home3/system_logs/common-log_www.someserver1.com
common



restart apache.


Regards,
Johan Louwers.






- Original Message -
From: "ABDUL BASIT" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 09, 2003 11:33 AM
Subject: HOW TO CREATE VIRTUAL HOST IN APACHE


> hi all..
> Can any one tell me how to create virtual hosts in
> apache2.0.47.
> please, if any one can help me.
> tell me the step by step procedure to create a virtual
> host in apache2.
> Thanks
> mail me at [EMAIL PROTECTED]
>
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



solution jakarta-tomcat and virtual hosts

2003-10-01 Thread Johan Louwers
I have asked the question a couple of times in this mailing list and at some
places on usenet. I solved this problem at the end and will give a small
example of the things I did to make this work. I will post this on the
mailinglist and in some usenet groups in the hope some people can use this
information.If there are people that have things to add to this paper please
do so and tell me about it :-)




[problem situation]
1 server and 2 site's. Only port 80 can be used due to firewall rules. Both
site's are in need of JSP support under port 80.

We have www.someserver.com and mnt.someserver.com

www.someserver.com is located at /export/home/webroot/www.someserver.com
mnt.someserver.com is located at /export/home/webroot/mnt.someserver.com

both the JSP files and normal HTML files have to be located at the same
location.




[STEP 1]
I will not go in detail to this step.
 - Build and/or install apache webserver
 - Build and/or install jakarta-tomcat
 - Build and/or install a mod_jk connector

If you have some problems with installing jakarta-tomcat and or mod_jk
please take a look at www.johnturner.com most of the question can be solved
here.




[STEP 2]
Create 2 virtual domains in the Apache webserver.
(if apache is located at /usr/local/apache) BACKUP
/usr/local/apache/conf/httpd.conf and after that open the original with VI
or some editor you have on your system.


Add the following lines:

###
# BEGIN virtualhost www.someserver.com
 
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /export/home/webroot/www.someserver.com
 ServerName www.someserver.com
 ErrorLog /export/home/weblog/error-log_www.someserver.com
 CustomLog /export/home/weblog/common-log_www.someserver.com common
 
# END virtualhost www.someserver.com
###

###
# BEGIN virtualhost mnt.someserver.com
 
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /export/home/webroot/mnt.someserver.com
 ServerName mnt.someserver.com
 ErrorLog /export/home/weblog/error-log_mnt.someserver.com
 CustomLog /export/home/weblog/common-log_mnt.someserver.com common
 
# END virtualhost mnt.someserver.com
###

If you followd the correct way of instaling the mod_jk connector you will
also have a line in your httpd.conf file something like this:

LoadModule jk2_module modules/mod_jk2.so

Make sure to save the file. Restart Apache and test if all works correct.




[STEP 3]
(if jakarta-tomcat is located at /usr/local/jakarta-tomcat-4.1.27/) open
/usr/local/jakarta-tomcat-4.1.27/conf/server.xml in VI or some editor you
have on your system.

Add the following lines:



  
 
 
  







 








[STEP 4]
(if apache is located at /usr/local/apache)  open
/usr/local/apache/conf/workers2.properties with VI and add the following
lines:

#

# worker properties www.someserver.com
[uri:www.someserver.com/*.jsp]
worker=ajp13:localhost:8009


# worker properties mnt.someserver.com
[uri:mnt.someserver.com/*.jsp]
worker=ajp13:localhost:8009

#




[STEP 5]
Shutdown apache and tomcat if they are running and start them up again. You
should have now jsp access on

http://www.someserver.com and on http://mnt.someserver.com

Regards,
Johan Louwers


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



tomcat and virtual hosts

2003-09-30 Thread Johan Louwers
I have set up tomcat and apache... bind them with a JK2 connector both on
port 80. I have 2 domains running on the machine. I made the virtual hosts
work in apache with editting httpd.conf  The apache docs are located on the
following location:

/export/home/webroot/site1 (www.site1.com)
/export/home/webroot/site2 (www.site2.com)

I would like to access jsp files on both the website's like
www.site1.com/index.jsp and www.site2.com/index.jsp and store the jsp files
at the same location as the html docs. This means locate them in
/export/home/webroot/site1 and /export/home/webroot/site2

How do I make tomcat understeand that it must be running jsp files on this
locations. Anybody knows how to do this? You have to add some things to
server.xml i know that buth what and do  have to edit httpd.conf in some way
to make this work? A working example of a server.xml/httpd.conf file is
welcome and also any tip hint and clue :-)

Thanks already,
Johan.


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



virtual hosts in tomcat

2003-09-29 Thread Johan Louwers
Virtual Hosts in tomcat 
how do you handel virtual hosts in tomcat?

I have in Apache (httpd) 2 virtual hosts www.someserver.com and mnt.someserver.com I 
would like to run on both jsp pages how do I make this work?

Regards,
Johan.


Re: Tomcat NOT running --> solved

2003-09-29 Thread Johan Louwers
Solved the problem,
the problem was I had a typo

In tomcat-users.xml I forgot a "
I had :
 

and this should be:
 

:-)


- Original Message -
From: "Johan Louwers" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 29, 2003 11:17 AM
Subject: Tomcat NOT running


> I have a problem,
> we found this morning that the tomcat server is not starting.. when we do
> manual ./startup.sh all looks good buth tomcat is not started. When we do
> ./shutdown.sh I get the following error:
>
> # ./shutdown.sh
> Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.27
> Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.27
> Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.27/temp
> Using JAVA_HOME:   /usr/local/j2sdk1.4.1_05
> Catalina.stop: java.net.ConnectException: Connection refused
> java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> at java.net.Socket.connect(Socket.java:434)
> at java.net.Socket.connect(Socket.java:384)
> at java.net.Socket.(Socket.java:291)
> at java.net.Socket.(Socket.java:119)
> at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> #
>
> Any clue anybody?
>
> Regards,
> Johan.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Tomcat NOT running

2003-09-29 Thread Johan Louwers
core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.ja
va:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Stopping service Tomcat-Standalone
Catalina.stop: LifecycleException:  Coyote connector has not been started
LifecycleException:  Coyote connector has not been started
at
org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1199)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:546)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
#








- Original Message -
From: "Johan Louwers" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 29, 2003 11:17 AM
Subject: Tomcat NOT running


> I have a problem,
> we found this morning that the tomcat server is not starting.. when we do
> manual ./startup.sh all looks good buth tomcat is not started. When we do
> ./shutdown.sh I get the following error:
>
> # ./shutdown.sh
> Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.27
> Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.27
> Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.27/temp
> Using JAVA_HOME:   /usr/local/j2sdk1.4.1_05
> Catalina.stop: java.net.ConnectException: Connection refused
> java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> at java.net.Socket.connect(Socket.java:434)
> at java.net.Socket.connect(Socket.java:384)
> at java.net.Socket.(Socket.java:291)
> at java.net.Socket.(Socket.java:119)
> at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
> #
>
> Any clue anybody?
>
> Regards,
> Johan.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Tomcat NOT running

2003-09-29 Thread Johan Louwers
I have a problem,
we found this morning that the tomcat server is not starting.. when we do
manual ./startup.sh all looks good buth tomcat is not started. When we do
./shutdown.sh I get the following error:

# ./shutdown.sh
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.27
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.27
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.27/temp
Using JAVA_HOME:   /usr/local/j2sdk1.4.1_05
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:434)
at java.net.Socket.connect(Socket.java:384)
at java.net.Socket.(Socket.java:291)
at java.net.Socket.(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
#

Any clue anybody?

Regards,
Johan.


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



Re: Tomcat crashing at random moments of time

2003-09-24 Thread Johan Louwers
How do you start tomcat? by command line? Is the problem only there when you
end the telnet session you used to start tomcat or close the terminal you
used to start it?

If so,
do NOT use:./startup.sh
instead use:nohup ./startup.sh

Johan.


- Original Message -
From: "Vitaliy Yermolenko" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 24, 2003 10:28 AM
Subject: Tomcat crashing at random moments of time


> Hi all,
>
> we are trying to run own web application (JSP, MySQL)
> on Slackware 9.0.0 with using tomcat-4.1.24 (used
> default configuration) and j2sdk1.4.1_02. And our
> problem is: at the random moments of time Tomcat
> unfortunately goes down with interrupting of service.
> :-( System.exit is definitely absent in our code.
> Nobody did stop Tomcat server. Log file catalina.out
> says just normal shutdown message, which is: "Stopping
> service Tomcat-Standalone", and nothing else. No more
> information about this case.
>
> Any ideas? How to investigate/fix the problem? Is it
> possible to debug how it was happened? Tomcat or Java?
>
> Any help will be appreciated.
>
> -+-->
> Regards,
> Vitaliy Yermolenko.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



running jsp like www.someserver.com/index.jsp

2003-09-23 Thread Johan Louwers
I have a qustion,
I would like to run jsp's under the root of my domain like
www.someserver.com/index.jsp I have only managed to run a jsp file under a
dir like www.someserver.com/somejspdir/index.jsp

I have 2 domains on this box... how do I manage this?

I have /export/home/site1 and /export/home/site2 and I would like to run on
both site's jsp files... like www.someserver.com/index.jsp and
www.someotherserver.com/index.jsp

anybody a clue?
regardsm
Johan.


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



Re: vertial host apache/tomcat

2003-09-18 Thread Johan Louwers
:-) I will post the message again that contains the original message. The
question was:


# --begin original message --
Ok, finaly have apache and tomcat running both on port 80.

I have created the following dir's
/export/home/www.someserver.com
/export/home/mnt.someserver.com

This will be the location of http://www.someserver.com  and
http://mnt.someserver.com

To test I have placed a document named info_www.txt in
/export/home/www.someserver.com and placed info_mnt.txt in
/export/home/mnt.someserver.com I have created 2 vertiualhosts like this in
my httpd.conf:
_
NameVirtualHost *


ServerAdmin [EMAIL PROTECTED]
DocumentRoot/export/home/www.someserver.com
ServerName www.someserver.com
ErrorLog /export/home/log/errorlog-2
CustomLog /export/home/log/customlog-2 custom



ServerAdmin [EMAIL PROTECTED]
DocumentRoot /export/home/mnt.someserver.com
ServerName mnt.someserver.com
ErrorLog /export/home/log/errorlog-1
CustomLog /export/home/log/customlog-1 custom

_

If  open www.someserver.com/www.txt this is correct and working Then I open
www.someserver.com/info_mnt.txt and this also opend. This should not be
possible info_mnt.txt should only be availabale true the domain
mnt.someserver.com. How is it possible I also can open it true
www.someserver.com ?

I also like to run jsp files under www.someserver.com and mnt.someserver.com
... people are not allowd to open documents from mnt in the www part..
How do I change the webapps dirs and make them available under
http://mnt.someserver.com and http://www,someserver.com ?

Thanks already,
Regards. Johan.
# --end original message --
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, September 18, 2003 7:44 AM
Subject: Re: vertial host apache/tomcat


> What's the question?
>
>
> Johan Louwers wrote:
> >
> > Luke,
> > I placed my httpd.conf in this mail. Hope you (or someone else)
knows
> > the answer.
> >
> > # --BEGIN HTTPD.CONF--
> > #
> > # Based upon the NCSA server configuration files originally by Rob
McCool.
> > #
> > # This is the main Apache server configuration file.  It contains the
> > # configuration directives that give the server its instructions.
> > # See http://httpd.apache.org/docs-2.0/> for detailed information
about
> > # the directives.
> > #
> > # Do NOT simply read the instructions in here without understanding
> > # what they do.  They're here only as hints or reminders.  If you are
unsure
> > # consult the online docs. You have been warned.
> > #
> > # The configuration directives are grouped into three basic sections:
> > #  1. Directives that control the operation of the Apache server process
as
> > a
> > # whole (the 'global environment').
> > #  2. Directives that define the parameters of the 'main' or 'default'
> > server,
> > # which responds to requests that aren't handled by a virtual host.
> > # These directives also provide default values for the settings
> > # of all virtual hosts.
> > #  3. Settings for virtual hosts, which allow Web requests to be sent to
> > # different IP addresses or hostnames and have them handled by the
> > # same Apache server process.
> > #
> > # Configuration and logfile names: If the filenames you specify for many
> > # of the server's control files begin with "/" (or "drive:/" for Win32),
the
> > # server will use that explicit path.  If the filenames do *not* begin
> > # with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
> > # with ServerRoot set to "/usr/local/apache" will be interpreted by the
> > # server as "/usr/local/apache/logs/foo.log".
> > #
> >
> > ### Section 1: Global Environment
> > #
> > # The directives in this section affect the overall operation of Apache,
> > # such as the number of concurrent requests it can handle or where it
> > # can find its configuration files.
> > #
> >
> > #
> > # ServerRoot: The top of the directory tree under which the server's
> > # configuration, error, and log files are kept.
> > #
> > # NOTE!  If you intend to place this on an NFS (or otherwise network)
> > # mounted filesystem then please read the LockFile documentation
(available
> > # at
http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile>);
> > # you will save yourself a lot of trouble.

Re: vertial host apache/tomcat

2003-09-18 Thread Johan Louwers
.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_.html.var response to
# our collection of by-error message multi-language collections.  We use
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_.html.var files by adding the line:
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /usr/local/apache/error/include/ files and copying them to
/your/include/path/,
# even on a per-VirtualHost basis.  The default include files will display
# your Apache version number and your ServerAdmin email address regardless
# of the setting of ServerSignature.
#
# The internationalized error documents require mod_alias, mod_include
# and mod_negotiation.  To activate them, uncomment the following 30 lines.

#Alias /error/ "/usr/local/apache/error/"
#
#
#AllowOverride None
#Options IncludesNoExec
#AddOutputFilter Includes html
#AddHandler type-map var
#Order allow,deny
#Allow from all
#LanguagePriority en cs de es fr it nl sv pt-br ro
#ForceLanguagePriority Prefer Fallback
#
#
#ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
#ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
#ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
#ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#ErrorDocument 410 /error/HTTP_GONE.html.var
#ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
#ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
#ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var


#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a
# problem with Microsoft WebFolders which does not appropriately handle
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider"
redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully

#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
#
#SetHandler server-status
#Order deny,allow
#Deny from all
#Allow from .example.com
#

#
# Allow remote server configuration reports, with the URL of
#  http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
#
#SetHandler server-info
#Order deny,allow
#Deny from all
#Allow from .example.com
#


#
# Bring in additional module-specific configurations
#

Include conf/ssl.conf



### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry
about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

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

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#
#ServerAdmin [EMAIL PROTECTED]
#DocumentRoot /www/docs/dummy-host.example.com
#ServerName dummy-host.example

vertial host apache/tomcat

2003-09-17 Thread Johan Louwers
Ok, finaly have apache and tomcat running both on port 80.

I have created the following dir's
/export/home/www.someserver.com
/export/home/mnt.someserver.com

This will be the location of http://www.someserver.com  and
http://mnt.someserver.com

To test I have placed a document named info_www.txt in
/export/home/www.someserver.com and placed info_mnt.txt in
/export/home/mnt.someserver.com I have created 2 vertiualhosts like this in
my httpd.conf:
_
NameVirtualHost *


ServerAdmin [EMAIL PROTECTED]
DocumentRoot/export/home/www.someserver.com
ServerName www.someserver.com
ErrorLog /export/home/log/errorlog-2
CustomLog /export/home/log/customlog-2 custom



ServerAdmin [EMAIL PROTECTED]
DocumentRoot /export/home/mnt.someserver.com
ServerName mnt.someserver.com
ErrorLog /export/home/log/errorlog-1
CustomLog /export/home/log/customlog-1 custom

_

If  open www.someserver.com/www.txt this is correct and working Then I open
www.someserver.com/info_mnt.txt and this also opend. This should not be
possible info_mnt.txt should only be availabale true the domain
mnt.someserver.com. How is it possible I also can open it true
www.someserver.com ?

I also like to run jsp files under www.someserver.com and mnt.someserver.com
... people are not allowd to open documents from mnt in the www part..
How do I change the webapps dirs and make them available under
http://mnt.someserver.com and http://www,someserver.com ?

Thanks already,
Regards. Johan.


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



Re: Redirecting the output to a log file

2003-09-17 Thread Johan Louwers
do not use System.out simply make a write to a file routine and write to a
file :-)


Johan.

- Original Message -
From: "Sarika N Inamdar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 12:17 PM
Subject: Redirecting the output to a log file


> Hi All,
> When my servlets are sending some stack trace or System.out messages ,
> all such output is dumped in the catalina.out log.
> We want the System.out messages to go into our application's log file.
> I am using standalone catalina on Solaris and tomcat 4.1.24.
> Please suggest on how to proceed to achieve the same.
> Thanks in Advance,
> Sarika
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



jk2_init() Can't find child

2003-09-16 Thread Johan Louwers
Build JK2 now on solaris 9. Placed mod_jk2.so in the Apache module dir.
Also added:

LoadModule jk2_module modules/mod_jk2.so

at the end of my httpd.conf file. Stop and start apache and try to open
http://10.99.1.115/examples  Nothing!! http://10.99.1.115 is giving me the
basic apache site http://10.99.1.115:8080 is giving me the basic tomact
site.

So the connector is not working correctly  Opend error_log and found
the following:

[error] jk2_init() Can't find child 1157 in scoreboard
[error] shm.init(): No file
[error] mod_jk child init 1 -2


I found the folowing hint on the internet related to this problem. I do not
know how to work with this.. Reading true the posts this is the
solution. What do they mean by this?
> You don't have a shared memory file configured in your properties files,
> or if you do, it isn't accessible or writable.


Any clue how to make it work anybody?


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



jk2_init() Can't find Child xxx in scoreboard

2003-09-16 Thread Johan Louwers
Build JK2 now on soalris 9. Placed mod_jk2.so in the Apache module dir.
Also added:

LoadModule jk2_module modules/mod_jk2.so

at the end of my httpd.conf file. Stop and start apache and try to open
http://10.99.1.115/examples  Nothing!! http://10.99.1.115 is giving me the
basic apache site http://10.99.1.115:8080 is giving me the basic tomact
site.

So the connector is not working correctly  Opend error_log and found
the following:

[error] jk2_init() Can't find child 1157 in scoreboard
[error] shm.init(): No file
[error] mod_jk child init 1 -2

Any clue how to make it work anybody?


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



error during make JK2

2003-09-16 Thread Johan Louwers
I am trying to build a JK2 connector on a solaris 9 box.

I do:
./configure --with-apxs2=/usr/local/apache/bin/apxs \
--with-tomcat41=/usr/local/jakarta-tomcat-4.1.27 \
--with-java-home=/usr/local/j2sdk1.4.1_05 \
--with-jni \
--with-pcre

All is fine, after that i do make and then the problem starts I get the
following:

#make
list=' server/apache2'; \
for i in $list; do \
echo "Making $target in $i"; \
if test "$i !="."; then \
   (cd $i && make) || exit 1; \
fi; \
done;
Making  in server/apache2
make: Fatal error in eader: Makefile, lin19: Unexpected end of line seen
Current working directory
/export/home/suntac/jakarta-tomcat-connectros-jk2-2.0.2-src/jk/native2/serve
r/apache2
*** error code 1
Make fatak errir: command failed for target 'jk2-build'
#

Anybody any clue what the problem is?

Regards, Johan.


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



Re: jk_ajp12_worker.lo unknown file type.

2003-09-11 Thread Johan Louwers
I use GCC and have had never problems with it... I also have libtools
installed like in the howto of John Turner www.johnturner.com

Still no good make ouput :-(

- Original Message -
From: "Welch, Ronald P" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, September 11, 2003 2:43 PM
Subject: RE: jk_ajp12_worker.lo unknown file type.


> Johan,
>
> What compiler / linker are you using? I built jk2 rather than
> jk on Solaris 8 rather than 9, but in doing so I found that
> it was much happier building with the GNU compiler and linker
> than the ones that come with Solaris. I hope this helps.
>
> Ron
>
> --=-=-=-=-=-=-=-=-oOo-=-=-=-=-=-=-=-=--
> mailto:[EMAIL PROTECTED]Phone:(607)770-3701
> BAE SYSTEMS Controls600 Main St Johnson City, NY 13790-1888
> --=-=-=-=-=-=-=-=-=======-=-=-=-=-=-=-=-=--
>
>
> -Original Message-
> From: Johan Louwers [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 11, 2003 8:29 AM
> To: Tomcat Users List
> Subject: jk_ajp12_worker.lo unknown file type.
>
>
> Dear list,
> I am trying to build a jakarta-connector mod_jk.so on a Solaris 9 machine
> running Apache 2.0.47 and Tomcat 4.1.27.. Apache is running fine on
port
> 80 tomcat fine on port 8080 and now it is time to build the connector to
run
> them both on port 80.
>
> So I do
> ./buildconf.sh
> ./configure --with-apxs=/usr/local/apache/bin/apxs
>
> and then make .. here is the problem.. it is giving me the following
> error at the end..
>
> ld: fatal: file ../common/jk_ajp12_worker.lo: unknown file type
> ld: fatal: File processing errors. No output written to .libs/mod_jk.so
> *** Error code 1
> Make: Fatal error: Command failed for target 'mod_jk.la'
> Current working directory
>
/export/home/suntac/jakarta-tomcat-connectors-jk-1.2.0-src/jk/native/apache-
> 2.0
> *** Error code 1
> Make Fatal error: Command failed for target 'all-recursive'
>
> Any clue anybody? I don't have any clue what is
> wrong!?!?!?!?!?!?!?!?!?!?!?!
>
>
> Regards, Johan.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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



jk_ajp12_worker.lo unknown file type.

2003-09-11 Thread Johan Louwers
Dear list,
I am trying to build a jakarta-connector mod_jk.so on a Solaris 9 machine running 
Apache 2.0.47 and Tomcat 4.1.27.. Apache is running fine on port 80 tomcat fine on 
port 8080 and now it is time to build the connector to run them both on port 80.

So I do 
./buildconf.sh
./configure --with-apxs=/usr/local/apache/bin/apxs

and then make .. here is the problem.. it is giving me the following error at the 
end..

ld: fatal: file ../common/jk_ajp12_worker.lo: unknown file type
ld: fatal: File processing errors. No output written to .libs/mod_jk.so
*** Error code 1
Make: Fatal error: Command failed for target 'mod_jk.la'
Current working directory 
/export/home/suntac/jakarta-tomcat-connectors-jk-1.2.0-src/jk/native/apache-2.0
*** Error code 1
Make Fatal error: Command failed for target 'all-recursive'

Any clue anybody? I don't have any clue what is wrong!?!?!?!?!?!?!?!?!?!?!?!


Regards, Johan.