33 lines
802 B
Nginx Configuration File
33 lines
802 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name motherfuckingblog.com;
|
|
root /usr/share/nginx/html/prod;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Handle Hugo's(Not necessary with Jekyll) pretty URLs
|
|
#location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
|
# expires 1y;
|
|
# add_header Cache-Control "public, immutable";
|
|
#}
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name dev.motherfuckingblog.com;
|
|
root /usr/share/nginx/html/dev;
|
|
index index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Handle pretty URLs
|
|
#location ~* \.(css|js|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
|
# expires 1y;
|
|
# add_header Cache-Control "public, immutable";
|
|
#}
|
|
}
|