为什么我的httpd.conf设置路由到https



我有很多域,每个域都指向我的服务器IP。。

我已经ping了每个域以检查DNS,没关系,所有域都指向正确的服务器。

我的所有域都通过HTTP正确地路由通过httpd.conf,除了一个域,由于某种原因,HTTP<虚拟:*:80>条目正在转发到https:(https://preprod.testsite.org.uk)-为了安全起见,这不是真正的URL。

为什么在其他项目都很好的情况下,这个项目会失败?

是否有某种方法可以调试或跟踪从DNS到服务器,再到httpd.conf的请求?

<VirtualHost *:80>
DocumentRoot "/var/www/html/testsite/production"
ServerName preprod.testsite.org.uk
<Directory /var/www/html/testsite/production>
DirectoryIndex index.php
order allow,deny
allow from all
AllowOverride all
</Directory>
</VirtualHost>

DNS与HTTP到HTTPs的重定向无关。使用curl(-v选项(测试它,并检查服务器是否正在向客户端发送一个Location,告诉他通过HTTPs进行连接。如果curl说没有重定向到https,可能是应用程序本身告诉客户端通过https连接,或者可能是浏览器HSTS缓存中的一些条目。