개발자의 끄적끄적

[linux] centos7 servertokens 설정 [펌] 본문

개발/linux

[linux] centos7 servertokens 설정 [펌]

효벨 2020. 3. 22. 01:00
728x90
반응형

[linux] centos7 servertokens 설정 [펌]

 

출처 : http://zetawiki.com/wiki/CentOS


ServerTokens prod

ServerSignature Off



vi /etc/httpd/httpd.conf #위에 넣어주고 저장



curl -I http://localhost #확인



    EnableMMAP Off

    EnableSendfile Off

 

위 내용 보시면 아시겠지만

 

centos7 apache 는 ServerTokens 값이 없습니다.

 

그래서 httpd.conf 최 상단에

 

ServerTokens prod

ServerSignature Off


위 2줄을 추가하시면 됩니다.

 

 

 

출처 : https://pstree.tistory.com/97

반응형
Comments