服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. nginx web.config
  3. nginx,限制除index.php之外的所有.php,允许POST
Intereting Posts
Elastix和两条ISDN线路 麻烦Debian $ PATH 有可能有一个networking服务器的某个子文件夹来自不同的服务器? 如何使用sysprep unattend.xml激活Windows 7? 将特定端口上的docker容器连接到主机上的本地接口 保持SSH连接活着 为什么Xen平台XCP没有按照承诺提供所有function? 服务器2012年 – 控制面板和服务器pipe理器问题 关于我们的服务器机柜的温度 如何使用audio发生器来跟踪networking电缆 configuration“QoS上传”限制 OpenVPN与Linux上的CryptoAPI 组织每个域的.conf apacheconfiguration 良好的OSXgraphicsHTTP跟踪程序? 在外部网卡上无意中更改了IP,无法返回到服务器。 我如何重新连接

nginx,限制除index.php之外的所有.php,允许POST

我试图限制通过HTTP访问.php文件,只允许index.php。

我应该只允许通过POST访问.php文件。

我做了以下几点:

  location ~ ^((?!index\.php).)*$ { allow 127.0.0.1 deny all; } 

这会阻止除index.php之外的所有文件,但是也会阻止POST查询。

  • nginx http到https重写规则不再起作用
  • Slim PHP Framework在Nginx的子目录中路由
  • nginxconfiguration路由干扰
  • 使用nginx图像filter模块即时更改图像质量
  • NGINX IP透明度SSLstream

有任何想法吗?

  • Ubuntu服务器附加networking接口已停止响应
  • Aws Redis集群会话pipe理不起作用
  • NGINX不logging到系统日志
  • PHP脚本不能从子目录执行
  • php-fpm不能用于nginx重写

位置适用于所有请求types。 不幸的是,我能想到的唯一方法就是使用IF

 location ~ ^((?!index\.php).)*$ { if ($request_method = GET ) { allow 127.0.0.1 deny all; } } 
  • 如何在nginx访问日志中loggingproxy_pass?
  • nginx防火墙与cloudflare
  • connect()失败(111:连接被拒绝),同时连接上游
  • 如何限制/安全访问互联网上托pipe的开发人员的服务器
  • 缓慢的Nginx与基本身份validation
  • Nginx – 禁用http支持
  • Nginx与PHP子目录/ PHP部分处理
  • 用于同时反向代理和服务php文件的nginx服务器块configuration
  • 如何简化我的nginx反向代理configuration
  • Nginx在“?”url后面的子页面的位置

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy