Added nginx.conf
parent
e4d1118f0f
commit
481baf1a9f
@ -0,0 +1,24 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name your_domain.com;
|
||||
|
||||
root /var/www;
|
||||
|
||||
# Main location block
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# User directories
|
||||
location ~ ^/~(.+?)(/.*)?$ {
|
||||
alias /var/www/$1$2;
|
||||
autoindex on;
|
||||
index index.html;
|
||||
try_files $uri $uri/ /~$1/index.html;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
location = /404.html {
|
||||
internal;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue