add static server config

This commit is contained in:
Aborn Jiang 2022-05-16 11:54:04 +08:00
parent ca78a30375
commit f46d743f97
1 changed files with 18 additions and 0 deletions

18
nginx/config/s.conf Normal file
View File

@ -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;
}
}