Ticket #1400 (assigned enhancement)

Opened 7 years ago

Last modified 7 years ago

Permit the use of RewriteRule from Apache

Reported by: simoner Assigned to: demian (accepted)
Priority: normal Milestone:
Component: SGL - Tasks Severity: open
Keywords: apache RewriteRule Cc:


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]
<Directory proxy:*>
    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.


xforward.diff (0.9 kB) - added by simoner on 03/01/07 08:31:24.

Change History

03/01/07 08:31:24 changed by simoner

  • attachment xforward.diff added.

03/01/07 11:23:14 changed by demian

  • owner changed from simoner to demian.
  • status changed from new to assigned.
  • milestone set to 0.6.2.

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.

03/21/07 12:29:20 changed by demian

  • milestone deleted.