SHARE
TWEET

Untitled

a guest Dec 26th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. http {
  2.     # ...
  3.     upstream backend {
  4.        server 127.0.0.1:8080;
  5.     }
  6.  
  7.     server {
  8.         listen 8085;
  9.         server_name nomatter.com;
  10.  
  11.         root /var/www/myapp/html;
  12.        
  13.         location ~* .(css|js|jpeg|jpg|png)$ {
  14.         expires max;
  15.     }
  16.  
  17.        
  18.         location /static/  {
  19.             alias /path/to/static/;
  20.         }
  21.  
  22.         location / {
  23.             proxy_pass backend;
  24.            
  25.         }
  26.     }
  27. }
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