daily pastebin goal
28%
SHARE
TWEET

Untitled

tetramin Jan 27th, 2016 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Конфиг фронтенда:
  2.  
  3. server {
  4.     listen xx.xx.xx.xx:80;
  5.     server_name *.example.ru;
  6.  
  7.     access_log off;
  8.     error_log /var/log/nginx/example.ru.error.log crit;
  9.  
  10.     location / {
  11.         client_max_body_size 32m;
  12.         proxy_max_temp_file_size 0;
  13.  
  14.         proxy_pass http://11.0.0.24:80;
  15.    
  16.         proxy_set_header    X-Real-IP       $remote_addr;
  17.         proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
  18.         proxy_set_header    Host            $http_host;
  19.         proxy_set_header    X-NginX-Proxy   true;
  20.    
  21.         proxy_redirect off;
  22.         port_in_redirect off;
  23.     }  
  24. }
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