Last active
August 29, 2015 14:12
-
-
Save tonicmuroq/e1870c7024a4d4bd097d to your computer and use it in GitHub Desktop.
Revisions
-
tonicmuroq revised this gist
Dec 25, 2014 . No changes.There are no files selected for viewing
-
tonicmuroq revised this gist
Dec 25, 2014 . No changes.There are no files selected for viewing
-
tonicmuroq created this gist
Dec 25, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,47 @@ user nginx; worker_processes 24; error_log /mnt/mfs/logs/nbe/master/error-kili10.log warn; pid /var/run/nginx.pid; events { worker_connections 102400; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format nbe '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; sendfile on; client_max_body_size 500m; client_body_buffer_size 256k; client_header_timeout 3m; client_body_timeout 3m; send_timeout 3m; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; underscores_in_headers on; ignore_invalid_headers off; gzip on; map $http_upgrade $connection_upgrade { default upgrade; '' close; } include /etc/nginx/conf.d/*.conf; server { listen 80 default_server; charset utf-8; deny all; } } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,56 @@ upstream ipservice { server 10.1.201.46:49004 max_fails=1 fail_timeout=1s; } server { listen 80; server_name ipservice.intra.hunantv.com; underscores_in_headers on; ignore_invalid_headers off; # error_page 400 402 403 404 /40x.html; # error_page 500 502 503 504 /50x.html; rewrite ^/(.*)/favicon.ico$ /favicon.ico last; access_log /mnt/mfs/logs/nbe/master/ipservice-access.log nbe; error_log /mnt/mfs/logs/nbe/master/ipservice-error.log error; location ~* (favicon.ico) { log_not_found off; break; } location ~ \.(js|css|jpg|png|eot|ttf|woff|svg)$ { root /var/lib/dot/static/ipservice/49fea0f; } # location ~* (40x.html|50x.html)$ { # internal; # root /data/etc/nginx/html/; # } location ~ ^/ { proxy_set_header X-NBE-APPNAME ipservice; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_set_header REMOTE-HOST $remote_addr; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; proxy_buffer_size 256k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; proxy_temp_file_write_size 256k; proxy_next_upstream error timeout invalid_header http_500 http_503 http_404; proxy_pass http://ipservice; } }