You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by MYSP <my...@phenixcable.net> on 2002/04/28 00:33:21 UTC

NameVirtualHost

When I change NameVirtualHost *  to NameVirtualHost (my IP#), the following
errors come up.

apachectl stop....(snip)

[root@scotty root]# apachectl start
[Sat Apr 27 18:28:14 2002] [warn] _default_ VirtualHost overlap on port 80,
the first has precedence
[Sat Apr 27 18:28:14 2002] [warn] _default_ VirtualHost overlap on port 80,
the first has precedence
[Sat Apr 27 18:28:14 2002] [warn] NameVirtualHost 216.253.137.37:80 has no
VirtualHosts
/usr/sbin/apachectl start: httpd started

Any idea what's up?

Thanks,
Bill


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: NameVirtualHost

Posted by "Technicien Kalyweb.com" <te...@kalyweb.com>.
you must set the server name for each virtual server !!

----- Original Message -----
From: "MYSP" <my...@phenixcable.net>
To: <us...@httpd.apache.org>
Sent: Sunday, April 28, 2002 1:08 AM
Subject: RE: NameVirtualHost


> <VirtualHost *>
>     ServerAdmin bw@mysp.net
>     DocumentRoot /var/www/html/bicity.net
>     ServerName bicity.net
> #   ErrorLog logs/bicity.net-error_log
> #   CustomLog logs/bicity.net-access_log common
> </VirtualHost>
>
> <VirtualHost *>
>     ServerAdmin bw@mysp.net
>     DocumentRoot /var/www/html/bicitymall.com
>     ServerName bicity.net
> #    ErrorLog logs/dummy-host.example.com-error_log
> #    CustomLog logs/dummy-host.example.com-access_log common
> </VirtualHost>
>
> <VirtualHost *>
>     ServerAdmin bw@mysp.net
>     DocumentRoot /var/www/html/razz.bicity.net
>     ServerName bicity.net
> #    ErrorLog logs/dummy-host.example.com-error_log
> #    CustomLog logs/dummy-host.example.com-access_log common
> </VirtualHost>
>
> I have not set up the error files yet. Good time to do it.
>
> Thanks,
> Bill
>
>
> -----Original Message-----
> From: Joshua Slive [mailto:joshua@slive.ca]
> Sent: Saturday, April 27, 2002 6:59 PM
> To: users@httpd.apache.org
> Subject: Re: NameVirtualHost
>
>
> MYSP wrote:
> > I was grasping at straws.
> > Since it did not function as *, I put in the IP. Also, I had not changed
> the
> > address in the virtual sections from * to the IP# either.
> > Going to bicity.net produces the same page as razz.bicity.net while
there
> > should be minor differences.
> > If it makes a difference, both are in djbdns.
>
> Show us the relevant part of your httpd.conf.
>
> Joshua.
>
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: NameVirtualHost

Posted by MYSP <my...@phenixcable.net>.
This error message ties the problem to ssl I think;

[Sat Apr 27 23:20:16 2002] [crit] (98)Address already in use: make_sock:
could not bind to port 443

How?


-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Saturday, April 27, 2002 10:53 PM
To: users@httpd.apache.org
Subject: Re: NameVirtualHost


MYSP wrote:
> Since whatever I put in the virtual doamin package shows up as the 'main'
> page, I must have a problem somehow in the set up prior to virtual
hosting.
>
> Then again, maybe it's that gumbo smell coming from the kitchen.

Please try again posting your best guess at the *correct* virtual host
configuration, and then tell us explictly what happens when you try to
use it.  (ie. What request do you make, and what is the result.)

What you posted before was obviously garbage.

Joshua.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: NameVirtualHost

Posted by MYSP <my...@phenixcable.net>.
Sorry does seem to be the best description.
Be good enough to ignore anything else from me.

Bill

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Saturday, April 27, 2002 11:48 PM
To: users@httpd.apache.org
Subject: Re: NameVirtualHost


MYSP wrote:
> Is that better?
> 

No, it's not better.  We'll need the complete virtual host 
configuration.  Personally, I'm getting bored with fooling around here. 
  Either post the necessary details or forget it.

[Sorry, but I'm passing my irritation threshold.]

Joshua.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: NameVirtualHost

Posted by Joshua Slive <jo...@slive.ca>.
MYSP wrote:
> Is that better?
> 

No, it's not better.  We'll need the complete virtual host 
configuration.  Personally, I'm getting bored with fooling around here. 
  Either post the necessary details or forget it.

[Sorry, but I'm passing my irritation threshold.]

Joshua.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: NameVirtualHost

Posted by MYSP <my...@phenixcable.net>.
Is that better?

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/razz.bicity.net
    ServerName bicity.net
    ErrorLog logs/razz.bicity.net-error_log
    CustomLog logs/razz.bicity.net-access_log common
</VirtualHost>

When a browser gets the same page (index.html) that razz.bicity.net gets.
They are not the same (though similar) index pages.

Bill


-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Saturday, April 27, 2002 10:53 PM
To: users@httpd.apache.org
Subject: Re: NameVirtualHost


MYSP wrote:
> Since whatever I put in the virtual doamin package shows up as the 'main'
> page, I must have a problem somehow in the set up prior to virtual
hosting.
>
> Then again, maybe it's that gumbo smell coming from the kitchen.

Please try again posting your best guess at the *correct* virtual host
configuration, and then tell us explictly what happens when you try to
use it.  (ie. What request do you make, and what is the result.)

What you posted before was obviously garbage.

Joshua.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: NameVirtualHost

Posted by Joshua Slive <jo...@slive.ca>.
MYSP wrote:
> Since whatever I put in the virtual doamin package shows up as the 'main'
> page, I must have a problem somehow in the set up prior to virtual hosting.
> 
> Then again, maybe it's that gumbo smell coming from the kitchen.

Please try again posting your best guess at the *correct* virtual host 
configuration, and then tell us explictly what happens when you try to 
use it.  (ie. What request do you make, and what is the result.)

What you posted before was obviously garbage.

Joshua.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: NameVirtualHost

Posted by MYSP <my...@phenixcable.net>.
Since whatever I put in the virtual doamin package shows up as the 'main'
page, I must have a problem somehow in the set up prior to virtual hosting.

Then again, maybe it's that gumbo smell coming from the kitchen.

Thanks
Bill
-----Original Message-----
From: MYSP [mailto:mysp@phenixcable.net]
Sent: Saturday, April 27, 2002 7:39 PM
To: users@httpd.apache.org
Subject: RE: NameVirtualHost


I must apologise for leaving in the bicitymall.com address. It does not yet
resolve to this server.
However, razz.bicity.net should. It is aliased in my dns (tinydns). But,
changing the servername to razz.bicity.net made no difference.

-----Original Message-----
From: Technicien Kalyweb.com [mailto:tech@kalyweb.com]
Sent: Saturday, April 27, 2002 7:31 PM
To: users@httpd.apache.org
Subject: Re: NameVirtualHost


try that :

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/bicitymall.com
    ServerName bicitymall.net
    ServerAlias *.bicitymall.net
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/razz.bicity.net
    ServerName razz.bicity.net
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/bicity.net
    ServerName bicity.net
    ServerAlias *.bicity.net  # I put this at the end because of the alias .
#   ErrorLog logs/bicity.net-error_log
#   CustomLog logs/bicity.net-access_log common
</VirtualHost>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: NameVirtualHost

Posted by MYSP <my...@phenixcable.net>.
I must apologise for leaving in the bicitymall.com address. It does not yet
resolve to this server.
However, razz.bicity.net should. It is aliased in my dns (tinydns). But,
changing the servername to razz.bicity.net made no difference.

-----Original Message-----
From: Technicien Kalyweb.com [mailto:tech@kalyweb.com]
Sent: Saturday, April 27, 2002 7:31 PM
To: users@httpd.apache.org
Subject: Re: NameVirtualHost


try that :

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/bicitymall.com
    ServerName bicitymall.net
    ServerAlias *.bicitymall.net
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/razz.bicity.net
    ServerName razz.bicity.net
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/bicity.net
    ServerName bicity.net
    ServerAlias *.bicity.net  # I put this at the end because of the alias .
#   ErrorLog logs/bicity.net-error_log
#   CustomLog logs/bicity.net-access_log common
</VirtualHost>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: NameVirtualHost

Posted by "Technicien Kalyweb.com" <te...@kalyweb.com>.
try that :

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/bicitymall.com
    ServerName bicitymall.net
    ServerAlias *.bicitymall.net
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/razz.bicity.net
    ServerName razz.bicity.net
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/bicity.net
    ServerName bicity.net
    ServerAlias *.bicity.net  # I put this at the end because of the alias .
#   ErrorLog logs/bicity.net-error_log
#   CustomLog logs/bicity.net-access_log common
</VirtualHost>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: NameVirtualHost

Posted by MYSP <my...@phenixcable.net>.
<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/bicity.net
    ServerName bicity.net
#   ErrorLog logs/bicity.net-error_log
#   CustomLog logs/bicity.net-access_log common
</VirtualHost>

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/bicitymall.com
    ServerName bicity.net
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

<VirtualHost *>
    ServerAdmin bw@mysp.net
    DocumentRoot /var/www/html/razz.bicity.net
    ServerName bicity.net
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

I have not set up the error files yet. Good time to do it.

Thanks,
Bill


-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Saturday, April 27, 2002 6:59 PM
To: users@httpd.apache.org
Subject: Re: NameVirtualHost


MYSP wrote:
> I was grasping at straws.
> Since it did not function as *, I put in the IP. Also, I had not changed
the
> address in the virtual sections from * to the IP# either.
> Going to bicity.net produces the same page as razz.bicity.net while there
> should be minor differences.
> If it makes a difference, both are in djbdns.

Show us the relevant part of your httpd.conf.

Joshua.




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: NameVirtualHost

Posted by Joshua Slive <jo...@slive.ca>.
MYSP wrote:
> I was grasping at straws.
> Since it did not function as *, I put in the IP. Also, I had not changed the
> address in the virtual sections from * to the IP# either.
> Going to bicity.net produces the same page as razz.bicity.net while there
> should be minor differences.
> If it makes a difference, both are in djbdns.

Show us the relevant part of your httpd.conf.

Joshua.




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: NameVirtualHost

Posted by MYSP <my...@phenixcable.net>.
I was grasping at straws.
Since it did not function as *, I put in the IP. Also, I had not changed the
address in the virtual sections from * to the IP# either.
Going to bicity.net produces the same page as razz.bicity.net while there
should be minor differences.
If it makes a difference, both are in djbdns.

Any clues?
Bill

-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca]
Sent: Saturday, April 27, 2002 6:44 PM
To: users@httpd.apache.org
Subject: Re: NameVirtualHost


MYSP wrote:
> When I change NameVirtualHost *  to NameVirtualHost (my IP#), the
following
> errors come up.
>

First: why are you doing that?  NameVirtualHost * is the best
configuration unless you need to mix IP and name virtual hosts.

> [root@scotty root]# apachectl start
> [Sat Apr 27 18:28:14 2002] [warn] _default_ VirtualHost overlap on port
80,
> the first has precedence

If you change the NameVirtualHost line, you'll need to change each
<VirtualHost ...> directive to match it.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: NameVirtualHost

Posted by Joshua Slive <jo...@slive.ca>.
MYSP wrote:
> When I change NameVirtualHost *  to NameVirtualHost (my IP#), the following
> errors come up.
> 

First: why are you doing that?  NameVirtualHost * is the best 
configuration unless you need to mix IP and name virtual hosts.

> [root@scotty root]# apachectl start
> [Sat Apr 27 18:28:14 2002] [warn] _default_ VirtualHost overlap on port 80,
> the first has precedence

If you change the NameVirtualHost line, you'll need to change each 
<VirtualHost ...> directive to match it.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: NameVirtualHost

Posted by Jack Nerad <jn...@cimedia.com>.
On Sat, 2002-04-27 at 18:33, MYSP wrote:
> When I change NameVirtualHost *  to NameVirtualHost (my IP#), the following
> errors come up.
> 
> apachectl stop....(snip)
> 
> [root@scotty root]# apachectl start
> [Sat Apr 27 18:28:14 2002] [warn] _default_ VirtualHost overlap on port 80,
> the first has precedence
> [Sat Apr 27 18:28:14 2002] [warn] _default_ VirtualHost overlap on port 80,
> the first has precedence
> [Sat Apr 27 18:28:14 2002] [warn] NameVirtualHost 216.253.137.37:80 has no
> VirtualHosts
> /usr/sbin/apachectl start: httpd started
> 
> Any idea what's up?
> 
> Thanks,
> Bill
> 
> 

What is the output of the /path/to/apache/bin/httpd -S command?

--
Jack




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org