Advertisement
Guest User

Untitled

a guest
Dec 29th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.67 KB | None | 0 0
  1. server {
  2.         server_name tlight buzzcraft cpa;
  3.         root /home/a/tlight;
  4.  
  5.         location /static/ {
  6.                 try_files /www$uri @tlight;
  7.         }
  8.  
  9.         location /media/ {
  10.                 root /home/a/tlight;
  11.         }
  12.  
  13.         location / {
  14.                 try_files $uri @tlight;
  15.         }
  16.  
  17.         location @tlight {
  18.                 proxy_pass http://127.0.0.1:8030;
  19.                 proxy_set_header X-Forwarded-Proto $scheme;
  20.                 proxy_set_header X-Real-IP $remote_addr;
  21.                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  22.                 proxy_set_header Host $host;
  23.         }
  24.  
  25.         access_log off;
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement