yumyum
[Linux] ACL 본문
# yum -y install httpd -> httpd 깔아주기
# rpm -qa | grep httpd -> httpd 깔아준거 확인
# systemctl restart httpd
# systemctl enable httpd
# systemctl status httpd
#systemctl stop firewalld
# systemctl disable firewalld
#l ls /etc/httpd
# ls -l /var/www
# lsof -i tcp:80
# httpd -v -> 버전 확인하기
# ls /var/log/httpd
access_log error_log ssl_access_log ssl_error_log ssl_request_log
# vim /etc/httpd/conf/httpd.conf
=> AllowOverride를 All로 바꿔주기
ACL 해주기 -> 192.168.111.120 (록키9 서버) 에서만 접속 안되게 설정
나와서
# systemctl restart httpd 해주기
# cd /var/www/html 로 이동
# vim index.html 로 웹페이지 수정해주기
만든대로 보이는 페이지 모습
=> 192.168.111.130 ip인 우분투에서는 접속이 됨
=> 192.168.111.120 ip인 rocky9에서는 접속이 안됨
________________________________________________________
=>특정 ip만 허용하는 방식
'ICT기반 클라우드 네트워크 해킹 침해대응전문가 > Linux' 카테고리의 다른 글
[Linux] 웹 페이지 인증 (basic, digest) (0) | 2023.09.06 |
---|---|
[Linux] php 설정파일, CGI (0) | 2023.09.06 |
[Linux] XE OWNCLOUD WORDPRESS (0) | 2023.09.05 |
[Linux] APM (0) | 2023.09.04 |
[Linux] telnet (0) | 2023.09.04 |