Page History
...
We wrote an article on our blog site called Hiding OECGIx.exe Using URL Rewriting that explains how to create Rewrite Rules for IIS and Apache. Most URL Rewrite modules use regular expressions, so once you have grasped the technique for one web server you should be able to apply it onto another. Advanced rewrite rules that do more than simply hide OECGI and are well suited for use with the SRP HTTP Framework can be found below.
Rewrite Rules for SRP HTTP Framework on Various Web Servers
The following is a list of rewrite rules specifically for the SRP HTTP Framework under various web servers.
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 |
---|---|
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 |
IIS
Setting | Value |
---|---|
Match URL | ^api$ |
Action type | Rewrite |
Action URL | oecgi4.exe |
Stop processing after match | Checked |
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/$1
</
IfModule
>