【发布时间】:2013-07-13 03:50:35
【问题描述】:
我正在尝试让子域在 Apache 中运行,但它对我不起作用。我已经尝试过Virtualhost For Wildcard Subdomain and Static Subdomain。 我现在的代码:
<VirtualHost *:80>
DocumentRoot /Bestanden/webserver/vandervoorden.com/other
ServerName other.vandervoorden.com
ServerAlias *.vandervoorden.com
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /Bestanden/webserver/vandervoorden.com
<Directory "/Bestanden/webserver/vandervoorden.com">
allow from all
Options +Indexes
</Directory>
ServerName vandervoorden.com
</VirtualHost>
第二个 VHost 将对 vandervoorden.com 和 www.vandervoorden.com 做出反应,但是当我浏览到 didtexist.vandervoorden.com 时,我收到一个未找到的页面。
【问题讨论】:
标签: apache subdomain virtualhost