Nginx下只针对logging.php进行https处理的重写规则 【转】
来源:互联网 发布:工控编程吧网址 编辑:程序博客网 时间:2024/06/03 18:21
文章出处:Nginx下只针对logging.php进行https处理的重写规则
在https server下加入如下配置:
if ($uri !~* "/logging.php$")
{
rewrite ^/(.*)$ http://$host/$1 redirect;
}
在http server下加入如下配置:
if ($uri ~* "/logging.php$")
{
rewrite ^/(.*)$ https://$host/$1 redirect;
}
最后结果就是,用户会且只会在访问logging.php的情况下,才会通过https访问。有效地避免了arp欺骗、嗅探等方法盗取账号密码的行为。
0 0
- Nginx下只针对logging.php进行https处理的重写规则 【转】
- Nginx下只针对logging.php进行https处理的重写规则 【转】
- magento paypal 禁止 sslv3, 采用TLS 协议,nginx需要做的更改。(只针对https)
- nginx + PHP 下 https的设置。
- nginx + PHP 下 添加 https 的支持
- CI 即CodeIgniter框架在Nginx下的重写规则
- nginx下利用phcalcon生成框架的重写规则
- Nginx的Rewrite重写规则
- php-fpm nginx 框架重写规则
- apache重写规则转Nginx
- Makefile的隐晦规则只 针对.c不针对。o
- 项目二级目录下的index.php使用nginx重写
- Laravel的Nginx重写规则完整代码
- nginx+php 环境下的https环境搭建
- Nginx下的项目 http转https
- 在线Apache重写规则转Nginx
- nginx url 重写规则
- nginx 重写规则!
- android studio2.1创建项目的两个坑
- 怎么把String类型转化成Integer类型???
- Android开发到底做什么?
- 行内元素水平间隔有关问题
- CString 判断存在中文,大小写字母及标点
- Nginx下只针对logging.php进行https处理的重写规则 【转】
- AFNetworking详解
- 李白的诗: 南陵别儿童入京
- RecyclerView
- HDOJ/HDU 2547 无剑无我(两点间的距离)
- Android 自定义View并添加属性
- 如何把String类型转化成Integer类型
- iOS9新系统下App Store应用上传新指南
- Android滑动头部控件