LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 06-04-2007, 02:03 AM   #1
ishaqmalik
LQ Newbie
 
Registered: May 2007
Posts: 8

Rep: Reputation: 0
Apache not forwarding to SVN server


Hi,

my organization runs an apache2 server on its main server, it merely acts as a proxy server to proxy requests to other servers, uptill now it has been proxying fine, but recently I added our svn server to it and it doesn't forward to it.

here's a portion of my httpd.conf

Code:
NameVirtualHost *:80
<VirtualHost *:80>
  ServerName mainserver.mycompany.com
  DocumentRoot /var/www/html

  ProxyPass /tomcat http://127.0.0.1:8080/
  ProxyPassReverse /tomcat http://127.0.0.1:8080/

  ProxyPass /svn http://subversion/svn/
  ProxyPassReverse /svn http://subversion/svn/

  ProxyPreserveHost off
</VirtualHost>

<VirtualHost _default_:443>
  ProxyPass /svn https://subversion/svn
  ProxyPassReverse /svn https://subversion/svn
</VirtualHost>
When I start it, it shows the following warning (but it starts fine):

Code:
Starting httpd: [Mon Jun 04 11:31:21 2007] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
when I try to access it with http://mainserver/svn (or http://mainserver.mycompany.com) it asks for login/password, and (in firefox) keeps on showing the same dialog again and again even when I have entered correct login/password right the first time. In IE, it asks for a login/password and then says "Page cannot be displayed".... Same goes for SVN client (e.g. tortoise SVN), it won't even ask for a login/password and says "PROPFIND failed..."

Any ideas?

Regards,
MI
 
Old 06-06-2007, 02:19 AM   #2
ishaqmalik
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Alright, the above warning has been resolved, it was because there was already a VirtualHost entry in ssl.conf (inside confd directory of apache), I removed teh VirtualHost entry from my httpd.conf and inserted the directives into ssl.conf.

However, now when I try to access svn through https i.e.

https://mainserver.mycompany.com/svn

It shows the following error

Quote:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.0.52 (Red Hat) Server at mainserver Port 443
and if I try to access my svn through http i.e.

http://mainserver.mycompany.com/svn

it has keeps on asking for login/password although I enter it correctly the first time, and if I press cancel (at some time later), it would show "authorization required" page. Note that this is the case with firefox, in case of IE, it asks for the username/password and goes straight to "The page cannot be displayed" (although I enter correct user name and password).

Any ideas?

Regards,
MI
 
Old 06-06-2007, 03:09 AM   #3
ishaqmalik
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Alright, the problem with "Internal Server Error" has been resolved, actually I needed to insert

SSLProxyEngine On

inside my <VirtualHost _default_443> entry...

However, the problem that apache is not forwarding the login credentials for SVN access (and hence SVN not allowing access) is still there. I hope someone has something to say...

Regards,
MI
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 05:31 AM
NO-IP port forwarding problems Apache Server nucrebain Linux - Software 4 12-07-2008 03:27 AM
Port forwarding from netgear to apache server evildreamer Linux - Networking 5 09-15-2006 01:25 PM
svn with apache jmkelm08 Linux - Networking 1 05-02-2006 03:05 PM
Help with apache server dir and port forwarding leemoreau Linux - Software 13 03-25-2005 09:56 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration