Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Elasticsearch
- G-suite
- application security
- 한글가이드
- proxycfg
- elastic stack
- hardening
- miniconda
- centos 8
- XCP-ng
- PlayBook
- pfsense
- ansible
- ELASTIC
- docker
- Kibana server is not ready yet
- bash
- Kibana
- 보안양파
- endpoint security
- xe guest utilities
- freebsd
- 로그인불가
- Windows
- macos
- ssh key 배포
- Proxy
- GitLab
- x-pack
Archives
- Today
- Total
선 밖에 선 자유인
웹 서버 보안 설정 변경 (간단히) 본문
php.ini, httpd.conf 가 /etc 하위에 존재할 때 (/etc/php.ini, /etc/httpd/conf/httpd.conf)
find /etc -name php.ini -exec perl -pi -e 's/expose_php = On/expose_php = Off/g' {} \;
find /etc -name httpd.conf -exec perl -pi -e 's/ServerSignature On/ServerSignature Off/g' {} \;
find /etc -name httpd.conf -exec perl -pi -e 's/ServerTokens OS/ServerTokens Prod/g' {} \;
or
find /etc -name php.ini -exec sed -i 's/expose_php = On/expose_php = Off/g' {} \;
find /etc -name httpd.conf -exec sed -i 's/ServerSignature On/ServerSignature Off/g' {} \;
find /etc -name httpd.conf -exec sed -i 's/ServerTokens OS/ServerTokens Prod/g' {} \;
.. 기타 수정 후
kill -HUP <PID>
Comments