Bug 8483 - CREATE: allow .htaccess for our site in the apache config
Summary: CREATE: allow .htaccess for our site in the apache config
Status: RESOLVED FIXED
Alias: None
Product: freedesktop.org
Classification: Unclassified
Component: Administration (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: fd.o Admin Massive
QA Contact:
URL: http://create.freedesktop.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-01 22:25 UTC by Jon Phillips
Modified: 2006-10-24 14:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Jon Phillips 2006-10-01 22:25:37 UTC
Hello, we need to enable .htaccess and overrides for this project. This can be
done in /etc/apache2/sites-enabled/500-create.freedesktop.org by changing the
AllowOverride None to:


<Directory /srv/create.freedesktop.org/www>
    Options Indexes FollowSymLinks
    AllowOverride FileInfo Options Limit
</Directory>

Thanks!
Comment 1 Daniel Stone 2006-10-19 13:05:27 UTC
as per the other one ... anything specific we can add?
Comment 2 Jon Phillips 2006-10-21 16:57:30 UTC
Yes, please add this block. It would be much easier if you just allowed
.htaccess as these might break our wiki. Please tell me though if this gets
enabled and/or you turn on what I originally asked for. Thanks!

###

RewriteEngine on
# anything that contains a dot without a colon should be left alone
RewriteRule ^wiki/(edit)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/insert/(.*)$ /wiki/index.php?action=edit&title=$1 [L,QSA]
RewriteRule ^wiki/(watch)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/(delete)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/(protect)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]
RewriteRule ^wiki/(history)/(.*)$ /wiki/index.php?action=$1&title=$2 [L,QSA]


RewriteRule ^wiki/[^:]*\. - [L]
# anything that contains a slash without a colon should be left alone
RewriteRule ^wiki/[^:]*\/ - [L]
# redirect to main page
RewriteRule ^wiki/*$ /wiki/index.php?title=Main_Page [L,QSA]
# anything else is to be treated as a title
RewriteRule ^wiki/(.+)$ /wiki/index.php?title=$1 [L,QSA]
# anything that contains a slash is to be left alone
Comment 3 Daniel Stone 2006-10-24 14:10:31 UTC
i've added this block to create's apache config


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.