with no evil plans I am trying to mirror a site under other domain, while changing a few strings on the fly.

I set up nginx on a new host to serve as a RP to the master site. This allows to set one rule of replacement:

sub_filter      Originalstring  'new string';
sub_filter_once off;

However, I'd like to have several rules running, which sub_filter allows only one per location.

What can be a solution here, if any?

link|improve this question
feedback

2 Answers

Check HttpSubsModule module instead. Excerpt from documentation:

Several substitution rules per location can be specified

link|improve this answer
Thanks, AlexD, I am aware of the HttpSubsModule, which is not installed on the shared hosting, I am trying to implement the feature at. Looking for a possible hack or a workaround for the available HttpSubModule. – Sergiks Jun 20 '11 at 9:52
feedback

I guess you may setup several locations or server_names with one sub_filter per earch and proxy the request through them.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.