
















<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /mnt/www/example
ServerName demo.example.com
ServerAlias demo.example.com *.demo.example.com
ErrorLog logs/demo-example-error_log
CustomLog logs/demo-example-access_log common
<Directory "/mnt/www/example">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
这是一个项目的域名配置,但是访问 login.demo.example.com 这样三级域名时,全部跳转到了 apche 根目录去了。同样的配置,在另外一个项目里, 只是修改了下二级域名,三级域名跳转都正常。
请教下,还有哪些需要配置?
第 1 条附言 · 2017 年 10 月 24 日
同一个服务器下,我使用了多个二级域名指向对应的项目,每个二级域名都开启了泛域名,是不是 apache 对域名的数量有限制?主域名只有一个。。
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。