Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 219200

Summary: Please create a Web Redirect for http://build.eclipse.org/dsdp
Product: Community Reporter: Martin Oberhuber <mober.at+eclipse>
Component: ServersAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
URL: http://build.eclipse.org/dsdp
Whiteboard:

Description Martin Oberhuber CLA 2008-02-15 18:44:05 EST
I'm trying to set up build.eclipse.org as backup build and release server for DSDP, in addition to our main build server (dsdp.eclipse.org). I saw that for 
the Modeling project, they redirect web access to

    http://build.eclipse.org/modeling

from the
    /opt/public/modeling
directory into
    /opt/public/modeling/public_html
 
Can you please set up a similar redirect for
   http://build.eclipse.org/dsdp
(and let me know how it's done, for my education).
Comment 1 Denis Roy CLA 2008-02-19 10:56:43 EST
Actually, it's an Alias  :)

Here's what I added to our Apache config to do this:

Alias /dsdp "/opt/public/dsdp/public_html"
<Directory "/opt/public/dsdp/public_html">
  AllowOverride AuthConfig FileInfo
  Order allow,deny
  Allow from all
</Directory>
Comment 2 Martin Oberhuber CLA 2008-02-20 16:57:57 EST
The basic alias works OK, but it looks like that's not everything.
Following PHP code works OK for modeling:

require_once($_SERVER["DOCUMENT_ROOT"] . "/modeling/includes/x.php");

--> It gets /opt/public/modeling/public_html/includes/x.php
--> Supposedly as /opt/public/modeling/modeling/includes/x.php

Whereas this tells me "file not found" for dsdp:
require_once($_SERVER["DOCUMENT_ROOT"] . "/dsdp/includes/x.php");

It looks like PHP thinks the DOCUMENT_ROOT is /opt/public/modeling, could that be?
Comment 3 Martin Oberhuber CLA 2008-02-20 17:52:30 EST
Also, the following page returns "Access forbidden" but should be accessible:

http://build.eclipse.org/dsdp/tm/rse/downloads/drops/3.0.0/I200802201546/build.cfg

File system permissions look OK, could it be that the web server does not allow following symbolic links? - If this is the case, could you fix it such that it works the same way as it works for Modeling? - Thanks!
Comment 4 Denis Roy CLA 2008-02-21 10:44:03 EST
(In reply to comment #2)
> It looks like PHP thinks the DOCUMENT_ROOT is /opt/public/modeling, could that
> be?

The Apache DocumentRoot is set to /opt/public, and there is no specific setting in PHP for modeling.  Can you tell me what URL has the include that works for modeling, but not for dsdp?  As far as I can tell, you're both set up identically on the server level.  modeling may have overriden some values with .htaccess files.

(In reply to comment #3)
> File system permissions look OK, could it be that the web server does not allow
> following symbolic links?

Indeed, symlinks are not followed by the web browser.  This is a security policy of ours.

Comment 5 Denis Roy CLA 2008-05-28 14:49:58 EDT
Closing as WORKSFORME, as I don't know what needs to be done here.  Please reopen with more info if you have some.