在更改configuration后,Apache不会重新启动。
错误:(98)已经在使用的地址:AH00072:make_sock:无法绑定到地址[::]:80
文件:/etc/apache2/sites-enabled/000-default.conf:
Listen 80 <VirtualHost *:80> DocumentRoot /var/www/html ServerName sladie.myserver.com # Other directives here </VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/html/mydomain.com ServerName www.mydomain.com # Other directives here </VirtualHost>
从Apache Docs获得了这个configuration。
任何想法,为什么这是行不通的?
如果您使用的是Debian,则不需要在虚拟主机中指定Listen 80
,因为已在其中声明
/etc/apache2/ports.conf:9:Listen 80