我正在尝试在我的虚拟服务器中创建一个子域(它是一个 centOS)。我已经像这样编辑了 httpd.conf 文件:
名称虚拟主机 *:80
<VirtualHost *:80>
DocumentRoot /var/www/html/zend/
<Directory "/var/www/html/zend">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ServerName zend.mydomain.es
</VirtualHost>
当我尝试 www.mydomain.es 时,它工作正常,但是当我尝试 zend.mydomain.es 时,我得到 Server Not Found 错误。我必须配置其他文件才能使其正常工作吗?