现在配置好后访问http会自动跳转到https- -。好蛋疼
server {
listen 80;
listen 443;
server_name *.domain.com;
root /data0/web/domian.com;
index index.php;
ssl on;
ssl_certificate /data0/configs/domain.com.crt;
ssl_certificate_key /data0/configs/domain.com.pem;
location / {
}
include php.conf;
}
ringa_lee2017-05-16 17:30:38
这个在Nginx的文档中有的:
listen 80;
listen 443 ssl;
参考:http://nginx.org/en/docs/http/configuring_https_servers.html