Subversion Edge allows server edge on CollabNet login page

I have installed Subversion Edge on my server. Let's say my site myweb.com

. To access the master repository (called main

), users must navigate to https://myweb.com/svn/main

. Alternatively, they can go to https://myweb.com/viewvc

to view all the repositories. If they want to log in and change their password, they must go to https://myweb.com:4434

. I would like the request to https://myweb.com

resolve to this login page, not to a page that just says "It works!"

Is this possible, although Apache and Subversion Edge configuration is possible?

EDIT: I added this to mine httpd.conf

. When I point my browser to https://myweb.com/ach

, it just hangs.

LoadModule proxy_module lib/modules/mod_proxy.so
LoadModule proxy_http_module lib/modules/mod_proxy_http.so

ProxyPreserveHost On
ProxyPass /ach http://myweb.com:4434/
ProxyPassReverse /ach http://myweb.com:4434/

#ProxyPreserveHost On
#<Location /agh>
#       ProxyPass https://myweb.com:4434/
#       ProxyPassReverse http://myweb.com:4434/
#</Location>

      

+3


source to share


2 answers


I believe you want to run the Edge console on the default standard port http (port 80) or https (port 443). Standard ports require additional configuration. There are two options to use port 80 or 443. You only need one or the other, and they require root privileges.

Method 1. Use the bind helper application.

httpd_bind is a small application included with CollabNet Subversion Edge to allow the server to access standard ports without using the server itself with elevated privileges. For it to work, httpd_bind must be owned by root and have its own suid bit specified in the commands below. They must be run as root or sudo.

chown root: jeyanthan / path / to / csvn / lib / httpd_bind / httpd_bind chmod u + s / path / to / csvn / lib / httpd_bind / httpd_bind

Note: "jeyanthan" is the username with which the application is not enabled.



Method 2: Run httpd in sudo

The svn server can be started as root, allowing it to bind to a port, after which the server will reduce its privileges. To use this method and allow the server to start and stop from the management console, configure sudo to work with the httpd binary without a password.

Use "/ usr / sbin / visudo" to add the following two lines to the end of the sudoers file:

By default env_keep + = "PYTHONPATH" jeyanthan ALL = (ALL) NOPASSWD: / Path / to / csvn / bin / HTTPD

+2


source


The Subversion Edge admin web app running on https://myweb.com:4434

is served by an embedded web server (Tomcat, I think).

So you can set up Apache reverse proxy from https://myweb.com/ to https://myweb.com:4434/

However, you need to do this without affecting the existing paths at https://myweb.com/svn/ and https://myweb.com/viewvc/ , so it's a little tricky. I suggest breaking it down into two parts:



First, set up a reverse proxy from https://myweb.com/admin/ to https://myweb.com:4434/ and then when it works, set up a redirect or rewrite rule from https://myweb.com/ to https : //myweb.com/admin/

Both of them can be done in Apache config.

+1


source







All Articles