You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Zoe Ballz <zo...@zoeballz.tv> on 2004/06/06 15:27:52 UTC

[users@httpd] Virtualhosts and Server Status

Hiya folks

I'm still having problems with server_status and I'm determined to sort this
out. I have read all the info on Apache.org but I think I'm still missing
the point somewhere.

Here is example of my status page:

25-0 0 0/114/114 _  440 0 0.0 8.81 8.81  82.34.88.178 (unavailable) GET
/index.html HTTP/1.0
26-0 0 0/118/118 _  3757 0 0.0 1.89 1.89  82.34.88.178 (unavailable) GET
/index.html HTTP/1.0
27-0 0 0/164/164 _  3913 0 0.0 7.62 7.62  192.168.0.19 (unavailable) GET
/funny.gif HTTP/1.1
28-0 0 0/183/183 _  575 0 0.0 2.42 2.42  192.168.0.19 (unavailable) GET
/servstat HTTP/1.1
29-0 0 0/152/152 _  1043 0 0.0 3.02 3.02  82.34.88.178 (unavailable) GET
/index.html HTTP/1.0
30-0 0 0/202/202 _  2376 0 0.0 2.01 2.01  82.35.125.1 (unavailable) GET
/music/dudelayer-3-11.wav HTTP/1.1
31-0 0 0/153/153 _  4963 0 0.0 6.62 6.62  82.34.88.178 (unavailable) GET
/index.html HTTP/1.0
32-0 0 0/73/73 _  2551 0 0.0 3.39 3.39  82.34.88.178 (unavailable) GET
/index.html HTTP/1.0
33-0 0 0/90/90 _  3031 0 0.0 4.09 4.09  172.132.62.172 (unavailable) GET
/music/dudelayer-3-11.wav HTTP/1.1
34-0 0 0/95/95 W  0 0 0.0 11.00 11.00  127.0.0.1 (unavailable) GET /servstat
HTTP/1.1

As you can see, the virtualhost info is "unavailable".

Here is my setup:

1 single Apache server with 2 network cards.
Network card 1 is local IP 192.168.0.10 - gateway of 192.168.0.1
Network card 2 is local IP 192.168.0.11 - gateway of 192.168.0.3
2 internet connections with a router each - IPs of 192.168.0.1 and
192.168.0.3
Port 80 from each connection is routed to the appropriate card on the single
Apache server

I hope this explains how I do things.

I run Apache 1.3.31 on win2000pro with about 50 virtual hosts.

Previously I simply had ALL virtual hosts set as follows:

<VirtualHost *>
VALID DATA WENT HERE
</VirtualHost>

Hosting worked fine but due to the "unavailable" error I changed each Vhost
to be as follows (with valid domain name obviously):

<VirtualHost www.xyz.com>
VALID DATA WENT HERE
</VirtualHost>

I now get the following errors when I use the configuration test (example
below)

[Sun Jun 06 13:45:33 2004] [warn] VirtualHost mail.zoeballz.net:80 overlaps
with
 VirtualHost radio.zoeballz.tv:80, the first has precedence, perhaps you
need a
NameVirtualHost directive
[Sun Jun 06 13:45:33 2004] [warn] VirtualHost www2.zoeballz.tv:80 overlaps
with
VirtualHost mail.zoeballz.net:80, the first has precedence, perhaps you need
a N
ameVirtualHost directive
[Sun Jun 06 13:45:33 2004] [warn] NameVirtualHost *:80 has no VirtualHosts
c:/program files/apache group/apache/conf/httpd.conf: Syntax OK
Note the errors or messages above, and press the <ESC> key to exit.  23...

>From what I can see I need to do something with the NameVirtualHost
directive but documentation does not make it clear quite what !!!!!

I am of course assuming that if I get this right, my problem with
"unavailable" will be solved. Am I right? or am I barking up the wrong tree?

Any help would be appreciated.

http://zoeballz.net - Website Hosting for the Transgendered Community


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtualhosts and Server Status

Posted by Erik Brakvatne <eb...@qwest.net>.
On Jun 6, 2004, at 12:30 PM, Zoe Ballz wrote:

