2021-06-08 16:50:52 +09:00
|
|
|
worker_processes auto;
|
|
|
|
|
|
|
|
error_log /var/log/nginx/error.log warn;
|
|
|
|
pid /var/run/nginx.pid;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
access_log /var/log/nginx/access.log;
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
keepalive_timeout 65;
|
|
|
|
|
2022-02-05 13:41:25 +09:00
|
|
|
server {
|
2022-03-04 15:03:48 +09:00
|
|
|
server_name uechi.io;
|
2021-06-08 16:50:52 +09:00
|
|
|
listen 80;
|
|
|
|
|
|
|
|
root /var/www/html;
|
|
|
|
error_page 404 /404.html;
|
|
|
|
|
|
|
|
location /404.html {
|
|
|
|
internal;
|
|
|
|
}
|
|
|
|
|
|
|
|
location = /robots.txt {
|
|
|
|
allow all;
|
|
|
|
log_not_found off;
|
|
|
|
access_log off;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
index index.html;
|
|
|
|
try_files $uri $uri.html $uri/index.html =404;
|
|
|
|
}
|
|
|
|
|
|
|
|
location = / {
|
|
|
|
if ($http_user_agent ~ curl) {
|
|
|
|
rewrite / /TERMINAL last;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-03-04 15:03:48 +09:00
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name www.uechi.io;
|
2022-06-02 19:15:55 +09:00
|
|
|
return 301 $scheme://uechi.io$request_uri;
|
2022-03-04 15:03:48 +09:00
|
|
|
}
|
2021-06-08 16:50:52 +09:00
|
|
|
}
|