User:Dan Bron/SubversionAndProxies
svn doesn't work!
As mentioned in the svn user guide on this wiki, I use TortoiseSVN on Windows as my svn client. Unfortunately, at work, I do not have a direct connection to the internet; all internet requests must be proxied (for auditing and censoring purposes).
the problem
Because of that, TortoiseSVN cannot connect to JSoftware's (or anyone else's) svn server, so I can't check scripts in or out.
the solution
Subversion supports proxies. So, first discover your proxy information, then tell svn about it by editing its servers file.
Make sure to __set the permissions on the servers file such that you and only you can read the it__. That way, someone would have to know your credentials before he can read the file, which defeats the purpose of trying to read the file to get your credentials.
Note also that the cavaets from wget and proxies apply here too. That is, if your proxy information changes (e.g. you change your password) you'll have to remember to update this file. If you attempt an svn action and it fails to connect to the server, this is probably the first thing to check.
the specifics
for any svn client
Go to Start>Run, enter notepad %APPDATA%\Subversion\servers and press the OK button.
Read through the file, and look for the [global] section. It should be near the bottom, and will look something like:
### You can set default parameters in the 'global' section.
### These parameters apply if no corresponding parameter is set in
...
[global]
# http-proxy-exceptions = *.exception.com, www.internal-site.org
# http-proxy-host = defaultproxy.whatever.com
# http-proxy-port = 7000
# http-proxy-username = defaultusername
# http-proxy-password = defaultpassword
...
Then replace the values with your proxy information:
### You can set default parameters in the 'global' section.
### These parameters apply if no corresponding parameter is set in
...
[global]
# http-proxy-exceptions = *.exception.com, www.internal-site.org
http-proxy-host = __host__
http-proxy-port = __port__
http-proxy-username = __user__
http-proxy-password = __password__
...
Be sure to remove the # comment markers from the lines as shown.
for TortoiseSVN
The TortoiseSVN client provides a GUI where you can enter your proxy information. Launch Windows Explorer, right click any file or folder, and from the context menu, select the TortoiseSVN submenu. Select the Settings item (which should be second to last):
In the resulting window, select the Network item from the left-hand listbox:
check the Enable proxy server box, and fill in the fields with your proxy information. Note that pressing the Edit button in the Proxy Settings section will open the servers file mentioned in the last section.