본문 바로가기
IT 개발, develop/network

nginx proxy server permission denied 발생 시

by newly everyday 2019. 7. 5.

nginx proxy server permission 발생 시 

http_port_t 에 명시된 port를 사용해야 한다. 

 

 

참고)

https://www.nginx.com/blog/using-nginx-plus-with-selinux/

 

만약, nginx 의 error 로그를 살펴봤을 때

아래와 같이 (13: Permission denied) while connection to upstream 이 나왔을 경우 

 

#getsebool -a | grep http

httpd_can_network_connect -->off 였는데 on으로 바꿔주었다. 

#setsebool httpd_can_network_connect on

#setsebool httpd_can_network_connect on -P

 

#getsebool -a | grep http

 

 

 

댓글