How to run rhodecode behind a proxy

How can we run rhodecode behind proxy? When I run a rhodecode instance behind proxy I am getting a HttpVCSCommunicationError .[Here is a thread Error creating repository that conveys the problem. ]

All other features are working like add user, groups, permissions etc., But I am unable to create a repository successfully. When I try to create an SVN repo, rhodecode for some reason trying to create git repo and throwing an error like what we discussed in that thread.

Please help me to come out of this issue and to create repos!

thank you!