关于nginx跪求各位大佬指点下
github地址:https://github.com/arakasi72/rtinst安装了rt一键包,为啥其它目录不能执行PHP文件,因为我想安装个芒果云方便文件管理,求大佬指点一下
贴上default配置文件,因为被我修改过原文件配置没了
server {
listen 80;
root /var/www;
index index.html index.php index.htm;
location /rutorrent {
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
include /etc/nginx/conf.d/php;
include /etc/nginx/conf.d/cache;
}
location /kod {
include /etc/nginx/conf.d/php;
}
#include /etc/nginx/sites-available/dload-loc;
}
conf.d/php
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
} 目录不能执行php应该是如下类似的配置
location ~* /wp-content/uploads/.*\.php$ {
deny all;
页:
[1]