add nginx configuration
This commit is contained in:
parent
e8b9c8625d
commit
26df1655e4
1 changed files with 14 additions and 0 deletions
14
nginx.conf
Normal file
14
nginx.conf
Normal file
|
@ -0,0 +1,14 @@
|
|||
server {
|
||||
server_name gyiwr.tf;
|
||||
root /var/www/gyiwr;
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location ~* \.(png|jpg|jpeg|gif)$ {
|
||||
expires 365d;
|
||||
add_header Cache-Control "public, no-transform";
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue