0%

wordpress | 端口绑定 https

在非 443 端口绑定 https

直接放例子。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
server {
listen 8088 ssl;
ssl_certificate /home/ubuntu/https/fullchain.crt;
ssl_certificate_key /home/ubuntu/https/private.pem;
server_name thlm.thlm.com;
root /var/www/wordpress/Static/thlm/;

location / {
#alias /var/www/wordpress/Static/thlm/;
try_files $uri $uri/ /index.php?$args;
#alias /var/www/wordpress/Static/thlm/;
index index.php;
}

location /thlm{
alias /var/www/wordpress/Static/thlm/;
index index.php;
}


location ~ \.php$ {
include fastcgi_params;
fastcgi_intercept_errors on;
fastcgi_pass php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
请我喝杯咖啡吧~