Advertisement
6697

nginx user directory config

Dec 23rd, 2019
782
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.46 KB | None | 0 0
  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.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement