Page History
...
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
Setting | Value |
---|---|
Type | Global |
Base virtual path | |
Virtual path | ^/api$ |
If this rule matches | Perform an internal redirection |
Destination | /api/cgi-bin/oecgi4.exe |
Next action | Stop matching |
...
Setting | Value |
---|---|
Match URL | ^api([_0-9a-z-/]+)$ |
Action type | Rewrite |
Action URL | oecgi4.exe/{R:1} |
Stop processing after match | Checked |
Apache
...
<IfModule mod_rewrite.c>
...
RewriteEngine on
...
RewriteBase /
...
RewriteRule ^api$ /cgi-bin/OECGI4.exe
RewriteRule ^api/(.*)$ /cgi-bin/OECGI4.exe/$1
</
...
IfModule>