> Hi All
>
> Further to my last posting >>>>>
>
> I managed to use IP based virtual hosts, and even though I got no 
> errors on
> the config test, the server status STILL showed vhosts as 
> "(unavailable)".
>
> Maybe I have got this wrong. I thought that if i set up name based 
> vhosts,
> the vhosts field on status would show the domain that the requests were
> coming in for, and thus IP based vhosts would show the IP of the vhost.
> Although I managed to get IP based set up and running it still didnt 
> show on
> the status page, so I have now reverted to my original "default" vhost 
> setup
> (using <virtualhost *>).
>
> My original posting is below.
>
> I'm baffled.
>
> Zoe
>
> http://zoeballz.net - Website Hosting for the Transgendered Community
>
>
>
> ----- Original Message -----
> From: Zoe Ballz
> To: users@httpd.apache.org
> Sent: Sunday, June 06, 2004 2:27 PM
> Subject: [users@httpd] Virtualhosts and Server Status
>
>
> Hiya folks
>
> I'm still having problems with server_status and I'm determined to 
> sort this
> out. I have read all the info on Apache.org but I think I'm still 
> missing
> the point somewhere.
>
> Here is example of my status page:
>
> 25-0 0 0/114/114 _  440 0 0.0 8.81 8.81  82.34.88.178 (unavailable) GET
> /index.html HTTP/1.0
> 26-0 0 0/118/118 _  3757 0 0.0 1.89 1.89  82.34.88.178 (unavailable) 
> GET
> /index.html HTTP/1.0
> 27-0 0 0/164/164 _  3913 0 0.0 7.62 7.62  192.168.0.19 (unavailable) 
> GET
> /funny.gif HTTP/1.1
> 28-0 0 0/183/183 _  575 0 0.0 2.42 2.42  192.168.0.19 (unavailable) GET
> /servstat HTTP/1.1
> 29-0 0 0/152/152 _  1043 0 0.0 3.02 3.02  82.34.88.178 (unavailable) 
> GET
> /index.html HTTP/1.0
> 30-0 0 0/202/202 _  2376 0 0.0 2.01 2.01  82.35.125.1 (unavailable) GET
> /music/dudelayer-3-11.wav HTTP/1.1
> 31-0 0 0/153/153 _  4963 0 0.0 6.62 6.62  82.34.88.178 (unavailable) 
> GET
> /index.html HTTP/1.0
> 32-0 0 0/73/73 _  2551 0 0.0 3.39 3.39  82.34.88.178 (unavailable) GET
> /index.html HTTP/1.0
> 33-0 0 0/90/90 _  3031 0 0.0 4.09 4.09  172.132.62.172 (unavailable) 
> GET
> /music/dudelayer-3-11.wav HTTP/1.1
> 34-0 0 0/95/95 W  0 0 0.0 11.00 11.00  127.0.0.1 (unavailable) GET 
> /servstat
> HTTP/1.1
>
> As you can see, the virtualhost info is "unavailable".
>
> Here is my setup:
>
> 1 single Apache server with 2 network cards.
> Network card 1 is local IP 192.168.0.10 - gateway of 192.168.0.1
> Network card 2 is local IP 192.168.0.11 - gateway of 192.168.0.3
> 2 internet connections with a router each - IPs of 192.168.0.1 and
> 192.168.0.3
> Port 80 from each connection is routed to the appropriate card on the 
> single
> Apache server
>
> I hope this explains how I do things.
>
> I run Apache 1.3.31 on win2000pro with about 50 virtual hosts.
>
> Previously I simply had ALL virtual hosts set as follows:
>
> <VirtualHost *>
> VALID DATA WENT HERE
> </VirtualHost>
>
> Hosting worked fine but due to the "unavailable" error I changed each 
> Vhost
> to be as follows (with valid domain name obviously):
>
> <VirtualHost www.xyz.com>
> VALID DATA WENT HERE
> </VirtualHost>
>
> I now get the following errors when I use the configuration test 
> (example
> below)
>
> [Sun Jun 06 13:45:33 2004] [warn] VirtualHost mail.zoeballz.net:80 
> overlaps
> with
>  VirtualHost radio.zoeballz.tv:80, the first has precedence, perhaps 
> you
> need a
> NameVirtualHost directive
> [Sun Jun 06 13:45:33 2004] [warn] VirtualHost www2.zoeballz.tv:80 
> overlaps
> with
> VirtualHost mail.zoeballz.net:80, the first has precedence, perhaps 
> you need
> a N
> ameVirtualHost directive
> [Sun Jun 06 13:45:33 2004] [warn] NameVirtualHost *:80 has no 
> VirtualHosts
> c:/program files/apache group/apache/conf/httpd.conf: Syntax OK
> Note the errors or messages above, and press the <ESC> key to exit.  
> 23...
>
> From what I can see I need to do something with the NameVirtualHost
> directive but documentation does not make it clear quite what !!!!!
>
> I am of course assuming that if I get this right, my problem with
> "unavailable" will be solved. Am I right? or am I barking up the wrong 
> tree?
>
> Any help would be appreciated.
>
> http://zoeballz.net - Website Hosting for the Transgendered Community
>
>
> ---------------------------------------------------------------------
> 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
>    "   from the digest: users-digest-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
>    "   from the digest: users-digest-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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtualhosts and Server Status

