全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2525|回复: 1

关于nginx跪求各位大佬指点下

[复制链接]
发表于 2017-6-25 12:08:54 | 显示全部楼层 |阅读模式
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;
}
发表于 2017-7-5 08:28:44 | 显示全部楼层
目录不能执行php应该是如下类似的配置
        location ~* /wp-content/uploads/.*\.php$ {
                 deny all;
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-3-29 01:56 , Processed in 0.081975 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表