6697

nginx user directory config

Dec 23rd, 2019
455
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×