요

apache2 가상호스트 설정방법

· 2007-09-27 (목) 13:59:37 · 2066

페도라코어6에서 아래와 같이 설정하시면됩니다.

vi /usr/local/apache2/conf/extra/httpd-vhosts.conf

예>
<VirtualHost *>
    ServerAdmin [email protected]
    DocumentRoot /home/www
    ServerName homhard.com
    ServerAlias www.homhard.com
    ErrorLog logs/homhard.com-error_log
    CustomLog logs/homhard.com-access_log common
</VirtualHost>

<VirtualHost *>
    ServerAdmin [email protected]
    DocumentRoot /home/test/www
    ServerName aaa.cyoz.co.kr
    ServerAlias www.aaa.cyoz.co.kr
    ErrorLog logs/homhard.com-error_log
    CustomLog logs/homhard.com-access_log common
</VirtualHost>

[이 게시물은 관리자님에 의해 2011-10-31 17:32:05 Linux에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

6,077건

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
07-10-02 조회 1,782
07-09-27 조회 3,791
07-09-27 조회 2,577
06-09-26 조회 2,380
06-09-26 조회 3,596
06-09-22 조회 2,679
06-09-22 조회 2,255
06-09-22 조회 3,068
06-09-21 조회 3,034
06-08-18 조회 2,606
05-11-30 조회 3,671
05-07-15 조회 3,589
05-03-23 조회 3,695
05-03-14 조회 2,358
05-03-13 조회 1,743
04-08-05 조회 4,848