Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-05 Thread tomcat guy
Is that the way you have yours configured?
(i.e. virtualhost abc.com )
It's not working here, everything goes to the localHost...

I don't know what is going on here.  I had things working ok earlier then I
made the switch to jk2, to see if Tomcat would run the way it was suppose to
(if I had the proper config), and had ALL kinds of problems!  Not enough
documentation on it...
I went back to my original configuration and ppphhhttt...  I used the exact
same copies of mod_jk, workers, server.xml, etc

It is just a warning should I ignore the darn thing?


- Original Message -
From: Oscar Carrillo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, February 04, 2003 3:27 AM
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


 Like I said I'm not an expert on apache configuration, but I have it as my
 domainname. One of the other messages someone followed up with said it has
 to be the actual domainname that is going to host the virtual hosts.

 I'm pretty sure you need to NOT have the asterisk in the VirtualHost *
 line you have. Look below to see the lines I would change.

 I can't get to it right now, but I'll post my related configuration
 tonight.

 Oscar


 On Tue, 4 Feb 2003, chris schild wrote:

  Oscar, per the docs that I used NameVirutalHost is suppose to use the *.
 
  - Original Message -
  From: Oscar Carrillo [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, February 03, 2003 10:26 AM
  Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
  www.abc.com:80
 
 
   I'm not very familiar with Apache configuration, but shouldn't your
*
   be replaced with the ServerName. I'm not sure what NameVirtualHost
   should be set at. I have mine set to the servername of the only
servername
   I have.
  
   Oscar
  
  
   On Mon, 3 Feb 2003, chris schild wrote:
  
Sorry, here is the error from apache.exe -t
   
VirtualHost www.zcompany.com:80 overlaps with VirtualHost
  www.abc.com:80,
the first has precedence, perhaps you need a NameVirtualHost
directive
   
- Original Message -
   
From: Oscar Carrillo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 8:59 AM
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80
   
   
 What error?

 Oscar

 On Mon, 3 Feb 2003, tomcat guy wrote:

  Has anyone come across  this warning?  Any guesses as to what is
  wrong?
 
  Here is the httpd.conf definition:
 
  NameVirtualHost *
   NameVirtualHost cde.com #assuming cde.com is your dns name
 
  VirtualHost *
   VirtualHost cde.com #Edit this
  ServerName cde.com
  ServerAlias www.cde.com
  DocumentRoot /apache/Tomcat4.1/CDE
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/cde.com-error_log
  CustomLog logs/cde.com-access_log common
  /VirtualHost
 
  VirtualHost *
   VirtualHost qv.com #edit this
  ServerName qv.com
  ServerAlias www.qv.com
  DocumentRoot /apache/Tomcat4.1/QV
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/qv.com-error_log
  CustomLog logs/qv.com-access_log common
  /VirtualHost
 
  VirtualHost *
   VirtualHost abc.com #edit this
  ServerName abc.com
  ServerAlias www.abc.com
  DocumentRoot /apache/Tomcat4.1/AMW
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/abc.com-error_log
  CustomLog logs/abc.com-access_log common
  /VirtualHost
 
 
  # !-- !!! added workers file for apache tomcat integration  --
  JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
  JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
  Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
 
 
  everything appears to be working normally but why the error???


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


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

Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-05 Thread Oscar Carrillo
Yes, that's the way I have mine. I just noticed now that you say that
everything is working OK in your original message. So I imagine that it is
just a redundancy. I would try and pulling out the relevant info in
mod_jk.conf and putting it in http.conf manually. I mention it below.

Where are you seeing this warning? Is it in tomcat logs or apache logs?

I only have 2 virtual hosts, one for SSL and one for non-SSL. I had to
have virtual hosts, so that I could completely separate out SSL and
non-SSL traffic, so that non-ssl traffic would be re-directed to a
different webapp than ssl traffic. I'm not doing exactly what you're doing 
so my setup may not be completely applicable.

I commented out the
#Include /path/to/mod_jk.conf
because that would make the JkMounts global. You might want to try and do 
the same. 

Here are my recent notes on my configuration that I did after the fact, so 
I haven't fully tested this to make sure this is exactly what I did.
But maybe this helps you. You may notice that I have struts too, so I have 
a map to *.do files too.

You might also want to check how things work from the same computer and 
from another computer over the network. And see if the behavior is the 
same.

Good luck,
Oscar

--CONFIGURE APACHE/NON-SSL---
#Look for similar lines.
#Make sure you have lines that say this in conf/http.conf:
Listen myhost.mydomain:80

#Same with this line:
ServerName myhost.mydomain:80

#Same with this line:
NameVirtualHost myhost.mydomain

#Make sure you have VirtualHost like this
--
VirtualHost myhost.mydomain:80
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /usr/local/http_nonsecure
ServerName myhost.mydomain:80
ErrorLog logs/webapp_public-error_log
CustomLog logs/webapp_public-access_log common

# Static files
Alias /mywebapp 
/usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp_nonsecure

Directory 
/usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp_nonsecure
Options Indexes FollowSymLinks
DirectoryIndex index.jsp
/Directory

# Deny direct access to WEB-INF and META-INF
#
Location /mywebapp_nonsecure/WEB-INF/*

AllowOverride None
deny from all
/Location

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

#Add these lines too
#It's likely you don't want people to access your
#secure site via plain old http. So I tell it to go
#somewhere else where I may have useful but unsecured
#site
JkMount /mywebapp_nonsecure/*.do  ajp13
JkMount /mywebapp_nonsecure/*.jsp  ajp13
 /VirtualHost

#Make sure you add these lines too
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /usr/local/tomcat/logs/mod_jk.log

--CONFIGURE APACHE/SSL---
#Now make changes in ssl.conf
#Look for similar lines and make sure it looks like this:

VirtualHost _default_:443

#  General setup for the virtual host
DocumentRoot /usr/local/http_secure
#ServerName new.host.name:443
ServerName myhost.mydomain:443
ServerAdmin [EMAIL PROTECTED]
ErrorLog logs/error_log
TransferLog logs/access_log

Redirect / https://myhost.mydomain/mywebapp

# Static files
Alias /mywebapp /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp

Directory /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp
Options Indexes FollowSymLinks
DirectoryIndex index.jsp
/Directory


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

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

JkMount /mywebapp/*.do  ajp13
JkMount /mywebapp/*.jsp  ajp13
--



On Wed, 5 Feb 2003, tomcat guy wrote:

 Is that the way you have yours configured?
 (i.e. virtualhost abc.com )
 It's not working here, everything goes to the localHost...
 
 I don't know what is going on here.  I had things working ok earlier then I
 made the switch to jk2, to see if Tomcat would run the way it was suppose to
 (if I had the proper config), and had ALL kinds of problems!  Not enough
 documentation on it...
 I went back to my original configuration and ppphhhttt...  I used the exact
 same copies of mod_jk, workers, server.xml, etc
 
 It is just a warning should I ignore the darn thing?
 
 
 - Original Message -
 From: Oscar Carrillo [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, February 04, 2003 3:27 AM
 Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80
 
 
  Like I said I'm not an expert on apache configuration, but I have it as my
  domainname. One of the other messages someone followed up with said it has
  to be the actual domainname that is going to host the virtual hosts.
 
  I'm pretty sure you need to NOT have the asterisk in the VirtualHost *
  line you have. Look below to see the lines I would change

Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-05 Thread tomcat guy
Thanks Oscar, I'll see what happens.  Your example appears to be a good
example of the configuration that I am looking forssl and all...

As for the error msg, it came from doing a syntax check (i.e.
apache.exe -t).  It just suddenly appeared the other day.  Every thing
appears to perform normally but I'll have to keep it in mind if there is a
future problem with my vhosts the first has precedence part of the msg
is what bothers me...
Thanks,
Chris

- Original Message -
From: Oscar Carrillo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, February 05, 2003 2:01 AM
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


 Yes, that's the way I have mine. I just noticed now that you say that
 everything is working OK in your original message. So I imagine that it is
 just a redundancy. I would try and pulling out the relevant info in
 mod_jk.conf and putting it in http.conf manually. I mention it below.

 Where are you seeing this warning? Is it in tomcat logs or apache logs?

 I only have 2 virtual hosts, one for SSL and one for non-SSL. I had to
 have virtual hosts, so that I could completely separate out SSL and
 non-SSL traffic, so that non-ssl traffic would be re-directed to a
 different webapp than ssl traffic. I'm not doing exactly what you're doing
 so my setup may not be completely applicable.

 I commented out the
 #Include /path/to/mod_jk.conf
 because that would make the JkMounts global. You might want to try and do
 the same.

 Here are my recent notes on my configuration that I did after the fact, so
 I haven't fully tested this to make sure this is exactly what I did.
 But maybe this helps you. You may notice that I have struts too, so I have
 a map to *.do files too.

 You might also want to check how things work from the same computer and
 from another computer over the network. And see if the behavior is the
 same.

 Good luck,
 Oscar

 --CONFIGURE APACHE/NON-SSL---
 #Look for similar lines.
 #Make sure you have lines that say this in conf/http.conf:
 Listen myhost.mydomain:80

 #Same with this line:
 ServerName myhost.mydomain:80

 #Same with this line:
 NameVirtualHost myhost.mydomain

 #Make sure you have VirtualHost like this
 --
 VirtualHost myhost.mydomain:80
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/local/http_nonsecure
 ServerName myhost.mydomain:80
 ErrorLog logs/webapp_public-error_log
 CustomLog logs/webapp_public-access_log common

 # Static files
 Alias /mywebapp
 /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp_nonsecure

 Directory
 /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp_nonsecure
 Options Indexes FollowSymLinks
 DirectoryIndex index.jsp
 /Directory

 # Deny direct access to WEB-INF and META-INF
 #
 Location /mywebapp_nonsecure/WEB-INF/*

 AllowOverride None
 deny from all
 /Location

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

 #Add these lines too
 #It's likely you don't want people to access your
 #secure site via plain old http. So I tell it to go
 #somewhere else where I may have useful but unsecured
 #site
 JkMount /mywebapp_nonsecure/*.do  ajp13
 JkMount /mywebapp_nonsecure/*.jsp  ajp13
  /VirtualHost

 #Make sure you add these lines too
 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
 JkLogFile /usr/local/tomcat/logs/mod_jk.log

 --CONFIGURE APACHE/SSL---
 #Now make changes in ssl.conf
 #Look for similar lines and make sure it looks like this:

 VirtualHost _default_:443

 #  General setup for the virtual host
 DocumentRoot /usr/local/http_secure
 #ServerName new.host.name:443
 ServerName myhost.mydomain:443
 ServerAdmin [EMAIL PROTECTED]
 ErrorLog logs/error_log
 TransferLog logs/access_log

 Redirect / https://myhost.mydomain/mywebapp

 # Static files
 Alias /mywebapp /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp

 Directory /usr/local/jakarta-tomcat-4.1.18/webapps/mywebapp
 Options Indexes FollowSymLinks
 DirectoryIndex index.jsp
 /Directory


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

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

 JkMount /mywebapp/*.do  ajp13
 JkMount /mywebapp/*.jsp  ajp13
 --



 On Wed, 5 Feb 2003, tomcat guy wrote:

  Is that the way you have yours configured?
  (i.e. virtualhost abc.com )
  It's not working here, everything goes to the localHost...
 
  I don't know what is going on here.  I had things working ok earlier
then I
  made the switch to jk2, to see if Tomcat would run the way it was
suppose to
  (if I had the proper config), and had ALL kinds of problems!  Not enough
  documentation on it...
  I

RE: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-04 Thread Ralph Einfeldt
As your example doesn't contain www.zcompany.com I would guess 
that you have an config error in the part of the http.conf that 
you didn't post. (Like a ServerName www.zcompany.com outside 
the virtual host definitions)

 -Original Message-
 From: tomcat guy [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 1:57 AM
 To: Tomcat Users List
 Subject: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80
 
 Here is the httpd.conf definition:
 
 NameVirtualHost *
 
 VirtualHost *
 ServerName cde.com
 /VirtualHost
 
 VirtualHost *
 ServerName qv.com
 /VirtualHost
 
 VirtualHost *
 ServerName abc.com
 /VirtualHost
 

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




Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-04 Thread chris schild
Galbayar, I didn't get an explanation but let me try and decipher...
You are saying for EACH VirtualHost to have a Directory  directive?
Defined where?  Below the DocumentRoot in httpd.conf?  Or below each
VirtualHost?

Would the JkMount(s) also go below each VirtualHost?

- Original Message -
From: Galbayar Dorjgotov [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 8:58 PM
Subject: RE: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


 VirtualHost *
 ServerName cde.com
 ServerAlias www.cde.com
 DocumentRoot /apache/Tomcat4.1/CDE
 ErrorLog logs/cde.com-error_log
 CustomLog logs/cde.com-access_log common
 /VirtualHost

 Directory /apache/Tomcat4.1/CDE
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
 DirectoryIndex main.jsp
 /Directory

 JkMount www.cde.com/* ajp12
 JkMount www.cde.com/*.jsp ajp12


 -Original Message-
 From: tomcat guy [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 04, 2003 8:57 AM
 To: Tomcat Users List
 Subject: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80


 Has anyone come across  this warning?  Any guesses as to what is wrong?

 Here is the httpd.conf definition:

 NameVirtualHost *

 VirtualHost *
 ServerName cde.com
 ServerAlias www.cde.com
 DocumentRoot /apache/Tomcat4.1/CDE
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/cde.com-error_log
 CustomLog logs/cde.com-access_log common
 /VirtualHost

 VirtualHost *
 ServerName qv.com
 ServerAlias www.qv.com
 DocumentRoot /apache/Tomcat4.1/QV
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/qv.com-error_log
 CustomLog logs/qv.com-access_log common
 /VirtualHost

 VirtualHost *
 ServerName abc.com
 ServerAlias www.abc.com
 DocumentRoot /apache/Tomcat4.1/AMW
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/abc.com-error_log
 CustomLog logs/abc.com-access_log common
 /VirtualHost


 # !-- !!! added workers file for apache tomcat integration  --
 JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
 JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
 Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf


 everything appears to be working normally but why the error???

 -
 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: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-04 Thread chris schild
Oscar, per the docs that I used NameVirutalHost is suppose to use the *.

- Original Message -
From: Oscar Carrillo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 10:26 AM
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


 I'm not very familiar with Apache configuration, but shouldn't your *
 be replaced with the ServerName. I'm not sure what NameVirtualHost
 should be set at. I have mine set to the servername of the only servername
 I have.

 Oscar


 On Mon, 3 Feb 2003, chris schild wrote:

  Sorry, here is the error from apache.exe -t
 
  VirtualHost www.zcompany.com:80 overlaps with VirtualHost
www.abc.com:80,
  the first has precedence, perhaps you need a NameVirtualHost directive
 
  - Original Message -
 
  From: Oscar Carrillo [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, February 03, 2003 8:59 AM
  Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
  www.abc.com:80
 
 
   What error?
  
   Oscar
  
   On Mon, 3 Feb 2003, tomcat guy wrote:
  
Has anyone come across  this warning?  Any guesses as to what is
wrong?
   
Here is the httpd.conf definition:
   
NameVirtualHost *
   
VirtualHost *
ServerName cde.com
ServerAlias www.cde.com
DocumentRoot /apache/Tomcat4.1/CDE
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
ErrorLog logs/cde.com-error_log
CustomLog logs/cde.com-access_log common
/VirtualHost
   
VirtualHost *
ServerName qv.com
ServerAlias www.qv.com
DocumentRoot /apache/Tomcat4.1/QV
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
ErrorLog logs/qv.com-error_log
CustomLog logs/qv.com-access_log common
/VirtualHost
   
VirtualHost *
ServerName abc.com
ServerAlias www.abc.com
DocumentRoot /apache/Tomcat4.1/AMW
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
ErrorLog logs/abc.com-error_log
CustomLog logs/abc.com-access_log common
/VirtualHost
   
   
# !-- !!! added workers file for apache tomcat integration  --
JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
   
   
everything appears to be working normally but why the error???
  
  
   -
   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]
 


 -
 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: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-04 Thread Oscar Carrillo
Like I said I'm not an expert on apache configuration, but I have it as my
domainname. One of the other messages someone followed up with said it has
to be the actual domainname that is going to host the virtual hosts.

I'm pretty sure you need to NOT have the asterisk in the VirtualHost * 
line you have. Look below to see the lines I would change.

I can't get to it right now, but I'll post my related configuration
tonight.

Oscar


On Tue, 4 Feb 2003, chris schild wrote:

 Oscar, per the docs that I used NameVirutalHost is suppose to use the *.
 
 - Original Message -
 From: Oscar Carrillo [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, February 03, 2003 10:26 AM
 Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80
 
 
  I'm not very familiar with Apache configuration, but shouldn't your *
  be replaced with the ServerName. I'm not sure what NameVirtualHost
  should be set at. I have mine set to the servername of the only servername
  I have.
 
  Oscar
 
 
  On Mon, 3 Feb 2003, chris schild wrote:
 
   Sorry, here is the error from apache.exe -t
  
   VirtualHost www.zcompany.com:80 overlaps with VirtualHost
 www.abc.com:80,
   the first has precedence, perhaps you need a NameVirtualHost directive
  
   - Original Message -
  
   From: Oscar Carrillo [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Monday, February 03, 2003 8:59 AM
   Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
   www.abc.com:80
  
  
What error?
   
Oscar
   
On Mon, 3 Feb 2003, tomcat guy wrote:
   
 Has anyone come across  this warning?  Any guesses as to what is
 wrong?

 Here is the httpd.conf definition:

 NameVirtualHost *
  NameVirtualHost cde.com #assuming cde.com is your dns name

 VirtualHost *
  VirtualHost cde.com #Edit this
 ServerName cde.com
 ServerAlias www.cde.com
 DocumentRoot /apache/Tomcat4.1/CDE
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/cde.com-error_log
 CustomLog logs/cde.com-access_log common
 /VirtualHost

 VirtualHost *
  VirtualHost qv.com #edit this
 ServerName qv.com
 ServerAlias www.qv.com
 DocumentRoot /apache/Tomcat4.1/QV
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/qv.com-error_log
 CustomLog logs/qv.com-access_log common
 /VirtualHost

 VirtualHost *
  VirtualHost abc.com #edit this
 ServerName abc.com
 ServerAlias www.abc.com
 DocumentRoot /apache/Tomcat4.1/AMW
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 ErrorLog logs/abc.com-error_log
 CustomLog logs/abc.com-access_log common
 /VirtualHost


 # !-- !!! added workers file for apache tomcat integration  --
 JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
 JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
 Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf


 everything appears to be working normally but why the error???
   
   
-
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]
  
 
 
  -
  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]
 


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




Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-03 Thread Oscar Carrillo
What error?

Oscar

On Mon, 3 Feb 2003, tomcat guy wrote:

 Has anyone come across  this warning?  Any guesses as to what is wrong?
 
 Here is the httpd.conf definition:
 
 NameVirtualHost *
 
 VirtualHost *
 ServerName cde.com
 ServerAlias www.cde.com
 DocumentRoot /apache/Tomcat4.1/CDE
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13 
 ErrorLog logs/cde.com-error_log
 CustomLog logs/cde.com-access_log common
 /VirtualHost
 
 VirtualHost *
 ServerName qv.com
 ServerAlias www.qv.com
 DocumentRoot /apache/Tomcat4.1/QV
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13 
 ErrorLog logs/qv.com-error_log
 CustomLog logs/qv.com-access_log common
 /VirtualHost
 
 VirtualHost *
 ServerName abc.com
 ServerAlias www.abc.com
 DocumentRoot /apache/Tomcat4.1/AMW
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13 
 ErrorLog logs/abc.com-error_log
 CustomLog logs/abc.com-access_log common
 /VirtualHost
 
 
 # !-- !!! added workers file for apache tomcat integration  --
 JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
 JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
 Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
 
 
 everything appears to be working normally but why the error???


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




RE: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-03 Thread Galbayar Dorjgotov
VirtualHost *
ServerName cde.com
ServerAlias www.cde.com
DocumentRoot /apache/Tomcat4.1/CDE
ErrorLog logs/cde.com-error_log
CustomLog logs/cde.com-access_log common
/VirtualHost

Directory /apache/Tomcat4.1/CDE
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex main.jsp
/Directory

JkMount www.cde.com/* ajp12
JkMount www.cde.com/*.jsp ajp12


-Original Message-
From: tomcat guy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 8:57 AM
To: Tomcat Users List
Subject: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


Has anyone come across  this warning?  Any guesses as to what is wrong?

Here is the httpd.conf definition:

NameVirtualHost *

VirtualHost *
ServerName cde.com
ServerAlias www.cde.com
DocumentRoot /apache/Tomcat4.1/CDE
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13 
ErrorLog logs/cde.com-error_log
CustomLog logs/cde.com-access_log common
/VirtualHost

VirtualHost *
ServerName qv.com
ServerAlias www.qv.com
DocumentRoot /apache/Tomcat4.1/QV
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13 
ErrorLog logs/qv.com-error_log
CustomLog logs/qv.com-access_log common
/VirtualHost

VirtualHost *
ServerName abc.com
ServerAlias www.abc.com
DocumentRoot /apache/Tomcat4.1/AMW
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13 
ErrorLog logs/abc.com-error_log
CustomLog logs/abc.com-access_log common
/VirtualHost


# !-- !!! added workers file for apache tomcat integration  --
JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf


everything appears to be working normally but why the error???

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




Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-03 Thread chris schild
Sorry, here is the error from apache.exe -t

VirtualHost www.zcompany.com:80 overlaps with VirtualHost www.abc.com:80,
the first has precedence, perhaps you need a NameVirtualHost directive

- Original Message -

From: Oscar Carrillo [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 8:59 AM
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80


 What error?

 Oscar

 On Mon, 3 Feb 2003, tomcat guy wrote:

  Has anyone come across  this warning?  Any guesses as to what is wrong?
 
  Here is the httpd.conf definition:
 
  NameVirtualHost *
 
  VirtualHost *
  ServerName cde.com
  ServerAlias www.cde.com
  DocumentRoot /apache/Tomcat4.1/CDE
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/cde.com-error_log
  CustomLog logs/cde.com-access_log common
  /VirtualHost
 
  VirtualHost *
  ServerName qv.com
  ServerAlias www.qv.com
  DocumentRoot /apache/Tomcat4.1/QV
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/qv.com-error_log
  CustomLog logs/qv.com-access_log common
  /VirtualHost
 
  VirtualHost *
  ServerName abc.com
  ServerAlias www.abc.com
  DocumentRoot /apache/Tomcat4.1/AMW
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  ErrorLog logs/abc.com-error_log
  CustomLog logs/abc.com-access_log common
  /VirtualHost
 
 
  # !-- !!! added workers file for apache tomcat integration  --
  JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
  JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
  Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
 
 
  everything appears to be working normally but why the error???


 -
 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: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-03 Thread Oscar Carrillo
I'm not very familiar with Apache configuration, but shouldn't your *
be replaced with the ServerName. I'm not sure what NameVirtualHost 
should be set at. I have mine set to the servername of the only servername 
I have.

Oscar


On Mon, 3 Feb 2003, chris schild wrote:

 Sorry, here is the error from apache.exe -t
 
 VirtualHost www.zcompany.com:80 overlaps with VirtualHost www.abc.com:80,
 the first has precedence, perhaps you need a NameVirtualHost directive
 
 - Original Message -
 
 From: Oscar Carrillo [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, February 03, 2003 8:59 AM
 Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80
 
 
  What error?
 
  Oscar
 
  On Mon, 3 Feb 2003, tomcat guy wrote:
 
   Has anyone come across  this warning?  Any guesses as to what is wrong?
  
   Here is the httpd.conf definition:
  
   NameVirtualHost *
  
   VirtualHost *
   ServerName cde.com
   ServerAlias www.cde.com
   DocumentRoot /apache/Tomcat4.1/CDE
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/cde.com-error_log
   CustomLog logs/cde.com-access_log common
   /VirtualHost
  
   VirtualHost *
   ServerName qv.com
   ServerAlias www.qv.com
   DocumentRoot /apache/Tomcat4.1/QV
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/qv.com-error_log
   CustomLog logs/qv.com-access_log common
   /VirtualHost
  
   VirtualHost *
   ServerName abc.com
   ServerAlias www.abc.com
   DocumentRoot /apache/Tomcat4.1/AMW
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/abc.com-error_log
   CustomLog logs/abc.com-access_log common
   /VirtualHost
  
  
   # !-- !!! added workers file for apache tomcat integration  --
   JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
   JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
   Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
  
  
   everything appears to be working normally but why the error???
 
 
  -
  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]
 


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




RE: VirtualHost www.zcompany.com:80 overlaps VirtualHost www.abc.com:80

2003-02-03 Thread Tref Gare
NameVirtualHost lets you use a single ip address as multiple hosts

See these apache docs for details

http://httpd.apache.org/docs/vhosts/

cheers

Tref
--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba.
--

-Original Message-
From: Oscar Carrillo [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 4 February 2003 3:27 AM
To: Tomcat Users List
Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
www.abc.com:80

I'm not very familiar with Apache configuration, but shouldn't your *
be replaced with the ServerName. I'm not sure what NameVirtualHost 
should be set at. I have mine set to the servername of the only
servername 
I have.

Oscar


On Mon, 3 Feb 2003, chris schild wrote:

 Sorry, here is the error from apache.exe -t
 
 VirtualHost www.zcompany.com:80 overlaps with VirtualHost
www.abc.com:80,
 the first has precedence, perhaps you need a NameVirtualHost directive
 
 - Original Message -
 
 From: Oscar Carrillo [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, February 03, 2003 8:59 AM
 Subject: Re: VirtualHost www.zcompany.com:80 overlaps VirtualHost
 www.abc.com:80
 
 
  What error?
 
  Oscar
 
  On Mon, 3 Feb 2003, tomcat guy wrote:
 
   Has anyone come across  this warning?  Any guesses as to what is
wrong?
  
   Here is the httpd.conf definition:
  
   NameVirtualHost *
  
   VirtualHost *
   ServerName cde.com
   ServerAlias www.cde.com
   DocumentRoot /apache/Tomcat4.1/CDE
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/cde.com-error_log
   CustomLog logs/cde.com-access_log common
   /VirtualHost
  
   VirtualHost *
   ServerName qv.com
   ServerAlias www.qv.com
   DocumentRoot /apache/Tomcat4.1/QV
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/qv.com-error_log
   CustomLog logs/qv.com-access_log common
   /VirtualHost
  
   VirtualHost *
   ServerName abc.com
   ServerAlias www.abc.com
   DocumentRoot /apache/Tomcat4.1/AMW
   JkMount /*.jsp ajp13
   JkMount /servlet/* ajp13
   ErrorLog logs/abc.com-error_log
   CustomLog logs/abc.com-access_log common
   /VirtualHost
  
  
   # !-- !!! added workers file for apache tomcat integration  --
   JkWorkersFile d:\Apache\Tomcat4.1\conf\jk\workers.properties
   JkLogFile d:\Apache\Tomcat4.1\logs\mod_jk.log
   Include d:/Apache/Tomcat4.1/conf/auto/mod_jk.conf
  
  
   everything appears to be working normally but why the error???
 
 
 
-
  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]
 


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