欢迎光临IT网Linux学习频道

当前位置: > Linux服务器 > nginx >
  • [nginx] nginx中文件下载指定保存文件名的配置方法 日期:2016-02-23 16:17:21 点击:74 好评:0

    一般在我们上传完资源文件之后,为了避免文件名冲突,会将文件名改成毫无意义的一段字符。这个字符,可能是MD5产生的,或者是其他方式产生的字符串。这时候,下载的时候,默认保存的文件名会是这段毫无意义的文件名(图1)。 其实,nginx是支持下载时重命名...

  • [nginx] Nginx日志记录cookie 日期:2016-02-22 19:51:45 点击:100 好评:0

    Nginx的配置就好像做程序一样,其实很好玩。 笔记一下: server { listen 80; server_namewww.aslibra.com; set $aslibra_auth ; if ( $http_cookie ~* aslibra_auth=(.+)(?:;|$) ){ set $aslibra_auth $1; } log_format main$proxy_add_x_forwarded_for - $...

  • [nginx] Nginx日志记录Cookie 学习笔记 日期:2016-02-22 19:50:46 点击:154 好评:0

    事例一: server { listen 80; server_namewww.it.net.cn; set $aslibra_auth ; if ( $http_cookie ~* aslibra_auth=(.+)(?:;|$) ){ set $aslibra_auth $1; } log_format main$proxy_add_x_forwarded_for - $remote_user [$time_local] $request $status $by...

  • [nginx] nginx 访问日志 access.log 添加设置cookie记录 日期:2016-02-22 19:50:18 点击:84 好评:0

    需求,把cookie记录到访问日志里,供数据挖掘部门统计用户行为。 nginx 配置文件添加如下,这是虚拟主机的配置 server { # 在server块添加以下代码 # 设置默认值 set $uid - ; # 存在值则赋值 if ( $http_cookie ~* at_uvid=(\S+)(;.*|$) ){ set $uid $1 ; }...

  • [nginx] nginx日志配置(cookie,header,post等字段记录) 日期:2016-02-22 19:49:33 点击:152 好评:0

    如果你对nginx日志格式,有这样那样的要求。 那么就看一下说明吧。 $remote_addr The remote host$remote_user The authenticated user ( if any)$time_local The time of the access$request The first line of the request$status The status of the reque...

  • [nginx] nginx日志切割和记录cookie 日期:2016-02-22 19:48:49 点击:66 好评:0

    #!/bin/bash #日志文件存放目录 logs_path=/data/Service/nginx/logs #日志文件的名字,多个需要空格隔开 logs_names=(dm_access) mkdir-p${logs_path}/$(date-dyesterday+%Y)/$(date-dyesterday+%m)/ num=${#logs_names[@]} for((i=0;inum;i++)) do #chown...

  • [nginx] nginx设置ssl反向代理 日期:2016-02-22 15:33:14 点击:154 好评:0

    Nginx的反向代理通常用来映射内网中提供的Apache、IIS、Lighttpd服务,以实现负载均衡;同时,由于动态服务程序运行在内网,服务器的整体安全性也有所提高,那么怎样用nginx设置SSL的反向代理呢? 使用nginx设置SSL的优点不少: 易用性:nginx安装、升级简单...

  • [nginx] nginx实现ssl反向代理实战 日期:2016-02-22 15:32:33 点击:120 好评:0

    登录认证account.free4lab.com需要提供ssl登录接口,ssl的原理看这篇博文,因为前面有反向代理nginx,所以这个需求就放在nginx实现了,否则可以放在web容器(jetty,tomcat)上实现,如何在容器实现ssl部署可以看之前的一篇博文linux tomcat配置https 步骤: 1....

  • [nginx] Nginx 配置SSL并且完成80到8080的反向代理 日期:2016-02-22 15:31:36 点击:160 好评:0

    server { listen 80; server_name coddict.tk; rewrite ^(.*)$ https://$host$1 permanent; } server { listen 443; server_name coddict.tk; ssl on; ssl_certificate /etc/nginx/ssl/nginx.crt; ssl_certificate_key /etc/nginx/ssl/nginx.key; location /...

  • [nginx] Nginx反向代理图片总结 日期:2016-02-22 12:25:49 点击:98 好评:0

    配置需求: 内网192.168.80.205的机器上部署了一个Web项目,下文称web, url为http://192.168.80.205:8082。 并且使用nginx访问图片,url格式为: http://192.168.80.205:81/1.jpg 现需从外网访问,固定的外网ip为:123.3.2.1,并在此外网服务器使用nginx的反...

  • 首页
  • 上一页
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 下一页
  • 末页
  • 2012009
栏目列表
推荐内容