2021-07-04 08:23:45 +00:00
|
|
|
server {
|
|
|
|
|
2023-07-01 15:47:58 +00:00
|
|
|
listen ${NGINX_PORT};
|
2021-07-04 08:23:45 +00:00
|
|
|
server_name localhost;
|
|
|
|
|
2023-07-01 15:47:58 +00:00
|
|
|
root /usr/share/nginx/html/blog;
|
2021-07-04 08:23:45 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|