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

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

· 9년 전 · 226

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

댓글 작성

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

로그인하기

게시글 목록

번호 제목
12211
12210
12208
12207
12206
12205
20383
12204
12203
12202
12201
12199
350
12197
12196
12195
12193
12190
12189
12188
12187
12186
12185
12183
12182