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

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

· 9년 전 · 227

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

댓글 작성

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

로그인하기

게시글 목록

번호 제목
12181
12180
12179
348
12178
12177
12176
12175
12174
12173
12161
12160
12159
12158
12157
12156
12155
12154
12151
12150
12149
12148
12147
12146
12144