Forum Moderators: phranque

Message Too Old, No Replies

problem upgrading to apache 2.2

         

anthrt

8:38 pm on Dec 18, 2005 (gmt 0)

10+ Year Member



after a bit of editing of the httpd.conf file for the virtualhosts, apache is now throwing out errors when i attempt to start it.
i did /usr/local/apache2/bin/httpd -S and this is the output:

[root@server conf]# /usr/local/apache2/bin/httpd -S
[Sun Dec 18 20:27:06 2005] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Dec 18 20:27:06 2005] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Dec 18 20:27:06 2005] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Dec 18 20:27:06 2005] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Dec 18 20:27:06 2005] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Dec 18 20:27:06 2005] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Dec 18 20:27:06 2005] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Dec 18 20:27:06 2005] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Dec 18 20:27:06 2005] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Sun Dec 18 20:27:06 2005] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:* is a NameVirtualHost
default server 66.66.66.66 (/usr/local/apache2/conf/httpd.conf:405)
port 80 namevhost 66.66.66.66 (/usr/local/apache2/conf/httpd.conf:405)
port 80 namevhost domain.com (/usr/local/apache2/conf/httpd.conf:411)
port 80 namevhost domain.com (/usr/local/apache2/conf/httpd.conf:416)
port 80 namevhost domain.com (/usr/local/apache2/conf/httpd.conf:423)
port 80 namevhost domain.com (/usr/local/apache2/conf/httpd.conf:430)
port 80 namevhost domain.com (/usr/local/apache2/conf/httpd.conf:438)
port 80 namevhost domain.com (/usr/local/apache2/conf/httpd.conf:445)
port 80 namevhost domain.com (/usr/local/apache2/conf/httpd.conf:452)
port 80 namevhost arcticarmy.com (/usr/local/apache2/conf/httpd.conf:459)
port 80 namevhost domain.com (/usr/local/apache2/conf/httpd.conf:466)
Syntax OK

i have no idea what those errors mean. the virtualhost configuration was running fine on 2.0.54.

this is the current virtualhost config:

<VirtualHost *:80>
ServerAdmin root@localhost
DocumentRoot /var/www/html/
ServerName 66.66.66.66
</VirtualHost>

<VirtualHost *:80>
DocumentRoot /var/www/html/domain/
ServerName domain.com
ErrorLog /var/log/httpd/domain/error_log
CustomLog /var/log/httpd/domain/access_log combined

</VirtualHost>

edited out a few other of the virtuahost containers just to save space.

anyway, can anyone shed any light on the problem?

[edited by: anthrt at 8:40 pm (utc) on Dec. 18, 2005]

bcc1234

8:39 pm on Dec 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



NameVirtualHost *

NameVirtualHost *:80

See any difference?

anthrt

8:43 pm on Dec 18, 2005 (gmt 0)

10+ Year Member



thanks, it works now.

but another slightly more annoying problem has cropped up, the correct pages are loading for each seperate virtualhost domain.

only, the 'compiled' html isnt being displayed, the 'source' code is.

anthrt

8:49 pm on Dec 18, 2005 (gmt 0)

10+ Year Member



wait.. i know exactly whats wrong.