現在配置偽靜態和https
htpps配置好了
現在偽靜態就是出問題,麻煩看下是哪里的問題,組態檔寫的對不對
server {
listen 443 ssl;
ssl on;
ssl_certificate /xxx/nginx/xxx.pem;
ssl_certificate_key /xxx/nginx/xxx.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
ssl_prefer_server_ciphers on;
location / {
root /usr/share/nginx/html;
index index.php index.html index.htm;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
root /usr/share/nginx/html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server
{
listen 80;
server_name xxx.com www.xxx.com;
return 301 https://$host$request_uri;
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/9762.html
標籤:系統維護與使用區
下一篇:Linux常用基本命令
