본문 바로가기
linux

Linux - Apache 가상 호스트(Virtual host)

by hj_it 2024. 3. 25.

1. ~.192 서버에서 ip 주소를 하나 더 생성

 

2. /etc/sysconfig/network-scripts/ifcfg-ens32:0에서 name, device, ip 수정

 

3. ifconfig로 ip 확인

 

4. ~.191 서버에서 /etc/named.conf  파일에 도메인 작성

 

5. 두 개의 zone파일 각각 생성

 

6. systemctl restart named.service 후 host 명령으로 각 도메인 주소 연결 확인

 

7. ~.192 서버에서 /home/httpd/에 sec, itc 디렉터리 생성 후 html 파일 각각 생성

 

8. /app/apache/conf/httpd.conf 파일에 Virtual host 부분 수정

 

9. apache 재실행 후 접속

'linux' 카테고리의 다른 글

Linux - Samba  (0) 2024.03.25
Linux - 가상 호스트(도메인 기반)  (0) 2024.03.25
Linux - Apache Webmaster 생성  (0) 2024.03.25
Linux - RPM과 YUM  (0) 2024.03.25
Linux - 파일시스템과 파티션  (0) 2024.03.04