±¾ÈËÔÚÍâÍø·þÎñÆ÷ÉϴSVN×öÏîÄ¿¹ÜÀí. ÒòΪ¿¼Âǵ½ºóÆÚ¶àÏîÄ¿¹ÜÀí·½±ã, ʹÓõÄÊÇapache+mysql+svnµÄ·½Ê½.
ÒòΪ±¾È˵ÄWEB·þÎñÆ÷ʹÓõÄÊÇnginx, ¶øSVNÐèÒªapacheÖ§³Ö, ËùÒÔapache°ó¶¨µÄÊÇ8080¶Ë¿Ú. ·þÎñÆ÷IP:192.168.0.78, ÔÙ±¾È˸ø·þÎñÆ÷°ó¶¨ÁËÒ»¸öÓòÃû, ËùÒÔÐèÒª´ÓnginxÈë¿Ú, ËùÒÔÔÚnginxÖ÷»úÉÏ×öÁËÒ»¸öµ½8080¶Ë¿ÚµÄÖض¨Ïò,ÅäÖÃÈçÏÂ:[code]server
{
listen 80;
server_name svn.bottle.com;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host:80;
proxy_set_header X_Real_IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Via "nginx";
}
}[/code]³öÓÚ°²È«ÐÔ¿¼ÂÇ,ÔÚiptablesÀïÖ»¿ª·Å¶Ô±¾»ú[127.0.0.1]µÄ8080¶Ë¿Ú;
apache SVN¿éµÄÅäÖÃÈçÏÂ:[code]
DAV svn
SVNParentPath /workspace/svn/
AuthName "Wecome access bottle's Subversion server"
AuthType Basic
AuthBasicAuthoritative off
AuthMySQLEnable On
AuthMySQLHost localhost
AuthMySQLUser root
AuthMySQLPassword 123456
AuthMySQLDB friday_server
AuthMySQLUserTable svn_users
AuthMySQLNameField username
AuthMySQLPasswordField passwd
AuthMySQLPwEncryption md5
Require Valid-user
ÎÊÌâ²¹³ä: apache·Ç×Ô¼º±àÒë°²×°, ÓõÄÊÇrpm°üÖ±½Ó°²×°µÄ.
657129880@qq.co ÓÚ 2013-04-21 17:55:48·¢±í:
лл·ÖÏí£¡£¡£¡