add static server config
This commit is contained in:
parent
ca78a30375
commit
f46d743f97
|
@ -0,0 +1,18 @@
|
||||||
|
## static file server config
|
||||||
|
server {
|
||||||
|
server_name your.server.domain; # change to your domain
|
||||||
|
server_tokens off;
|
||||||
|
server_name_in_redirect off;
|
||||||
|
|
||||||
|
root /home/; # root path
|
||||||
|
access_log /path/to/static.access.log combined; # log file path
|
||||||
|
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
}
|
||||||
|
|
||||||
|
location = /50x.html {
|
||||||
|
root /var/www/nginx-default;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue