Operating System...Beautiful

검색 :
RSS 구독 : 글 / 댓글 / 트랙백 / 글+트랙백

Apache 가상호스트 설정

2008/08/15 21:58, 글쓴이 ruo91
우분투 환경 /etc/apache2/sites-available/default 수정
소스컴파일 환경에선 httpd.conf 또는 virtualHost.conf 라던지..거기서 설정...기억안남;;
# Apache 가상호스트 설정
#==================================================
# SetEnvIf Remote 특정 아이피주소에서 접근시 로그를 남기지 않음
# FollowSymLinks 옵션을 추가하면 해당 디렉토리의 누출 or 파일이 보이지 않음
#==================================================
NameVirtualHost *
# www 셋팅
<VirtualHost *>
    ServerAdmin ruo91@naver.com
    ServerAlias yongbok.com www.yongbok.com
    DocumentRoot /home/www/
    ErrorLog /home/apache2-log/www-error.log
    LogLevel warn
        SetEnvIf Remote_Addr x.x.x.x$ do_not_log
        CustomLog /home/apache2-log/www-access.log combined env=!do_not_log
    ServerSignature On
    <Directory "/home/www/">
       Options FollowSymLinks
       AllowOverride FileInfo
       </Directory>
 </VirtualHost>
#
# blog 셋팅
<VirtualHost *>
    ServerAdmin ruo91@naver.com
    ServerAlias blog.yongbok.com
    DocumentRoot /home/blog/
    ErrorLog /home/apache2-log/blog-error.log
    LogLevel warn
#  SetEnvIf Remote 특정 아이피주소에서 접근시 로그를 남기지 않음
        SetEnvIf Remote_Addr X.x.x.x$ do_not_log
        CustomLog /home/apache2-log/blog-access.log combined env=!do_not_log
    ServerSignature On
    <Directory "/home/blog/">
       Options FollowSymLinks
       AllowOverride FileInfo
       </Directory>
 </VirtualHost>
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2008/08/15 21:58 2008/08/15 21:58

맨 위로