SHARE
TWEET

Untitled

a guest May 14th, 2014 450 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.     listen *:443 ssl;
  3.     ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
  4.     ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
  5.     server_name cp.domain.com;
  6.  
  7.     access_log /var/log/nginx/comdomaincp.access.log;
  8.     error_log /var/log/nginx/comdomaincp.error.log;
  9.  
  10.     root /srv/www/com.domain.cp;
  11.     index index.html index.htm index.php;
  12.  
  13.     client_max_body_size 20m;
  14.  
  15.    
  16.    
  17.     location  /ajenti {
  18.        
  19.         rewrite (/ajenti)$ / break;
  20.         rewrite /ajenti/(.*) /$1 break;
  21.  
  22.         proxy_pass  http://127.0.0.1:8000;
  23.         proxy_redirect / /ajenti/;
  24.         proxy_set_header Host $host;
  25.         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  26.        
  27.     }
  28.  
  29. }
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