CentOS下通過apache訪問SVN

來源:互聯網
上載者:User

注意:我們假設已經在CentOS上成功安裝了SVN,可以正常訪問。

 

安裝Apache下SVN模組:

yum install httpd httpd-devel subversion mod_dav_svn mod_auth_mysql

確定已經安裝了svn模組:mod_dav_svn


#cd /etc/httpd/modules<br />#ls | grep svn<br />mod_authz_svn.so<br />mod_dav_svn.so

(如果有以上兩個檔案,說明模組安裝成功)

 

配置/etc/httpd/conf/httpd.conf

(httpd的安裝目錄,一般是/etc/httpd或/usr/local/appache2)

在Apache的設定檔httpd.conf(預設路徑為/usr/local/apache2/conf)中已經使用LoadModule指令載入了該模組(如果沒有,請手動添加)LoadModule 指令的文法很簡單, 就是將一個具名模組對映到共用連結庫在磁碟上的位置:
LoadModule dav_svn_module modules/mod_dav_svn.so

 

測試Apache是否可以正常啟動:

#vim /etc/httpd/conf/httpd.conf — Edit what you need and save the file<br />#service httpd start<br />#chkconfig httpd on
 
在瀏覽器中訪問:http://localhost

, 如果能看到Apache的頁面,則說明Apache已經正常啟動。

 

參考:http://blog.sn00py.cn/2009/04/%E5%9C%A8centos%E4%B8%8B%E5%AE%89%E8%A3%85svn/

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.