nginx.conf
server {
listen 80;
server_name example.com;
root /var/www/html/;
index index.html;
access_log /var/log/nginx/access_log hogehoge;
error_log /var/log/nginx/error_log error;
try_files $uri $uri/ /hoge.html;
}
$ cat hoge.html
hoge dayo
$
$ curl http://example.com/hogehogehogeeee
hoge dayo
$
$ tail access_log
"GET /hogehogehogeeee HTTP/1.1" 200 10 "-" "curl ~
わかりやすかったです。
ほんとに有難いです。