Now after configuration, accessing http will automatically jump to https- -. It hurts so much
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;
}
This is in the Nginx documentation:
Reference: http://nginx.org/en/docs/http/configuring_https_servers.html
Is it possible to use two servers?
Isn’t this the poster’s configuration? You should need two servers, one listening on port 80 and the other listening on port 443. Jiang Zi...
ssl on; Just remove this line