demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

Permit the use of RewriteRule from Apache #1400

Open demianturner opened 11 years ago

demianturner commented 11 years ago

This patch permits to use Apache RewriteRule. Example: I've a seagull site in www.example.com but I want to redir there the site www.notmine.com of which I haven't DNS register permission, but I have access to the Apache on the machine it points to. I write an apache role like this: {{{ <VirtualHost *:80> Servername www.notmine.com RewriteEngine on RewriteRule ^/(._) http://www.example.com/$1 [P]

Order deny,allow Allow from all

}}}

then in seagull configuration a put this line: {{{ $conf['site']['xforwarded'] = '1'; }}}

and all works. Not a great patch but it was usefull for me.

demianturner commented 11 years ago

[demian] hi simoner - it's an interesting hack but don't think it makes sense to include this in default distro. would be better placed in a 'seagull hacks' site, will keep it in mind for that.

demianturner commented 11 years ago

[demian] see http://trac.seagullproject.org/ticket/890#comment:2