欢迎光临IT网Linux学习频道

当前位置: > Linux服务器 > nginx >
  • [nginx] nginx 安装手记 日期:2015-01-19 13:47:49 点击:216 好评:0

    Nginx需要依赖下面3个包 1. gzip 模块需要 zlib 库 ( 下载: http://www.zlib.net/ ) zlib-1.2.8.tar.gz 2. rewrite 模块需要 pcre 库 ( 下载: http://www.pcre.org/ ) pcre-8.21.tar.gz 3. ssl 功能需要 openssl 库 ( 下载: http://www.openssl.org/ ) opens...

  • [nginx] php5.3 fastcgi方式 安装以及和nginx整合 日期:2015-01-19 13:38:39 点击:164 好评:0

    注意:不要随便改变基础库的版本,否则会对别的软件产生编译错误 1、基础依赖包安装: cd /software/zlib- 1.2 . 3 . / configure make make install cd /software/libxml2- 2.6 . 30 . /configure --prefix=/usr/local/libxml2/ make make install cd /soft...

  • [nginx] nginx日志 日期:2015-01-19 12:55:24 点击:96 好评:2

    nginx日志 1 、错误日志:主要记录客户端访问nginx出错时的日志,格式不支持自定义, 如何关闭: http 外定义 error_log /dev/ null ; #注意 这样写并不会关闭,而是写入到off的文件里 error_log off; 默认存放位置: prerix/logs/ prerix/logs/ nginx.pid...

  • [nginx] nginx 配置文件详解 日期:2015-01-19 12:54:24 点击:78 好评:0

    # 运行用户 user nobody; # 启动进程,通常设置成和cpu的数量相等 worker_processes 1 ; # 全局错误日志及PID文件 # error_log logs/error.log; # error_log logs/error.log notice; # error_log logs/error.log info; # pid logs/nginx.pid; # 工作模式及连...

  • [nginx] 开启Nginx的目录文件列表功能 日期:2015-01-19 12:48:58 点击:180 好评:2

    ngx_http_autoindex_module 此模块用于自动生成目录列表,ngx_http_autoindex_module只在 ngx_http_index_module模块未找到索引文件时发出请求. nginx默认是不允许列出整个目录的。 开启目录列表: 打开nginx.conf文件,在location server 或 http段中加入 a...

  • [nginx] Nginx 重写URI 日期:2015-01-17 14:49:04 点击:99 好评:0

    重写URI 我们在使用Nginx的过程中经常碰到需要将客户端访问者的URI进行重写,在根据浏览器选择主页部分多少有些认识这种做法,另外我们我们在map模块的使用部分也见到和改写过,但是它们都没有rewrite模块强大,因此,在这一部分我们看看rewrite的用法。 使...

  • [nginx] 为nginx增加nginx_http_concat模块 日期:2015-01-17 14:12:33 点击:106 好评:0

    最近在做的一个项目引入的js库文件比较多,所以导致的问题就是感觉速度会比较慢,而很多库文件都是拿的开源的库,基本上不会改动,所以想是否合并一下来下载。 合并JS方式很多,一般要么是服务器端合并要么是客户端合并,如果是以前我可能会选择客户端合并,...

  • [nginx] nginx 重写 rewrite 基础及实例 日期:2015-01-17 14:11:52 点击:148 好评:0

    今天搞https接入的时候,nginx这边进行https的认证加解密功能,所以后端的nginx和apache都是不需要进行什么变化的,业务 也是如此,但是有一个业务稍微有点不同,其需要根据http接入和https接入的不同来做吐出不同的东东,由于nginx这一层接入来做的ssl相关...

  • [nginx] nginx目录列表和目录访问权限设置 日期:2015-01-17 13:47:04 点击:72 好评:0

    1.目录列表(directory listing) nginx让目录中的文件以列表的形式展现只需要一条指令 autoindex on; autoindex可以放在location中,只对当前location的目录起作用。你也可以将它放在server指令块则对整个站点都起作用。或者放到http指令块,则对所有站点都生...

  • [nginx] Nginx运行Laravel的配置 运行环境 CentOS7+Nginx1.6.8+Laravel4.2 日期:2015-01-17 02:21:27 点击:266 好评:-4

    配置文件改成这样 server{ listen80; server_namesub.domain.com; set $root_path /var/www/html/application_name/public ; root $root_path ; indexindex.phpindex.htmlindex.htm; try_files $uri $uri /@rewrite; location@rewrite{ rewrite^/(.*)$/index...

  • 首页
  • 上一页
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 下一页
  • 末页
  • 2012009
栏目列表
推荐内容