Open demianturner opened 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.
[demian] see http://trac.seagullproject.org/ticket/890#comment:2
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]
}}}
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.