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: vertial host apache/tomcat

2003-09-17 Thread Luke Vanderfluit
Hi Johan,

I don't know what your httpd.conf looks like, 
When using VirtualHost the first block must be the "main" domain,
then your virtual domains.

post your full httpd.conf 

kind regards,
Luke


On Wed, 2003-09-17 at 20:54, Johan Louwers wrote:
> 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]
-- 

"when my computer smiles, I'm happy"
===.~ ~,
Luke Vanderfluit   |'/']
Mobile: 0421 276 282\~/`


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



Re: vertial host apache/tomcat

2003-09-18 Thread Johan Louwers
.com
#ErrorLog logs/dummy-host.example.com-error_log
#CustomLog logs/dummy-host.example.com-access_log common
#



# 17-09-2003 Johan Louwers --> [EMAIL PROTECTED]
# virtualhost www.verder.fr
# france website verder www.verder.fr

 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /export/home/webroot/www.verder.fr
 ServerName www.verder.fr
 ErrorLog /export/home/weblog/error-log_www.verder.fr
 CustomLog /export/home/weblog/common-log_www.verder.fr common




# 17-09-2003 Johan Louwers --> [EMAIL PROTECTED]
# virtualhost mnt.verder.fr
# mnt part of the france verder website.

 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /export/home/webroot/mnt.verder.fr
 ServerName mnt.verder.fr
 ErrorLog /export/home/weblog/error-log_mnt.verder.fr
 CustomLog /export/home/weblog/common-log_mnt.verder.fr common




# 16-09-2003. Johan Louwers [EMAIL PROTECTED]
# LoadModule mod_jk2.so inserted and activated to make apache http deamon
# with jakarta tomcat both on port 80.
LoadModule jk2_module modules/mod_jk2.so


# --END HTTPD.CONF--
- Original Message -
From: "Luke Vanderfluit" <[EMAIL PROTECTED]>
To: "Johan Louwers" <[EMAIL PROTECTED]>
Sent: Wednesday, September 17, 2003 10:31 PM
Subject: Re: vertial host apache/tomcat


> Hi Johan,
>
> I don't know what your httpd.conf looks like,
> When using VirtualHost the first block must be the "main" domain,
> then your virtual domains.
>
> post your full httpd.conf
>
> kind regards,
> Luke
>
>
> On Wed, 2003-09-17 at 20:54, Johan Louwers wrote:
> > 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]
> --
> 
> "when my computer smiles, I'm happy"
> ===.~ ~,
> Luke Vanderfluit   |'/']
> Mobile: 0421 276 282\~/`
>


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



Re: vertial host apache/tomcat

2003-09-18 Thread achana
n 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.
>

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 Luke Vanderfluit
Hi Johan,

Are the domains correctly configured in a dns somewhere?
That is: when your browser requests a fqdn (fully qualified domain
name), the dns needs to translate it to an IP address. 
You should have a DNS entry for these domains 
- on a dns server somewhere on the internet
- on a dns server you have set up yourself

Alternatively for testing:
On the machine running the browser, you could put entries in the 'hosts'
file. 
So when your browser requests a fqdn, it gets translated to an IP
address.

Your httpd.conf, just the last bit concerning virtual hosts could look
like this.
Simplified for testing and tested to work.

NameVirtualHost 192.168.25.5


DocumentRoot /home/httpd/htdocs/
ServerName knife.chipcity.com.au



DocumentRoot /home/httpd/htdocs/virtual1/
ServerName fork.chipcity.com.au


Hope this helps,
kind regards,
Luke


On Thu, 2003-09-18 at 17:05, Johan Louwers wrote:
> :-) 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
> > > #