Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Babel » Babel server documentation
Babel server documentation [message #19932] Thu, 25 September 2008 11:25 Go to next message
Eclipse User
Originally posted by: atoulme.intalio.com

Hi,

it seems the Eclipse Babel instance uses .htaccess files or does
rewrites from the Apache config file.

Would it be ok to share those files or the conditional rules on the
Babel server development wiki page ?

Thanks,

Antoine
Re: Babel server documentation [message #19972 is a reply to message #19932] Thu, 25 September 2008 22:53 Go to previous messageGo to next message
Eclipse Webmaster is currently offline Eclipse Webmaster
Messages: 481324
Registered: July 2009
Senior Member
Antoine Toulme wrote:
> Hi,
>
> it seems the Eclipse Babel instance uses .htaccess files or does
> rewrites from the Apache config file.
>
> Would it be ok to share those files or the conditional rules on the
> Babel server development wiki page ?
>
> Thanks,
>
> Antoine

Antoine, what makes you say we use rewrites? One thing I absolutely
*detest* is apps that use all kinds of clumsy and obscure rewrites just
to make URLs pretty.

Here are the relevant portions of the babel.eclipse.org Apache config.
As you'll see, we have AllowOverride None, so no .htaccess is used.

<VirtualHost *:80>
ServerAdmin webmaster@eclipse.org
ServerName babel.eclipse.org
DocumentRoot /home/data/httpd/babel.eclipse.org/html/
<Directory "/home/data/httpd/babel.eclipse.org/html/">
Options -Indexes -FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /babel /home/data/httpd/babel.eclipse.org/babel/html
<Directory /home/data/httpd/babel.eclipse.org/babel/html>
Options FollowSymLinks
DirectoryIndex index.php index.html
AllowOverride None
Order Allow,Deny
Allow From All
</Directory>

RewriteEngine On
# Redirect logins to https
RewriteRule ^/babel/login.php https://%{SERVER_NAME}/babel/login.php
</VirtualHost>

The base http://babel.eclipse.org is forwarded to
http://babel.eclipse.org/babel via index.php at the DocumentRoot:
Re: Babel server documentation [message #20008 is a reply to message #19972] Thu, 25 September 2008 22:54 Go to previous messageGo to next message
Eclipse Webmaster is currently offline Eclipse Webmaster
Messages: 481324
Registered: July 2009
Senior Member
> The base http://babel.eclipse.org is forwarded to
> http://babel.eclipse.org/babel via index.php at the DocumentRoot:
<?php
header("Location: babel/");
?>
Re: Babel server documentation [message #20048 is a reply to message #19972] Thu, 25 September 2008 23:02 Go to previous messageGo to next message
Eclipse Webmaster is currently offline Eclipse Webmaster
Messages: 481324
Registered: July 2009
Senior Member
Eclipse Webmaster (Denis Roy) wrote:
> Antoine Toulme wrote:
>> Hi,
>>
>> it seems the Eclipse Babel instance uses .htaccess files or does
>> rewrites from the Apache config file.
>>
>> Would it be ok to share those files or the conditional rules on the
>> Babel server development wiki page ?
>>
>> Thanks,
>>
>> Antoine
>
> Antoine, what makes you say we use rewrites? One thing I absolutely
> *detest* is apps that use all kinds of clumsy and obscure rewrites just
> to make URLs pretty.

Sorry, that sounds a bit dry :-) What I meant was, what problem are
you encountering to consider rewrites an issue?
Re: Babel server documentation [message #20082 is a reply to message #20048] Fri, 26 September 2008 06:25 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

> Sorry, that sounds a bit dry :-) What I meant was, what problem are you
> encountering to consider rewrites an issue?
No problem, I'm just looking for an elegant way to hide base.conf.

If it was just me, I would move it to /etc.

When trying to type its URL on babel, I get a 404, so either there is a
rewrite rule here, or you moved base.conf.

and how do you hide folder pages (for example someone trying this trick:
http://babel.eclipse.org/babel/js) ?

That might be really basic knowledge.

Thanks,

Antoine
Re: Babel server documentation [message #21324 is a reply to message #20082] Fri, 26 September 2008 13:30 Go to previous messageGo to next message
Eclipse Webmaster is currently offline Eclipse Webmaster
Messages: 481324
Registered: July 2009
Senior Member
Antoine Toulme wrote:
>> Sorry, that sounds a bit dry :-) What I meant was, what problem are you
>> encountering to consider rewrites an issue?
> No problem, I'm just looking for an elegant way to hide base.conf.
>
> If it was just me, I would move it to /etc.
>
> When trying to type its URL on babel, I get a 404, so either there is a
> rewrite rule here, or you moved base.conf.
>
> and how do you hide folder pages (for example someone trying this trick:
> http://babel.eclipse.org/babel/js) ?
>
> That might be really basic knowledge.
>
> Thanks,
>
> Antoine

The server's base.conf is outside of the DocumentRoot, so it is not
accessible.

DocumentRoot = /home/data/httpd/babel.eclipse.org/html/
base.conf = /home/data/httpd/babel.eclipse.org/base.conf

We also disable Indexes so you can't get a listing of files in directories
<Directory "/home/data/httpd/babel.eclipse.org/html/">
Options -Indexes -FollowSymLinks


You get good performance gains by specifying AllowOverride None (thus
disabling .htaccess files), in that Apache does not crawl the directory
tree looking for .htaccess files.
Re: Babel server documentation [message #21330 is a reply to message #21324] Fri, 26 September 2008 15:35 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

> The server's base.conf is outside of the DocumentRoot, so it is not
> accessible.
>
> DocumentRoot = /home/data/httpd/babel.eclipse.org/html/
> base.conf = /home/data/httpd/babel.eclipse.org/base.conf
>
> We also disable Indexes so you can't get a listing of files in directories
> <Directory "/home/data/httpd/babel.eclipse.org/html/">
> Options -Indexes -FollowSymLinks
>
>
> You get good performance gains by specifying AllowOverride None (thus
> disabling .htaccess files), in that Apache does not crawl the directory
> tree looking for .htaccess files.
Thank you, that was the info I was after.
Re: Babel server documentation [message #21335 is a reply to message #21330] Fri, 26 September 2008 23:29 Go to previous messageGo to next message
Eclipse User
Originally posted by: atoulme.intalio.com

Denis, I think this info is missing from the wiki page:
http://wiki.eclipse.org/Babel_/_Server_Tool_Development_Proc ess

In particular the page says:

Alias /babel "/var/www/babel/server/html/"
<Directory "/var/www/babel/server/html/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>

But since it is the documentRoot, why go about defining an alias ?

I think that's what threw me off, I have no good knowledge of Apache and
wouldn't have been too sure where to place the DocumentRoot.

Thanks,

Antoine
Re: Babel server documentation [message #21351 is a reply to message #21335] Mon, 29 September 2008 13:57 Go to previous message
Eclipse Webmaster is currently offline Eclipse Webmaster
Messages: 481324
Registered: July 2009
Senior Member
When I wrote those docs my DocumentRoot wasn't
"/var/www/babel/server/html/". I've updated the docs to make the path
to babel more abstract.

Thanks for the suggestion :)



Antoine Toulme wrote:
> Denis, I think this info is missing from the wiki page:
> http://wiki.eclipse.org/Babel_/_Server_Tool_Development_Proc ess
>
> In particular the page says:
>
> Alias /babel "/var/www/babel/server/html/"
> <Directory "/var/www/babel/server/html/">
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> But since it is the documentRoot, why go about defining an alias ?
>
> I think that's what threw me off, I have no good knowledge of Apache and
> wouldn't have been too sure where to place the DocumentRoot.
>
> Thanks,
>
> Antoine

--

Eclipse WebMaster - webmaster@eclipse.org
Questions? Consult the WebMaster FAQ at
http://wiki.eclipse.org/index.php/Webmaster_FAQ
View my status at http://wiki.eclipse.org/index.php/WebMaster
Re: Babel server documentation [message #573949 is a reply to message #19932] Thu, 25 September 2008 22:53 Go to previous message
Eclipse Webmaster is currently offline Eclipse Webmaster
Messages: 481324
Registered: July 2009
Senior Member
Antoine Toulme wrote:
> Hi,
>
> it seems the Eclipse Babel instance uses .htaccess files or does
> rewrites from the Apache config file.
>
> Would it be ok to share those files or the conditional rules on the
> Babel server development wiki page ?
>
> Thanks,
>
> Antoine

Antoine, what makes you say we use rewrites? One thing I absolutely
*detest* is apps that use all kinds of clumsy and obscure rewrites just
to make URLs pretty.

Here are the relevant portions of the babel.eclipse.org Apache config.
As you'll see, we have AllowOverride None, so no .htaccess is used.

<VirtualHost *:80>
ServerAdmin webmaster@eclipse.org
ServerName babel.eclipse.org
DocumentRoot /home/data/httpd/babel.eclipse.org/html/
<Directory "/home/data/httpd/babel.eclipse.org/html/">
Options -Indexes -FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /babel /home/data/httpd/babel.eclipse.org/babel/html
<Directory /home/data/httpd/babel.eclipse.org/babel/html>
Options FollowSymLinks
DirectoryIndex index.php index.html
AllowOverride None
Order Allow,Deny
Allow From All
</Directory>

RewriteEngine On
# Redirect logins to https
RewriteRule ^/babel/login.php https://%{SERVER_NAME}/babel/login.php
</VirtualHost>

The base http://babel.eclipse.org is forwarded to
http://babel.eclipse.org/babel via index.php at the DocumentRoot:
Re: Babel server documentation [message #573979 is a reply to message #19972] Thu, 25 September 2008 22:54 Go to previous message
Eclipse Webmaster is currently offline Eclipse Webmaster
Messages: 481324
Registered: July 2009
Senior Member
> The base http://babel.eclipse.org is forwarded to
> http://babel.eclipse.org/babel via index.php at the DocumentRoot:
<?php
header("Location: babel/");
?>
Re: Babel server documentation [message #574010 is a reply to message #19972] Thu, 25 September 2008 23:02 Go to previous message
Eclipse Webmaster is currently offline Eclipse Webmaster
Messages: 481324
Registered: July 2009
Senior Member
Eclipse Webmaster (Denis Roy) wrote:
> Antoine Toulme wrote:
>> Hi,
>>
>> it seems the Eclipse Babel instance uses .htaccess files or does
>> rewrites from the Apache config file.
>>
>> Would it be ok to share those files or the conditional rules on the
>> Babel server development wiki page ?
>>
>> Thanks,
>>
>> Antoine
>
> Antoine, what makes you say we use rewrites? One thing I absolutely
> *detest* is apps that use all kinds of clumsy and obscure rewrites just
> to make URLs pretty.

Sorry, that sounds a bit dry :-) What I meant was, what problem are
you encountering to consider rewrites an issue?
Re: Babel server documentation [message #574040 is a reply to message #20048] Fri, 26 September 2008 06:25 Go to previous message
Eclipse User
Originally posted by: atoulme.intalio.com

> Sorry, that sounds a bit dry :-) What I meant was, what problem are you
> encountering to consider rewrites an issue?
No problem, I'm just looking for an elegant way to hide base.conf.

If it was just me, I would move it to /etc.

When trying to type its URL on babel, I get a 404, so either there is a
rewrite rule here, or you moved base.conf.

and how do you hide folder pages (for example someone trying this trick:
http://babel.eclipse.org/babel/js) ?

That might be really basic knowledge.

Thanks,

Antoine
Re: Babel server documentation [message #574057 is a reply to message #20082] Fri, 26 September 2008 13:30 Go to previous message
Eclipse Webmaster is currently offline Eclipse Webmaster
Messages: 481324
Registered: July 2009
Senior Member
Antoine Toulme wrote:
>> Sorry, that sounds a bit dry :-) What I meant was, what problem are you
>> encountering to consider rewrites an issue?
> No problem, I'm just looking for an elegant way to hide base.conf.
>
> If it was just me, I would move it to /etc.
>
> When trying to type its URL on babel, I get a 404, so either there is a
> rewrite rule here, or you moved base.conf.
>
> and how do you hide folder pages (for example someone trying this trick:
> http://babel.eclipse.org/babel/js) ?
>
> That might be really basic knowledge.
>
> Thanks,
>
> Antoine

The server's base.conf is outside of the DocumentRoot, so it is not
accessible.

DocumentRoot = /home/data/httpd/babel.eclipse.org/html/
base.conf = /home/data/httpd/babel.eclipse.org/base.conf

We also disable Indexes so you can't get a listing of files in directories
<Directory "/home/data/httpd/babel.eclipse.org/html/">
Options -Indexes -FollowSymLinks


You get good performance gains by specifying AllowOverride None (thus
disabling .htaccess files), in that Apache does not crawl the directory
tree looking for .htaccess files.
Re: Babel server documentation [message #574085 is a reply to message #21324] Fri, 26 September 2008 15:35 Go to previous message
Eclipse User
Originally posted by: atoulme.intalio.com

> The server's base.conf is outside of the DocumentRoot, so it is not
> accessible.
>
> DocumentRoot = /home/data/httpd/babel.eclipse.org/html/
> base.conf = /home/data/httpd/babel.eclipse.org/base.conf
>
> We also disable Indexes so you can't get a listing of files in directories
> <Directory "/home/data/httpd/babel.eclipse.org/html/">
> Options -Indexes -FollowSymLinks
>
>
> You get good performance gains by specifying AllowOverride None (thus
> disabling .htaccess files), in that Apache does not crawl the directory
> tree looking for .htaccess files.
Thank you, that was the info I was after.
Re: Babel server documentation [message #574111 is a reply to message #21330] Fri, 26 September 2008 23:29 Go to previous message
Eclipse User
Originally posted by: atoulme.intalio.com

Denis, I think this info is missing from the wiki page:
http://wiki.eclipse.org/Babel_/_Server_Tool_Development_Proc ess

In particular the page says:

Alias /babel "/var/www/babel/server/html/"
<Directory "/var/www/babel/server/html/">
AllowOverride None
Order allow,deny
Allow from all
</Directory>

But since it is the documentRoot, why go about defining an alias ?

I think that's what threw me off, I have no good knowledge of Apache and
wouldn't have been too sure where to place the DocumentRoot.

Thanks,

Antoine
Re: Babel server documentation [message #574189 is a reply to message #21335] Mon, 29 September 2008 13:57 Go to previous message
Eclipse Webmaster is currently offline Eclipse Webmaster
Messages: 481324
Registered: July 2009
Senior Member
When I wrote those docs my DocumentRoot wasn't
"/var/www/babel/server/html/". I've updated the docs to make the path
to babel more abstract.

Thanks for the suggestion :)



Antoine Toulme wrote:
> Denis, I think this info is missing from the wiki page:
> http://wiki.eclipse.org/Babel_/_Server_Tool_Development_Proc ess
>
> In particular the page says:
>
> Alias /babel "/var/www/babel/server/html/"
> <Directory "/var/www/babel/server/html/">
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> But since it is the documentRoot, why go about defining an alias ?
>
> I think that's what threw me off, I have no good knowledge of Apache and
> wouldn't have been too sure where to place the DocumentRoot.
>
> Thanks,
>
> Antoine

--

Eclipse WebMaster - webmaster@eclipse.org
Questions? Consult the WebMaster FAQ at
http://wiki.eclipse.org/index.php/Webmaster_FAQ
View my status at http://wiki.eclipse.org/index.php/WebMaster
Previous Topic:errorLog() function
Next Topic:Galileo release plan, and how it will fit with Babel
Goto Forum:
  


Current Time: Thu Oct 30 14:41:36 GMT 2014

Powered by FUDForum. Page generated in 0.03928 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software