nginx

対象ファイル:nginx.conf
修正前
location/{
root html;
index index.html index.htm;
}

修正後
location/ ...

nginx

サンプル:
server {
listen 443;
server_name abc.arkgame.com;

root/usr/share/nginx/www;
index index.p ...

nginx

location/{
if ($uri ~ \.(gif|jpg|png|ico|bmp)$) {
access_log off;
}
//some code
}

nginx

設定内容:
# !/usr/bin/bash
log_dir=”/usr/local/nginx/logs”
back_log_dir=”/datadisk/nginx_lo ...

nginx

設定内容:

server {
listen 80;
listen :80;

server_name www.example.com;

return 301
}
ser ...

nginx

サンプル:
server {
listen 80;
server_name sample.com;
rewrite ^ permanent;
}