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
- endpoint security
- Kibana server is not ready yet
- 한글가이드
- freebsd
- application security
- bash
- Kibana
- docker
- Windows
- PlayBook
- ELASTIC
- Elasticsearch
- 보안양파
- proxycfg
- miniconda
- x-pack
- centos 8
- G-suite
- 로그인불가
- elastic stack
- macos
- pfsense
- GitLab
- ssh key 배포
- Proxy
- xe guest utilities
- hardening
- XCP-ng
- ansible
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