我正在使用Apache2学习PHP,所以我设置了我的虚拟主机,但收到“未找到服务器”
我的douglaslearning.com.conf:
<VirtualHost *:80>
ServerAdmin diasdasilvadouglas12@gmail.com
ServerName www.douglaslearning.com
ServerAlias www.douglaslearning.com
DocumentRoot /var/www/douglaslearning.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<Directory "/var/www/douglaslearning.com/public_html">
Options Indexes FollowSymLinks
Require all granted
AllowOverride All
</Directory>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
我的主持人文件:
127.0.0.1 localhost
127.0.1.1 www.douglaslearning.com/
我输入所有必需的命令!