欢迎光临IT网Linux学习频道

当前位置: > Linux服务器 > nginx >
  • [nginx] Magento Nginx安全配置conf文件 日期:2015-06-28 20:33:26 点击:178 好评:0

    Magento在Nginx下的rewrite配置文件. [JavaScript]代码 server { if ( $host = domain.com ) { rewrite ^ /(.*)$ http:/ / www . domain . com / $1 redirect ; } } server { listen 80 ; server_name www . domain . com ; access_log / home / wwwroot / d...

  • [nginx] Nginx 启动的脚本 日期:2015-06-28 20:32:59 点击:56 好评:0

    #!/bin/sh # chkconfig: 345 86 14 # description: Startup and shutdown script for nginx NGINX_DIR=/opt/ngx export NGINX_DIR case $1 in start ) echo Starting nginx... $NGINX_DIR/sbin/nginx ;; reload ) echo Reload nginx configuration... kill -...

  • [nginx] nginx配置301永久重定向 日期:2015-06-28 20:31:08 点击:169 好评:0

    it.net.cn在上线聚客时发现google收录了一些本来该是在主域名it.net.cn下的网址,却收录到了linux.it.net.cn域名下了,最好的办法是在nginx配置中将这些地址重定向到主域名。 nginx中可以通过redirect配合正则表达式来配置重定向,如下是linux.it.net.cn域名...

  • [nginx] 分析 nginx / apache 日志,干掉攻击的IP 日期:2015-06-28 20:30:37 点击:147 好评:0

    最近有骚扰!!不间断会在某个时间突然被海量 IP 袭击,导致宽带耗尽而挂。因此写了个脚本!用于分析 Nginx / Apache 日志,识别出一定记录行数内超过某个数量的IP。然后用 Nginx 的 deny 拒绝访问。 [Shell/批处理]代码 #!/bin/sh #########################...

  • [nginx] Nginx 自启动的脚本 日期:2015-06-28 20:29:49 点击:71 好评:0

    脚本名称 nginx , 需要将该脚本复制到 /etc/init.d 并执行以下命令chmod +x nginxchkconfig --add nginx此方法仅限红帽系列的Linux,包括CentOS nginx #!/bin/sh # chkconfig: 345 86 14 # description: Startup and shutdown script for nginx NGINX_DIR=/op...

  • [nginx] 在nginx上配置Ruby on Rails 日期:2015-06-28 20:27:22 点击:144 好评:0

    Nginx已经成为世界第三大Web服务器,在国内十大网站使用的Web服务器调查中,Nginx也名列前茅。Ruby on Rails是近几年开始流行的新一代Web开发语言,其易用、敏捷的特性收到很多Web开发人员的瞩目。 本文将指导您在Ubuntu/Debian上从Ruby和Rails开始,一步一...

  • [nginx] nginx + webpy + fastcgi cache 配置详解 日期:2015-06-28 20:26:54 点击:165 好评:0

    为了使nginx + webpy + fastcgi 这一组合达到性能最优,决定配置nginx的fastcgi cache,本文将详述配置的步骤和所遇到的问题。 一. 安装nginx最新稳定版本和nginx_ngx_cache_purge模块 我(即OutOfMemory.CN)使用的nginx版本是最新稳定版nginx 1.2.6, 首先...

  • [nginx] Nginx配置Http跳转到Https 日期:2015-06-28 20:06:55 点击:90 好评:0

    Nginx配置Http跳转到Https,需要修改Nginx.conf配置文件: server { listen 443 ; server_name www . qiaodahai . com ; ssl on ; ssl_certificate ca . pem ; ssl_certificate_key ca . key ; ssl_session_timeout 5m ; ssl_protocols SSLv2 SSLv3 TLSv1 ;...

  • [nginx] Nginx开启Gzip压缩大幅提高页面加载速度及相关测试 日期:2015-06-28 20:05:17 点击:103 好评:0

    Nginx开启Gzip压缩大幅提高页面加载速度及相关测试 刚刚给博客加了一个500px相册插件,lightbox引入了很多js文件和css文件,页面一下子看起来非常臃肿,所以还是把Gzip打开了。 环境:Debian 6 1、Vim打开Nginx配置文件 vim /usr/local/nginx/conf/nginx.con...

  • [nginx] nginx在centos linux下的启动脚本 日期:2015-06-28 20:04:53 点击:68 好评:0

    nginx在centos等linux系统下的启动脚本: #! /bin/bash # Startup script for the Nginx HTTP Server # chkconfig: - 85 15 # description: Startup script for the Nginx HTTP Server # processname: nginx # pidfile: /var/run/nginx.pid # config: /usr/l...

  • 首页
  • 上一页
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 下一页
  • 末页
  • 2012009
栏目列表
推荐内容