Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Adjusted apache rule

...

The following is a list of rewrite rules specifically for the SRP HTTP Framework under various web servers.

In all examples below api is a user defined path and can be substitued for whatever path you choose for your API.

Abyss

SettingValue
TypeGlobal
Base virtual path 
Virtual path^/api$
If this rule matchesPerform an internal redirection
Destination/api/cgi-bin/oecgi4.exe
Next actionStop matching

...

SettingValue
Match URL^api([_0-9a-z-/]+)$
Action typeRewrite
Action URLoecgi4.exe/{R:1}
Stop processing after matchChecked

Apache

...

<IfModule mod_rewrite.c>

...

  RewriteEngine on

...

  RewriteBase /

...

  RewriteRule ^api$ /cgi-bin/OECGI4.exe
  RewriteRule ^api/(.*)$ /cgi-bin/OECGI4.exe/$1
</

...

IfModule>