Html Apache2 Virtualhost将成为默认DocRoot
我在ubuntu服务器12 apache2上设置虚拟主机时遇到问题。当我尝试转到stemitest.com时,apache会指向000-default.conf/var/www/中的DocumentRoot。我做错了什么Html Apache2 Virtualhost将成为默认DocRoot,html,redirect,apache2,virtualhost,Html,Redirect,Apache2,Virtualhost,我在ubuntu服务器12 apache2上设置虚拟主机时遇到问题。当我尝试转到stemitest.com时,apache会指向000-default.conf/var/www/中的DocumentRoot。我做错了什么 cat /etc/apache2/sites-available/000-default.conf 我想我差不多解决了这个问题。Apache没有在启用的站点中遵循simlink。将stemitest.com.conf复制到已启用的站点后,一切正常。不过看起来像是黑客。有人知
cat /etc/apache2/sites-available/000-default.conf
我想我差不多解决了这个问题。Apache没有在启用的站点中遵循simlink。将stemitest.com.conf复制到已启用的站点后,一切正常。不过看起来像是黑客。有人知道apache为什么会有这种行为吗
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
cat /etc/apache2/sites-available/stemitest.com.conf
<virtualhost *:80>
ServerAdmin donotreply@epbfi.com
ServerName www.stemitest.com
ServerAlias stemitest.com
DirectoryIndex index.html
DocumentRoot /var/www/stemitest.com
LogLevel warn
ErrorLog /var/apachelogs/error.log
CustomLog /var/apachelogs/access.log combined
</virtualhost>
cat /etc/apache2/apache2.conf
...
Include /etc/apache2/sites-enabled/
NameVirtualHost *:80
<ifmodule mod_ssl.c>
NameVirtualHost *:443
</ifmodule>