Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question
add comment

2 Answers 2

Check HttpSubsModule module instead. Excerpt from documentation:

Several substitution rules per location can be specified

share|improve this answer
1  
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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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