윈도우 아파치(apache) 서버 conf 설정 및 세팅하기 (포트변경, svn세팅 포함)

by 종스 posted May 08, 2009
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

최종 수정일자 : 2010.02.09


나의 개인 웹서버의 설정을 공개 합니다^_^;

제대로 사용하고 있는지 잘 모르겠지만, 10년간의 나름대로의 노하우가 담겨있습니다.


======================================================

=== httpd.conf 파일

======================================================

ServerRoot "E:/xampplite/apache"


Listen 8081


LoadModule dav_svn_module "C:/svn/bin/mod_dav_svn.so"

LoadModule authz_svn_module "C:/svn/bin/mod_authz_svn.so"

ServerAdmin geusgod@gmail.com

ServerName localhost:8080

DocumentRoot "E:/www"


<Directory "E:/www">

<Location /svn>

DAV svn

SVNParentPath E:\pubs\svn

AuthType Basic

AuthName "Butterflow Subversion Repositories"

AuthUserFile E:\pubs\svn.htpasswd

Require valid-user

</Location>


Alias /_capture "E:/www/_capture"

Alias /_image "E:/www/_image"

Alias /_file "E:/www/_file"

Alias /_serverinfo "E:/www/_serverinfo"

Alias /_weblog "E:/www/_weblog"


ErrorDocument 404 http://geusgod.pe.kr

ErrorDocument 500 http://geusgod.pe.kr


EnableMMAP off

EnableSendfile off

#Win32DisableAcceptEx


======================================================

=== ./extra/httpd-vhosts.conf 파일

======================================================

NameVirtualHost *:8081


# Webservice - http://web.geusgod.pe.kr:8081/

<VirtualHost *:8081>

     ServerAdmin admin@geusgod.pe.kr

     DocumentRoot "E:\www\geusgod"

     ServerName web.geusgod.pe.kr:8081

     ServerAlias web.*

     ErrorLog logs\web.geusgod.pe.kr.error_log

     TransferLog logs\web.geusgod.pe.kr.access_log

     <Directory "E:\www\geusgod">

         Options Indexes FollowSymLinks

         AllowOverride FileInfo

         Order allow,deny

         Allow from all

     </Directory>


# test - http://test.geusgod.pe.kr:8081/

<VirtualHost *:8081>

     ServerAdmin admin@geusgod.pe.kr

     DocumentRoot "E:\www\sandbox"

     ServerName test.geusgod.pe.kr:8081

     ServerAlias test.*

     ErrorLog logs\test.geusgod.pe.kr.error_log

     TransferLog logs\test.geusgod.pe.kr.access_log

     <Directory "E:\www\sandbox">

         Options Indexes FollowSymLinks

         AllowOverride FileInfo

         Order allow,deny

         Allow from all

     </Directory>

</VirtualHost>

======================================================