23 lines
406 B
Nginx Configuration File
23 lines
406 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name pim.kun.is;
|
|
index index.html index.htm;
|
|
root /var/www/blog;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
|
|
expires 30d;
|
|
add_header Pragma public;
|
|
add_header Cache-Control "public";
|
|
}
|
|
|
|
error_page 404 /404.html;
|
|
}
|
|
|
|
server {
|
|
server_name pim.kunis.nl;
|
|
return 301 https://pim.kun.is$request_uri;
|
|
}
|