← 문제 라이브러리
Linux 입문 3분

nginx 403과 (13: Permission denied): 새로 올린 파일만 열리지 않음

검수된 문제무료
시나리오

새로 올린 index.html만 403 Forbidden이 나고, nginx error.log에 권한 오류가 남습니다.

단서
error.log와 파일 권한
open() "/var/www/site/index.html" failed (13: Permission denied)
$ ls -l /var/www/site/index.html
-rw------- 1 deploy deploy 5120 Sep 29 10:02 index.html
# nginx 는 www-data 계정으로 실행 중