Home » Eclipse Projects » Babel » Babel server documentation
Babel server documentation [message #19932] |
Thu, 25 September 2008 07:25  |
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 #21324 is a reply to message #20082] |
Fri, 26 September 2008 09:30   |
Eclipse Webmaster Messages: 607353 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 #573949 is a reply to message #19932] |
Thu, 25 September 2008 18:53  |
Eclipse Webmaster Messages: 607353 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 #574010 is a reply to message #19972] |
Thu, 25 September 2008 19:02  |
Eclipse Webmaster Messages: 607353 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 02:25  |
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 09:30  |
Eclipse Webmaster Messages: 607353 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 11:35  |
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 19:29  |
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
|
|
| |
Goto Forum:
Current Time: Tue Jul 01 11:09:29 EDT 2025
Powered by FUDForum. Page generated in 0.12205 seconds
|