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

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

· 9년 전 · 228

아래 내용이 저의 아파치 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을 복사하여 계속 추가하면서 경로와 도메인명을 맞춰주시면 됩니다...^^

댓글 작성

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

로그인하기

게시글 목록

번호 제목
12143
12141
12140
12139
12131
20381
12130
12129
12128
12127
12126
12122
12121
12120
346
12117
12116
12114
345
344
343
12113
12102
12101
12100