nginx 재시작시 restart 하지 말고 ..
ps aux | egrep '(PID|nginx)' 로 mast4er, woker process 확인
하고 난뒤
kill -HUP 4034 로 nginx.conf 를 새롭게 읽어들이도록 한다.
nginx.conf 참고자료
ps aux | egrep '(PID|nginx)' 로 mast4er, woker process 확인
하고 난뒤
kill -HUP 4034 로 nginx.conf 를 새롭게 읽어들이도록 한다.
nginx.conf 참고자료
location = / {http://wiki.nginx.org/NginxHttpCoreModule
# matches the query / only.
[ configuration A ]
}
location / {
# matches any query, since all queries begin with /, but regular
# expressions and any longer conventional blocks will be
# matched first.
[ configuration B ]
}
location ^~ /images/ {
# matches any query beginning with /images/ and halts searching,
# so regular expressions will not be checked.
[ configuration C ]
}
location ~* \.(gif|jpg|jpeg)$ {
# matches any request ending in gif, jpg, or jpeg. However, all
# requests to the /images/ directory will be handled by
# Configuration C.
[ configuration D ]
}
TAG nginx