Set up a proxy for SVN

XP system in C:\Documents and Settings\Administrator\Application Data\Subversion directory

Win7 and above systems are in the C:\Users\admin\AppData\Roaming\Subversion directory

PS: It is best to display hidden files, see the method: http://www.cnblogs.com/fanqf/p/9012706.html

1. Find the [global] node under the server configuration file

Then cancel the # sign in the following line (# sign is a comment)
http-proxy-host = 172.100.1.28 proxy ip
http-proxy-port = 8080 proxy port
http-proxy-username = haoxw svn username
http-proxy-password = haoxw12 svn password

After the configuration is complete, the proxy is set for SVN.

2. If you only want to set a proxy for a specific domain name, you can use another section to configure the proxy:

 [groups]
    group1 = *.abc.com The domain name where the proxy needs to be set
    # othergroup = repository.blarggitywhoomph.com
    # thirdgroup = *.example.com
     
    ### Information for the first group:
    [group1]
    http-proxy-host = proxy .myoffice.com proxy ip
    http-proxy-port = 8080 proxy port
    # http-proxy-username = blah
    # http-proxy-password = doubleblah
    # http-timeout = 60

The above is an excerpt of the configuration, which is to configure a proxy for the domain abc.com.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325946348&siteId=291194637