0
我在我的Nginx实例上配置了SPDY并且使用http://spdycheck.org/来确认它的设置,但出于某种奇怪的原因,Nginx将https重定向到默认的Nginx页面,我删除了从启用网站的默认符号链接重新启动服务器,但问题仍然存在。我的网站conf文件有:Nginx在https设置后重定向到默认的欢迎页面
server {
listen 443 spdy ssl;
server_name foobar;
ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;
}
server {
listen 80;
server_name foobar;
return 301 https://sub.foobar.com$request_uri;
#error_page 404 = @notfound;
access_log /var/log/access.foobar.com.log;
error_log /var/log/error.foobar.com.log;
location/{
proxy_pass http://127.0.0.1:9030;
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_connect_timeout 60;
proxy_read_timeout 120;
}
}
我需要改变以使这项工作?
这个问题似乎是脱离主题,因为它不是关于编程。请参阅帮助中心内的[我可以询问哪些主题](https://stackoverflow.com/help/on-topic)。也许[服务器故障](http://serverfault.com/)或[Webmaster Stack Exchange](http://webmasters.stackexchange.com/)会是一个更好的地方。 – jww
您是否尝试使用其他浏览器来检查问题是否仍然存在?有时浏览器缓存一些重定向响应。 –