Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old November 22nd, 2007   #1
Inuyaga
First Cup of Ubuntu
 
Join Date: Dec 2006
Beans: 10
Svn HTTPS and the 502 bad gateway error

The situation:
SVN has been setup using svn_dav with ssl enabled

default site file
Code:
<VirtualHost ***.**.**.130:443>
        <Directory /var/www/>
                Options -Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        <IfModule mod_ssl.c>
                SSLEngine on
                SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA;+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
                SSLCertificateFile /var/ssl/crt/svn.crt
                SSLCertificateKeyFile /var/ssl/key/svn.key
        </IfModule>
</VirtualHost>
svn.mysite file
Code:
<VirtualHost ***.***.***.130:443>
        ServerName ***************
        ServerAdmin ***************

        DocumentRoot /var/www/null

        <Location "/">
                <IfModule mod_ssl.c>
                        SSLRequireSSL
                </IfModule>

                DAV svn
                SVNPath /var/svn/
                AuthType Basic
                AuthName "svn@********.***"
                AuthUserFile /var/svn/conf/dav.passwd
                AuthzSVNAccessFile /var/svn/conf/authz
                 Require valid-user

        </Location>

        ErrorLog /var/log/svn.error.log
        CustomLog /var/log/svn.access.log combined

</VirtualHost>
**NOTE there is also a file that describes mysite.com but I have not included that. The site names and alias do not overlap in any way and it specifically uses port 80. If this accly is the problem and apache can not handle having a site and the svn at the same time can someone please recommend a web server that can?

Sorry for the ***********'s but Id rather no post that info all over the place. ^_^

The symptoms:
Evey thing pretty much works. I can check out and commit and generally do most svn like things. However the COPY command DOES NOT work. It keeps giveing me a 502 bad gateway error.

Background:
Here are some things that I think may describe the error im havening.
http://svn.haxx.se/users/archive-2006-03/0549.shtml
http://www.science.uva.nl/research/a...n502BadGateway
http://www.devnetwork.net/forums/viewtopic.php?p=331381 (Dont relly think this one helps at all)
http://blog.torh.net/2007/07/25/subv...ay-workaround/

The problem:
Thoes sites seem to do a FANTASTIC job figuring out what the error is but none of them ever get around to providing a clear way of fixing it.

What I have tried:
mod_gnutls - Too unstable, keeps segfaulting...
Diffrent IPs - No change
mod_rewrite - Attempted to figure it out but I think I messed it up. Too complex, however I think the fix may be with this.

What I was trying to do with the mod_rewrite
Transform the
https://svn.mysite/path/to/file
into
http://svn.mysite/path/to/file

But I could never get it to work. Here is the rules I used for it.
#<IfModule mod_rewrite.c>
# RewriteEngine on
# RewriteCond %{HTTPS} !=on
# RewriteRule ^/svn.mysite/(.*) http://svn.mysite/$1
#</IfModule>

There was no change if I used the rules either.
^/svn.mysite/(.*)$ http://svn.mysite/$1
^/svn.mysite/(.*) https://svn.mysite/$1
^/svn.mysite/(.*)$ https://svn.mysite/$1

Also placeing [L] at the end had no effect.

However as I said I think those rules are wrong.

Other fix options:
Not able to do:
Switching to http or svnserv the connection must be encrypted.
svn+ssh is also out because I require browser support.

Possible:
I am ok doing code edits are recompiling apache to work if someone can point me near the code that is messing up.
Using another web server is fine as long as it supports ssl/tls, virtual hosts, php, python, ruby, and of course svn.
__________________
If there is a will there is a dependency.
Inuyaga is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:25 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry