테스트 사이트 - 개발 중인 베타 버전입니다

이름기반 가상호스트 설정관련 입니다.

· 9년 전 · 231

아래 내용이 저의 아파치 2.2.4 서버에 버츄얼호스트 설정한 내용입니다..^^
이름기반 버츄얼호스트 설정입니다..
참고하세요...^^

#NameVirtualHost 고정아이피:80  바로 아래부분 설정내용.

NameVirtualHost 123.456.789.123:80

#
# 기본 홈
<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot D:/절대경로/폴더명
    ServerName localhost
    ServerAlias localhost
    ErrorLog logs/localhost-error_log
    CustomLog logs/localhost-access_log common
</VirtualHost>
#
# 추가 1
<VirtualHost *:80>
    ServerAdmin webmaster@도메인
    DocumentRoot D:/절대경로/폴더명
    ServerName 도메인명
    ErrorLog logs/도메인명-error_log
    CustomLog logs/도메인명-access_log common
</VirtualHost>
#
#

이후는 추가1을 복사하여 계속 추가하면서 경로와 도메인명을 맞춰주시면 됩니다...^^

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

게시글 목록

번호 제목
12487
12486
380
12484
12483
376
12482
12481
12479
12478
12477
12476
12475
12474
12473
12472
12471
12470
12469
371
12468
12467
12466
12465
12464