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

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

· 9년 전 · 232

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

댓글 작성

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

로그인하기

게시글 목록

번호 제목
12281
20386
12280
12279
12278
12277
12276
12275
12274
12273
12272
12260
360
12258
12257
12256
12255
12253
12252
12251
12250
12249
12248
12247
12246