为什么 Apache 2.4 将此永久重定向 (301) 到非 www?
Why is Apache 2.4 permanent redirecting (301) this to non www?
为什么 Apache 2.4 将此永久重定向 (301) 到非 www?
<VirtualHost *:80>
ServerName www.domain.net
ServerAlias www.domain.com www.domain.org
Include conf/extra/domain/httpd-vhosts.domain.http
</VirtualHost>
包含文件有普通的DocumentRoot、Directory等,但没有重定向或重写conditions/rules。
.htaccess 有一些重写 conditions/rules 但没有 re: www.没有 301。
浏览器缓存已清除,使用 HttpWatch 查看可以在首次使用时看到来自服务器的非缓存重定向。后续使用重定向来自缓存。
没关系。发现它埋在一个较早的加载全局 conf 中。
幸好我在这里发布了它,否则我可能永远也找不到它。 ;)
为什么 Apache 2.4 将此永久重定向 (301) 到非 www?
<VirtualHost *:80>
ServerName www.domain.net
ServerAlias www.domain.com www.domain.org
Include conf/extra/domain/httpd-vhosts.domain.http
</VirtualHost>
包含文件有普通的DocumentRoot、Directory等,但没有重定向或重写conditions/rules。 .htaccess 有一些重写 conditions/rules 但没有 re: www.没有 301。
浏览器缓存已清除,使用 HttpWatch 查看可以在首次使用时看到来自服务器的非缓存重定向。后续使用重定向来自缓存。
没关系。发现它埋在一个较早的加载全局 conf 中。 幸好我在这里发布了它,否则我可能永远也找不到它。 ;)