blog.lazkani.io/nginx/default.conf.template

20 lines
356 B
Text

server {
listen ${NGINX_BLOG_PORT};
server_name localhost;
root /usr/share/nginx/html/${NGINX_BLOG_HOST};
error_page 404 /not-found/index.html;
error_page 403 /forbidden/index.html;
location / {
index index.html;
try_files $uri $uri/ =404;
}
location ^~ /nginx/ {
return 403;
}
}