3

wordpress | 端口绑定 https

 1 month ago
source link: https://benpaodewoniu.github.io/2024/03/29/nginx10/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

wordpress | 端口绑定 https

在非 443 端口绑定 https

直接放例子。

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;
}
}

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK