LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Apache not forwarding to SVN server (https://www.linuxquestions.org/questions/linux-enterprise-47/apache-not-forwarding-to-svn-server-558963/)

ishaqmalik 06-04-2007 02:03 AM

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

ishaqmalik 06-06-2007 02:19 AM

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

ishaqmalik 06-06-2007 03:09 AM

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


All times are GMT -5. The time now is 03:37 AM.