2017-02-20

  1 #user nobody;
  2 worker_processes 1;
  3 
  4 #error_log logs/error.log;
  5 #error_log logs/error.log notice;
  6 #error_log logs/error.log info;
  7 
  8 #pid logs/nginx.pid;
  9 
 10 
 11 events {
 12 worker_connections 1024;
 13 }
 14 
 15 
 16 http {
 17 include mime.types;
 18 default_type application/octet-stream;
 19 
 20 #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
 21 # '$status $body_bytes_sent "$http_referer" '
 22 # '"$http_user_agent" "$http_x_forwarded_for"';
 23 
 24 #access_log logs/access.log main;
 25 
 26 sendfile on;
 27 #tcp_nopush on;
 28 
 29 #keepalive_timeout 0;
 30 keepalive_timeout 65;
 31 
 32 #gzip on;
 33 #
 34 #
 35 server { 
 36 server_name vrspring.com; 
 37 listen 80; 
 38 access_log off; 
 39 index index.html index.htm index.jsp;
 40 
 41 location / { 
 42 client_max_body_size 100m; 
 43 client_body_buffer_size 128k; 
 44 proxy_send_timeout 300; 
 45 proxy_read_timeout 300; 
 46 proxy_buffer_size 4k; 
 47 proxy_buffers 16 32k; 
 48 proxy_busy_buffers_size 64k; 
 49 proxy_temp_file_write_size 64k; 
 50 proxy_connect_timeout 30s; 
 51 proxy_pass http://localhost:8089; 
 52 proxy_set_header Host $host; 
 53 proxy_set_header X-Real-IP $remote_addr; 
 54 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
 55 } 
 56 }
 57 
 58 server { 
 59 server_name m.vrspring.com; 
 60 listen 80; 
 61 access_log off; 
 62 index index.html index.htm index.jsp;
 63 
 64 location / { 
 65 client_max_body_size 100m; 
 66 client_body_buffer_size 128k; 
 67 proxy_send_timeout 300; 
 68 proxy_read_timeout 300; 
 69 proxy_buffer_size 4k; 
 70 proxy_buffers 16 32k; 
 71 proxy_busy_buffers_size 64k; 
 72 proxy_temp_file_write_size 64k; 
 73 proxy_connect_timeout 30s; 
 74 proxy_pass http://localhost:8090; 
 75 proxy_set_header Host $host; 
 76 proxy_set_header X-Real-IP $remote_addr; 
 77 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 
 78 } 
 79 }
 80 
 81 
 82 # server {
 83 # listen 80;
 84 # server_name localhost;
 85 
 86 #charset koi8-r;
 87 
 88 #access_log logs/host.access.log main;
 89 
 90 # location / {
 91 # root html;
 92 # index index.html index.htm;
 93 # }
 94 
 95 #error_page 404 /404.html;
 96 
 97 # redirect server error pages to the static page /50x.html
 98 #
 99 # error_page 500 502 503 504 /50x.html;
100 # location = /50x.html {
101 # root html;
102 # }
103 
104 # proxy the PHP scripts to Apache listening on 127.0.0.1:80
105 #
106 #location ~ \.php$ {
107 # proxy_pass http://127.0.0.1;
108 #}
109 
110 # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
111 #
112 #location ~ \.php$ {
113 # root html;
114 # fastcgi_pass 127.0.0.1:9000;
115 # fastcgi_index index.php;
116 # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
117 # include fastcgi_params;
118 #}
119 
120 # deny access to .htaccess files, if Apache's document root
121 # concurs with nginx's one
122 #
123 #location ~ /\.ht {
124 # deny all;
125 #}
126 # }
127 
128 
129 # another virtual host using mix of IP-, name-, and port-based configuration
130 #
131 #server {
132 # listen 8000;
133 # listen somename:8080;
134 # server_name somename alias another.alias;
135 
136 # location / {
137 # root html;
138 # index index.html index.htm;
139 # }
140 #}
141 
142 
143 # HTTPS server
144 #
145 #server {
146 # listen 443 ssl;
147 # server_name localhost;
148 
149 # ssl_certificate cert.pem;
150 # ssl_certificate_key cert.key;
151 
152 # ssl_session_cache shared:SSL:1m;
153 # ssl_session_timeout 5m;
154 
155 # ssl_ciphers HIGH:!aNULL:!MD5;
156 # ssl_prefer_server_ciphers on;
157 
158 # location / {
159 # root html;
160 # index index.html index.htm;
161 # }
162 #}
163 
164 }

 

posted @ 2017-02-20 08:40 飞机上挂热水壶 阅读(4456) 评论(0) 推荐(0)
摘要: 转载 1、最小化安装CENTOS7 2、更新源: yum update reboot 3.安装扩展源: yum install epel-release 4.安装工具软件: yum install wget unzip unrar 5.安装PHP7.0扩展源: wget http://rpms.fa 阅读全文
posted @ 2016-02-23 15:49 飞机上挂热水壶 阅读(519) 评论(0) 推荐(0)
摘要: package xie.struct;public class LinkedList { public static void main(String[] args) { LinkedList list=new LinkedList(); for(int i=... 阅读全文
posted @ 2014-10-27 18:06 飞机上挂热水壶 阅读(230) 评论(0) 推荐(0)
摘要: package xie.struct;import java.util.ArrayList;public class Sort> { public static final int QuickSort = 1; public static final int SelectMin = 4;... 阅读全文
posted @ 2014-10-22 17:29 飞机上挂热水壶 阅读(219) 评论(0) 推荐(0)
摘要: public class MinHeap { /* * * Top K个问题,求给定数据中最小的K个数 * * 最小堆解决:堆顶元素为堆中最大元素 * * * */ private int MAX_DATA = 1... 阅读全文
posted @ 2014-10-21 17:19 飞机上挂热水壶 阅读(265) 评论(0) 推荐(0)
摘要: 用Powshell 脚本批量完成,代码比较简单,出生日期,图片我都没有改,图片用于测试,附件。cls;$path = Split-Path -Parent $MyInvocation.MyCommand.Definition$file=Get-Content "$path\测试账户" -Encodi... 阅读全文
posted @ 2014-10-14 09:28 飞机上挂热水壶 阅读(1097) 评论(0) 推荐(0)
摘要: 经过一段时间的研究和学习,大致了解了DHT网络的一些信息,大部分还是参会别人的相关代码,一方面主要对DHT爬虫原理感兴趣,最主要的是为了学习python,大部分是别人的东西原理还是引用别人的吧DHT网络爬虫的实现 | 学步园http://www.xuebuyuan.com/1287052.htmlD... 阅读全文
posted @ 2014-05-14 11:03 飞机上挂热水壶 阅读(7247) 评论(1) 推荐(1)
摘要: 一直以来写代码都是用的EditPlus,也尝试了一段时间学习Vim这神器,后来因为使用不习惯还是改回了原来的EditPlus。前几天朋友想我推荐了Sublime Text 2,喜欢尝鲜我的肯定是不会放过,用过之后你会深深的被她所吸引。 Sublime Text 2,它绿色小巧并且速度非常快,携带方便,跨平台支持Windows/MAC/linux,支持32位和64位系统,支持各种编程语言的语法高亮、代码补全等,还有这很多其它编辑器没有的超酷的特性,让你对她爱不释手…… Sublime Text 2也是一款收费软件,个人授权费用59美刀,死贵死鬼的。但作者非常厚道为用户提供了免费无限制无限期的.. 阅读全文
posted @ 2013-12-17 10:53 飞机上挂热水壶 阅读(393) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示