DA更换IP后Apache启动端口报错
错误
Stopping httpd: [ OK ] Starting httpd: [Wed Oct 09 22:52:30 2013] [error] VirtualHost 110.110.110.110:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results [Wed Oct 09 22:52:30 2013] [error] VirtualHost 110.110.110.110:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
解决办法
vi /etc/httpd/conf/extra/httpd-vhosts.conf 修改错误后保存重启Apache
示例
NameVirtualHost *:80 NameVirtualHost * <VirtualHost *:80> DocumentRoot /var/www ServerName www.example.com ... </VirtualHost> <VirtualHost *> DocumentRoot /var/www ServerName www.example.org ... </VirtualHost>