SHARE
TWEET

nginx user directory config

6697 Dec 23rd, 2019 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.          location ~ ^/~(.+?)(/.*)?$ {
  2.                 alias /home/$1/public_html$2;
  3.                 index index.html index.htm;
  4.                 autoindex off;
  5.             gzip             on;
  6.         gzip_min_length  1000;
  7.             gzip_proxied     expired no-cache no-store private auth;
  8.             gzip_types       text/plain application/xml;
  9.             gzip_disable     "MSIE [1-6]\.";
  10.    
  11.             expires       5m;
  12.             add_header    Cache-Control  private;
  13.         }
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