Consultor Eletrônico



Kbase P146197: How to implement short URLs using Microsoft IIS and OpenEdge WebSpeed
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   02/11/2009
Status: Verified

GOAL:

How to implement short URLs using Microsoft IIS and OpenEdge WebSpeed

GOAL:

How to hide url for messenger with IIS for WebSpeed

GOAL:

How to hide url with IIS

GOAL:

How to hide scripts directory with IIS and WebSpeed messengers?

GOAL:

How to make WebSpeed to work with short urls

FACT(s) (Environment):

OpenEdge 10.x
IIS 5.1
IIS 6.0

FIX:

Instead of using IIS built-in extension mapping, it is far better to use ISAPI filter that has rewrite rules capabilities.
There are several third party products which can be used to fulfill these role
and here is example of one of them that can be downloaded and used for this purpose.
1. Navigate to http://www.codeplex.com/IIRF
then go to download section and download the zip file
2. Create C:\Inetpub\IIRF and unzip all files in that directory
3. Open the Internet Service Manager (MMC).
You can do this via Start...Run...%SystemRoot%\System32\inetsrv\iis.msc
or you can browse to MS Windows Start...Control
Panel...Administrative Tools....Internet Information Services.
4. Select the appropriate level for the ISAPI filter:
- to use the ISAPI filter with all Web sites, select the "Web Sites"
icon just under the machine name.
- to use the ISAPI filter with a specific Web site, select the icon
for that Web site (for example, the default Web site).
5. Right-click the level (icon) that you selected. Click the <Properties> button.
6. Click the ISAPI Filters tab.
7. Click Add.
8. Type a name for the ISAPI filter. Eg, "Ionic Rewriter".
9. Click Browse and select the ISAPI filter DLL that you unzipped in step 2.
This file should be C:\inetpub\iirf\lib\IsapiRewrite4.dll
10. Click OK.
11. Stop the IISADMIN service. To do this, either type
"net stop iisadmin /y" at a command prompt, or use the Services applet that
is located in Administrative Tools
12. Start the World Wide Web Publishing Service. Do this by typing
"net start w3svc" at a command prompt, or by using the Services
applet that is located in Administrative Tools.
13. In the same directory where the IsapiRewrite4.dll file is located
create text file named C:\Inetpub\IIRF\lib\IsapiRewrite4.ini and copy
the following content :
RewriteLog c:\temp\iirf.log
RewriteLogLevel 3
RewriteRule ^(.*\.ssp.*)$ /scripts/cgiip.exe/WService=wsbroker1/$1 [I,L]
In this example, all files with extension .ssp will be rewritten to a WebSpeed url. You can add multiple ReWriteRules with different extensions using the same format as above on the same IsapiRewrite4.ini file.
Now save this file. You can test to see if it works using following url:
http://localhost/webtools/session.ssp
This should run WebSpeed's tool which is actually
http://localhost/scripts/cgiip.exe/WService=wsbroker1/webtools/session.w


To test url query string where you pass parameters, use this url:
http://localhost/webtools/session.ssp?Sections=webspeed&Sections=os&Sections=cgi

If all works as expected, then don't forget to remove extended logging on isapi filter by changing the line in the ini file:
RewriteLogLevel 0