以下是我目前的sites-available.conf:
<VirtualHost *:80> ServerAdmin heuyie@localhost DocumentRoot /var/www/html/wordpress ServerName heuyie.com ServerAlias www.heuyie.com <Directory /var/www/html/wordpress> Options FollowSymLinks AllowOverride All </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>
我想在此服务器上托pipe另一个域,所以我想为此虚拟主机指定IP。 所以,我重写了第一行:
<VirtualHost 172.20.30.40:80>
然后,事情停止工作。 为什么? 目前,这是该服务器上唯一的域名。 谢谢!
需要添加
听172.20.30.40:80