Terminate global script but continue Local script

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 7
Joined: 17 Dec 2012, 11:23
Location: Pennsylvania

Terminate global script but continue Local script

17 Dec 2012, 11:35

I have a very complex Global script I have written that about 20 sites share.

I have a site I'm migrating from another server and I do not want the global script to run on this site.

* Is there a way to terminate the processing of the global asapi script but continue running the local asapi script. *

I would rather not support the global script over the 20 local sites I currently have on this server.

Any thoughts or options would be appreciated.

User avatar
Posts: 7
Joined: 17 Dec 2012, 11:23
Location: Pennsylvania

Re: Terminate global script but continue Local script

17 Dec 2012, 12:20

Looking through the documentation I see the directive for skip next n rules [S=num]

Does this skip the next n rules in the current script or the next n rules in all scripts (both global directory local).

If this skips the next rules in the current script I could just issue [S=1000] or any number larger than the maximum number of rules in my global script.

Would this work????

User avatar
Posts: 27
Joined: 04 Dec 2012, 21:06

Re: Terminate global script but continue Local script

17 Dec 2012, 22:34

Have you tried using this rules and can tell us if it worked or not?

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Terminate global script but continue Local script

18 Dec 2012, 07:07

Hello,

You can put the rules that are used by these 20 sites into VirtualHost section in httpd.conf and list all the host names for which they should apply:

<VirtualHost site1.com site2.com etc>
...
</VirtualHost>

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 62 guests