Posted by Zoe Ballz <zo...@zoeballz.tv>.
Hi All

Further to my last posting >>>>>

I managed to use IP based virtual hosts, and even though I got no errors on
the config test, the server status STILL showed vhosts as "(unavailable)".

Maybe I have got this wrong. I thought that if i set up name based vhosts,
the vhosts field on status would show the domain that the requests were
coming in for, and thus IP based vhosts would show the IP of the vhost.
Although I managed to get IP based set up and running it still didnt show on
the status page, so I have now reverted to my original "default" vhost setup
(using <virtualhost *>).

My original posting is below.

I'm baffled.

Zoe

http://zoeballz.net - Website Hosting for the Transgendered Community



----- Original Message ----- 
From: Zoe Ballz
To: users@httpd.apache.org
Sent: Sunday, June 06, 2004 2:27 PM
Subject: [users@httpd] Virtualhosts and Server Status


Hiya folks

I'm still having problems with server_status and I'm determined to sort this
out. I have read all the info on Apache.org but I think I'm still missing
the point somewhere.

Here is example of my status page:

25-0 0 0/114/114 _  440 0 0.0 8.81 8.81  82.34.88.178 (unavailable) GET
/index.html HTTP/1.0
26-0 0 0/118/118 _  3757 0 0.0 1.89 1.89  82.34.88.178 (unavailable) GET
/index.html HTTP/1.0
27-0 0 0/164/164 _  3913 0 0.0 7.62 7.62  192.168.0.19 (unavailable) GET
/funny.gif HTTP/1.1
28-0 0 0/183/183 _  575 0 0.0 2.42 2.42  192.168.0.19 (unavailable) GET
/servstat HTTP/1.1
29-0 0 0/152/152 _  1043 0 0.0 3.02 3.02  82.34.88.178 (unavailable) GET
/index.html HTTP/1.0
30-0 0 0/202/202 _  2376 0 0.0 2.01 2.01  82.35.125.1 (unavailable) GET
/music/dudelayer-3-11.wav HTTP/1.1
31-0 0 0/153/153 _  4963 0 0.0 6.62 6.62  82.34.88.178 (unavailable) GET
/index.html HTTP/1.0
32-0 0 0/73/73 _  2551 0 0.0 3.39 3.39  82.34.88.178 (unavailable) GET
/index.html HTTP/1.0
33-0 0 0/90/90 _  3031 0 0.0 4.09 4.09  172.132.62.172 (unavailable) GET
/music/dudelayer-3-11.wav HTTP/1.1
34-0 0 0/95/95 W  0 0 0.0 11.00 11.00  127.0.0.1 (unavailable) GET /servstat
HTTP/1.1

As you can see, the virtualhost info is "unavailable".

Here is my setup:

1 single Apache server with 2 network cards.
Network card 1 is local IP 192.168.0.10 - gateway of 192.168.0.1
Network card 2 is local IP 192.168.0.11 - gateway of 192.168.0.3
2 internet connections with a router each - IPs of 192.168.0.1 and
192.168.0.3
Port 80 from each connection is routed to the appropriate card on the single
Apache server

I hope this explains how I do things.

I run Apache 1.3.31 on win2000pro with about 50 virtual hosts.

Previously I simply had ALL virtual hosts set as follows:

<VirtualHost *>
VALID DATA WENT HERE
</VirtualHost>

Hosting worked fine but due to the "unavailable" error I changed each Vhost
to be as follows (with valid domain name obviously):

<VirtualHost www.xyz.com>
VALID DATA WENT HERE
</VirtualHost>

I now get the following errors when I use the configuration test (example
below)

[Sun Jun 06 13:45:33 2004] [warn] VirtualHost mail.zoeballz.net:80 overlaps
with
 VirtualHost radio.zoeballz.tv:80, the first has precedence, perhaps you
need a
NameVirtualHost directive
[Sun Jun 06 13:45:33 2004] [warn] VirtualHost www2.zoeballz.tv:80 overlaps
with
VirtualHost mail.zoeballz.net:80, the first has precedence, perhaps you need
a N
ameVirtualHost directive
[Sun Jun 06 13:45:33 2004] [warn] NameVirtualHost *:80 has no VirtualHosts
c:/program files/apache group/apache/conf/httpd.conf: Syntax OK
Note the errors or messages above, and press the <ESC> key to exit.  23...

>From what I can see I need to do something with the NameVirtualHost
directive but documentation does not make it clear quite what !!!!!

I am of course assuming that if I get this right, my problem with
"unavailable" will be solved. Am I right? or am I barking up the wrong tree?

Any help would be appreciated.

http://zoeballz.net - Website Hosting for the Transgendered Community


---------------------------------------------------------------------
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
   "   from the digest: users-digest-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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org