宝塔环境下的BeDrive Nginx规则

location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    access_log off;
    error_log  /var/log/nginx/default-error.log error;

    error_page 404 /index.php;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
    }

    location ~ /\.ht {
        deny all;
    }
}

 

給TA打賞
共{{data.count}}人
人已打賞
寶塔主機面板

宝塔面板100%负载和100%CPU的解决办法

2021-10-27 1:43:04

寶塔主機面板

nextcloud宝塔面板nginx伪静态-去除index.php

2021-12-9 15:08:36

0 Reply AAuthor MManager
    暫無討論,說說你的看法吧
搜索