SHARE
TWEET

Untitled

a guest Apr 26th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. user www-data;
  2. worker_processes auto;
  3. pid /run/nginx.pid;
  4. include /etc/nginx/modules-enabled/*.conf;
  5.  
  6. events {
  7.         worker_connections 768;
  8.         multi_accept on;
  9. }
  10.  
  11. http {
  12.  
  13. server {
  14. listen 80;
  15. server_name name.site1.ru;
  16.         location / {
  17.                 proxy_pass http://10.0.1.100/;
  18.                 proxy_redirect off;
  19.                 proxy_set_header Host $host;
  20.                 proxy_set_header X-Real-IP $remote_addr;
  21.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  22.                 client_max_body_size 512G;
  23.         }
  24. }
  25.  
  26. server {
  27. listen 80;
  28. server_name name.site1.ru;
  29.         location / {
  30.                 proxy_pass http://10.0.1.100/;
  31.                 proxy_redirect off;
  32.                 proxy_set_header Host $host;
  33.                 proxy_set_header X-Real-IP $remote_addr;
  34.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  35.                 client_max_body_size 512G;
  36.         }
  37. }
  38. server {
  39. listen 443;
  40. server_name name.site1.ru;
  41.         location / {
  42.                 proxy_pass https://10.0.1.100/;
  43.                 proxy_set_header Host $host;
  44.                 proxy_set_header X-Real-IP $remote_addr;
  45.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  46.                 proxy_set_header X-Forwarded-Proto $scheme;
  47.                 client_max_body_size 512G;
  48.         }
  49. }
  50. server {
  51. listen 80;
  52. server_name name.2site.ru;
  53.         location / {
  54.                 proxy_pass http://10.0.1.200/;
  55.                 proxy_redirect off;
  56.                 proxy_set_header Host $host;
  57.                 proxy_set_header X-Real-IP $remote_addr;
  58.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  59.                 client_max_body_size 512G;
  60.         }
  61. }
  62. server {
  63. listen 443;
  64. server_name name.2site.ru;
  65.         location / {
  66.                 proxy_pass https://10.0.1.200/;
  67.                 proxy_redirect off;
  68.                 proxy_set_header Host $host;
  69.                 proxy_set_header X-Real-IP $remote_addr;
  70.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  71.                 client_max_body_size 512G;
  72.         }
  73. }
  74.  
  75. }
  76.  
  77. # configuration file /etc/nginx/modules-enabled/50-mod-http-auth-pam.conf:
  78. load_module modules/ngx_http_auth_pam_module.so;
  79.  
  80. # configuration file /etc/nginx/modules-enabled/50-mod-http-dav-ext.conf:
  81. load_module modules/ngx_http_dav_ext_module.so;
  82.  
  83. # configuration file /etc/nginx/modules-enabled/50-mod-http-echo.conf:
  84. load_module modules/ngx_http_echo_module.so;
  85.  
  86. # configuration file /etc/nginx/modules-enabled/50-mod-http-geoip.conf:
  87. load_module modules/ngx_http_geoip_module.so;
  88.  
  89. # configuration file /etc/nginx/modules-enabled/50-mod-http-image-filter.conf:
  90. load_module modules/ngx_http_image_filter_module.so;
  91.  
  92. # configuration file /etc/nginx/modules-enabled/50-mod-http-subs-filter.conf:
  93. load_module modules/ngx_http_subs_filter_module.so;
  94.  
  95. # configuration file /etc/nginx/modules-enabled/50-mod-http-upstream-fair.conf:
  96. load_module modules/ngx_http_upstream_fair_module.so;
  97.  
  98. # configuration file /etc/nginx/modules-enabled/50-mod-http-xslt-filter.conf:
  99. load_module modules/ngx_http_xslt_filter_module.so;
  100.  
  101. # configuration file /etc/nginx/modules-enabled/50-mod-mail.conf:
  102. load_module modules/ngx_mail_module.so;
  103.  
  104. # configuration file /etc/nginx/modules-enabled/50-mod-stream.conf:
  105. load_module modules/ngx_stream_module.so;
  106.  
  107. nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  108. nginx: configuration file /etc/nginx/nginx.conf test is successful
  109. nginx version: nginx/1.10.3
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top