서버 이전 안내 (2)

nginx 설정 파일에서 정적 파일 불러오기 경로를 이전 서버의 경로로 놔두는 바람에 403 오류가 뜨던 문제를 해결했습니다.

요즘 우분투에서는 home/{username} 경로를 다른 사용자는 접근할 수 없게 되어 있다는 사실 알고 계셨나요? 정적 파일 경로에 chown -R :www-data ./static도 해 보고 chmod -R 755 ./static도 해 봤는데 nginxwww-data 유저가 접근을 못 하더라고요. 어떻게 고치는지는 몰라서 그냥 정적 파일을 전부 var/www로 옮겼습니다.


Daniel Soohan Park (@heartade)

Follow this blog at Fediverse: @heartade@blog.heartade.dev

Follow my shorter shoutouts at Fediverse: @heartade@social.silicon.moe