欢迎光临IT网Linux学习频道

当前位置: > Linux服务器 > nginx >
  • [nginx] Nginx代理Apache显示真实IP 日期:2014-12-11 00:40:29 点击:145 好评:0

    Nginx反向代理Apache的情况下让Apache获得真实IP 需要使用mod_rpaf模块 1.下载mod_rpaf-stable https://github.com/gnif/mod_rpaf 2.安装模块 it@AX201:/down/mod_rpaf-stable$ sudo /home/app/apache/bin/apxs -i -c -n mod_rpaf.so mod_rpaf.c 3.查看已添...

  • [nginx] Nginx代理proxy_cache缓存文件 日期:2014-12-11 00:35:27 点击:155 好评:0

    Nginx代理proxy_cache缓存文件1.首先Nginx需要启用proxy_cache模块可以通过nginx -V 来查看下,编译安装的时候是否加有proxy_cache模块itnetcn@ubuntu-T2:~$ sudo /home/app/nginx/nginx-1.2.2/sbin/nginx -Vnginx version: nginx/1.2.2built by gcc 4.6.3 (U...

  • [nginx] Nginx反向代理内网服务器WEB应用 日期:2014-12-11 00:34:04 点击:170 好评:0

    Nginx反向代理内网服务器WEB应用 需求分析: A服务器: Linux系统,多网卡,其中有公网IP,用于前端,装有Nginx; B服务器: windows系统,有局域网IP,另外与A服务器同一局域网,没有公网IP,装有Apache; 在B服务器上有WEB应用需要在公网进行访问. 方法: 公网web能过域...

  • [nginx] CentOS配置Nginx支持cgi 日期:2014-12-11 00:32:07 点击:57 好评:0

    CentOS配置Nginx支持cgi Nginx环境: CentOS源码安装Nginx #安装FCGI tar zxvf FCGI-0.74.tar.gz cd FCGI-0.74 perl Makefile.PL make make install #安装FCGI-ProcManager tar zxvf FCGI-ProcManager-0.25.tar.gz cd FCGI-ProcManager-0.25 perl Makefile.PL...

  • [nginx] Nginx代理 日期:2014-12-11 00:30:34 点击:143 好评:0

    Nginx代理 例: 我的网站是访问是 www.it.net.cn:80 , 如果我想 www.it.net.cn:81 自动跳转到www.baidu.com 81端口代理访问到 www.baidu.com 配置如下: server { listen 81; server_name localhost; location / { proxy_pass http://www.baidu.com:80; } Ngin...

  • [nginx] nginx rewrite 的语法 日期:2014-12-10 18:57:26 点击:189 好评:0

    Nginx Rewrite规则相关指令 Nginx Rewrite规则相关指令有if、rewrite、set、return、break等,其中rewrite是最关键的指令。 rewrite 的语法 语法:rewrite regex replacement flag 默认:none 作用域:server, location, if This directive changes URI in acco...

  • [nginx] nginx rewrite 配置说明与参数详解 日期:2014-12-10 18:53:15 点击:93 好评:0

    nginx下伪静态配置参数详细说明,使用nginx的朋友,nginx rewrite 伪静态配置参数和使用例子 附正则使用说明 正则表达式匹配,其中: * ~ 为区分大小写匹配 * ~* 为不区分大小写匹配 * !~和!~*分别为区分大小写不匹配及不区分大小写不匹配 文件及目录匹配,其...

  • [nginx] Nginx Rewrite 规则相关指令 日期:2014-12-10 18:51:37 点击:70 好评:2

    相关指令有if,rewrite,set,return,break等,其中最关键的就是rewrite.一个简单的Nginx Rewrite规则语法如下: rewrite ^/b/(.*)\.html /play.php?video=$1 break; 1.break指令 默认值:none ;使用环境:server,location,if ; 该指令的作用是完成当前的规则集...

  • [nginx] nginx配置文件的rewrite中break和last的区别 日期:2014-12-10 18:50:32 点击:63 好评:0

    Nginx配置文件的rewrite中break和last的区别,有需要的朋友不妨参考下。 来看一个这样的server配置: server { listen 80; server_name www.it.net.cn; root /var/www/itnetcn; index index.php index.html index.htm; location [loc-1] { /**此处略去1000字...

  • [nginx] Nginx安全配置研究 日期:2014-12-10 16:37:42 点击:95 好评:0

    操作系统:CentOS6.5Web服务器:Nginx1.4.6Php版本:Php5.4.26 0x01 Nginx介绍 nginx本身不能处理PHP,它只是个web服务器,当接收到请求后,如果是php请求,则发给php解释器处理,并把结果返回给客户端。nginx一般是把请求发fastcgi管理进程处理,fastcgi管...

  • 首页
  • 上一页
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 下一页
  • 末页
  • 2012009
栏目列表
推荐内容