Print
카테고리: [ Apache HTTP Server ]
조회수: 1167

 

 Apache 설치하여 이용 시, 리눅스에서는 80, 443 은 Root로만 port를 사용할 수 있다.

 그러나 아래와 같이 set cap 설정을 프로세스에 해주면, Root 가 아니라도 port를 Open할 수 있다.

 - 설정 방법

 sudo setcap 'cap_net_bind_service=+ep' /{Apache경로}/bin/httpd

 sudo setcap 'cap_net_bind_service=+ep' /{Apache경로}/bin/apachectl