如何在apache linux中设置通配符子域?

时间:2014-02-28 06:24:50

标签: linux apache

目前我正在使用

NameVirtualHost *:80
<Virtualhost *:80>
VirtualDocumentRoot "/opt/lampp/htdocs/"
ServerName localhost
ServerAlias *.localhost
UseCanonicalName Off
<Directory "/opt/lampp/htdocs/crm">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</Virtualhost>

我在httpd-vhosts.conf中有上面的代码,但没有结果。请帮助

1 个答案:

答案 0 :(得分:0)

在httpd.conf中启用httpd-vhosts.conf。