現在配置好後訪問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;
}
這個在Nginx的文檔中有的:
參考:http://nginx.org/en/docs/http/configuring_https_servers.html
兩個server行不行?
樓主這麼配置不行吧,應該要兩個server,一個監聽的是80端口,一個監聽的是443端口。醬紫...
ssl on; 把這行去掉就好了