| Author |
|
mwratten Newbie

Joined: 11 November 2007 Location: United States
Online Status: Offline Posts: 14
|
| Posted: 14 July 2011 at 12:30am | IP Logged
|
|
|
I have recently converted a classic ASP/VBScript application from a WinServer2003/IIS6 platform to WinServer2008/IIS7. On the IIS6 platform we used
isapi_rewrite3 and everything worked well. I thought I would try Helicon Ape on the IIS7 machine. It does work but I have a couple issues.
I have been experiencing SQL Server connection issues and it has been suggested that I change the application pool setting from Integrated to classic. However,
when I do this, Helicon Ape stops working. Also, I have noticed that the IIS server variables are not being set properly. On IIS6/isapi_rewrite3 the HTTP_URL
variable is set to the full path including querystring, however in IIS7/Ape, the HTTP_URL variable does not include the querystring.
Are there some settings I can make in Ape to fix these issues, or should I go back to using isapi_rewrite?
Thanks
Mark
|
| Back to Top |
|
| |
Vyacheslav Admin Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 1542
|
| Posted: 14 July 2011 at 7:36am | IP Logged
|
|
|
Hello.
We recommend integrated pipeline. However if you need to use classic one, please try to disable and then again enable Helicon Ape for the web-site, using Helicon Ape manager. When you do that the manager registers Helicon Ape specifically for classic pipeline.
I believe the difference in server variables has nothing to do with Helicon Ape. IIS 7 differs from IIS 6, that’s the reason.
__________________ Slavik Shynkarenko,
Helicon Tech.
|
| Back to Top |
|
| |
mwratten Newbie

Joined: 11 November 2007 Location: United States
Online Status: Offline Posts: 14
|
| Posted: 15 July 2011 at 12:59am | IP Logged
|
|
|
Thanks, that worked. I tried restarting the web server, but did not think of
disabling and re-enabling Helicon Ape. It also solved the server variables
issue.
Thanks
Mark
|
| Back to Top |
|
| |
mwratten Newbie

Joined: 11 November 2007 Location: United States
Online Status: Offline Posts: 14
|
| Posted: 27 July 2011 at 9:22am | IP Logged
|
|
|
One more issue - I have been using HTTP_X_REWRITE_URL server variable
created by isapi_rewrite to get the untranslated URL, but it is not working
properly in IIS7/Ape. It is returning the URL in the form http://x.domain.com
instead of http://x.domain.com/x/x/x. REQUEST_URI does not either, so is
there another variable I can use to get the full URL?
Thanks
Mark
|
| Back to Top |
|
| |
Vyacheslav Admin Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 1542
|
| Posted: 27 July 2011 at 9:55am | IP Logged
|
|
|
Hello.
Could you please provide me with .htaccess/httpd.conf files of Ape.
Thank you.
__________________ Slavik Shynkarenko,
Helicon Tech.
|
| Back to Top |
|
| |
mwratten Newbie

Joined: 11 November 2007 Location: United States
Online Status: Offline Posts: 14
|
| Posted: 27 July 2011 at 1:09pm | IP Logged
|
|
|
Thanks. I have included the htaccess file, which I copied over from the old server below. The
httpd.conf is unchanged from the Ape installation. I don't think my question was clear. I need to use
the untranslated URL inside my ASP application, which was previously set in the HTTP_X_REWRITE_URL variable by isapi_rewrite3 but is not being set correctly in Ape.
Thanks
Mark
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.35
RewriteEngine On
RepeatLimit 10
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule . - [L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule .*\.asp {QSA,NC,L]
#RewriteRule ^project/([^/]+) /new.asp?page=project&room=$1 [QSA,NC,L]
RewriteRule ^projects?/([^/]+) /project.asp?page=project&room=$1 [QSA,NC,L]
RewriteRule ^projects? /project.asp [QSA,NC,L]
RewriteRule ^resources/([^/]+) /resources.asp?mode=$1 [QSA,NC,L]
RewriteRule ^eshowroom/? /default.asp [QSA,NC,L]
RewriteRule ^page/eshowroom/? /default.asp [QSA,NC,L]
RewriteRule ^page/([^/]+) /main.asp?page=$1 [QSA,NC,L]
RewriteRule ^dealer$ /dealer/default.asp [QSA,NC,L]
RewriteRule ^dealer/([^/]+)/?$ /dealer/$1.asp [QSA,NC,L]
RewriteRule ^brochure/([^/]+)/smartlink/([^/]+) /smartlink.asp?brochure=$1&smartlink=$2
[QSA,NC,L]
RewriteRule ^brochure/([^/]+)/url /smartlink.asp?brochure=$1 [QSA,NC,L]
RewriteRule ^brochure/([^/]+) /brochure.asp?brochure=$1 [QSA,NC,L]
RewriteRule ^room/([^/]+) /search.asp?room=$1 [QSA,NC,L]
RewriteRule (?:^manufacturer|^m)/([^/]+) /search.asp?manufacturer=$1 [QSA,NC,L]
RewriteRule (?:^brand|^b)/([^/]+) /search.asp?brand=$1 [QSA,NC,L]
RewriteRule (?:^category|^c)/([^/]+) /search.asp?category=$1 [QSA,NC,L]
RewriteRule ^locations /locations.asp [QSA,NC,L]
RewriteRule ^distributors?(/([^/]+))? /distributor.asp?distributor=$2 [QSA,NC,L]
RewriteRule ^glossary/?$ /glossary/default.asp [QSA,NC,L]
RewriteRule ^gallery/([^/]+) /gallery.asp?manufacturer=$1 [QSA,NC,L]
RewriteRule ^rcadmin/?$ /rcadmin/default.asp [QSA,NC,L]
RewriteRule ^([^/]+)/?$ /$1.asp [QSA,NC,L]
|
| Back to Top |
|
| |
Vyacheslav Admin Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 1542
|
| Posted: 28 July 2011 at 8:33am | IP Logged
|
|
|
Hello.
Please try to add the following code to httpd.conf:
__________________ Slavik Shynkarenko,
Helicon Tech.
|
| Back to Top |
|
| |
mwratten Newbie

Joined: 11 November 2007 Location: United States
Online Status: Offline Posts: 14
|
| Posted: 29 July 2011 at 12:31am | IP Logged
|
|
|
Still no joy I'm afraid. I tried adding the option and did a dump of Server
Variables, but could not find one that contains the untranslated URL or path.
Thanks
Mark
|
| Back to Top |
|
| |
Vyacheslav Admin Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 1542
|
| Posted: 29 July 2011 at 7:06am | IP Logged
|
|
|
Hello.
Please make sure you have the latest Helicon Ape version. Also it’d be good to see the full list of server variables that your script receives. Can you please provide such output.
Thank you.
__________________ Slavik Shynkarenko,
Helicon Tech.
|
| Back to Top |
|
| |
mwratten Newbie

Joined: 11 November 2007 Location: United States
Online Status: Offline Posts: 14
|
| Posted: 29 July 2011 at 10:42am | IP Logged
|
|
|
I'm using this rule to to translate to a simple script that loops through all
the IIS server variables -
RewriteRule ^test/server /test/server.asp [QSA,NC,L]
This is the output I get -
ALL_HTTP = HTTP_CACHE_CONTROL:max-age=0
HTTP_CONNECTION:keep-alive HTTP_CONTENT_LENGTH:0
HTTP_ACCEPT:text/html,application/xhtml+xml,application/xml;q=0.9,*/
*;q=0.8 HTTP_ACCEPT_ENCODING:gzip, deflate
HTTP_ACCEPT_LANGUAGE:en-us
HTTP_COOKIE:ASPSESSIONIDSQQRBTCB=IILDJGGBODCLHHOGONAGBBOL;
__unam=38b4175-13142ac8f84-188898c7-27; __switchTo5x=55
HTTP_HOST:www.myeshowroom.com HTTP_USER_AGENT:Mozilla/5.0
(Macintosh; Intel Mac OS X 10_7) AppleWebKit/534.48.3 (KHTML, like
Gecko) Version/5.1 Safari/534.48.3
ALL_RAW = Cache-Control: max-age=0 Connection: keep-alive Content-
Length: 0 Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate Accept-Language: en-us Cookie:
ASPSESSIONIDSQQRBTCB=IILDJGGBODCLHHOGONAGBBOL;
__unam=38b4175-13142ac8f84-188898c7-27; __switchTo5x=55 Host:
www.myeshowroom.com User-Agent: Mozilla/5.0 (Macintosh; Intel Mac
OS X 10_7) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1
Safari/534.48.3
APPL_MD_PATH = /LM/W3SVC/2/ROOT
APPL_PHYSICAL_PATH = D:\Webs\Remodel\
AUTH_PASSWORD =
AUTH_TYPE =
AUTH_USER =
CERT_COOKIE =
CERT_FLAGS =
CERT_ISSUER =
CERT_KEYSIZE =
CERT_SECRETKEYSIZE =
CERT_SERIALNUMBER =
CERT_SERVER_ISSUER =
CERT_SERVER_SUBJECT =
CERT_SUBJECT =
CONTENT_LENGTH = 0
CONTENT_TYPE =
GATEWAY_INTERFACE = CGI/1.1
HTTPS = off
HTTPS_KEYSIZE =
HTTPS_SECRETKEYSIZE =
HTTPS_SERVER_ISSUER =
HTTPS_SERVER_SUBJECT =
INSTANCE_ID = 2
INSTANCE_META_PATH = /LM/W3SVC/2
LOCAL_ADDR = 216.247.254.180
LOGON_USER =
PATH_INFO = /test/server.asp
PATH_TRANSLATED = D:\Webs\Remodel\test\server.asp
QUERY_STRING =
REMOTE_ADDR = 69.124.136.28
REMOTE_HOST = 69.124.136.28
REMOTE_USER =
REQUEST_METHOD = GET
SCRIPT_NAME = /test/server.asp
SERVER_NAME = www.myeshowroom.com
SERVER_PORT = 80
SERVER_PORT_SECURE = 0
SERVER_PROTOCOL = HTTP/1.1
SERVER_SOFTWARE = Microsoft-IIS/7.0
URL = /test/server.asp
HTTP_CACHE_CONTROL = max-age=0
HTTP_CONNECTION = keep-alive
HTTP_CONTENT_LENGTH = 0
HTTP_ACCEPT =
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING = gzip, deflate
HTTP_ACCEPT_LANGUAGE = en-us
HTTP_COOKIE =
ASPSESSIONIDSQQRBTCB=IILDJGGBODCLHHOGONAGBBOL;
__unam=38b4175-13142ac8f84-188898c7-27; __switchTo5x=55
HTTP_HOST = www.myeshowroom.com
HTTP_USER_AGENT = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7)
AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3
Thanks
Mark
|
| Back to Top |
|
| |
mwratten Newbie

Joined: 11 November 2007 Location: United States
Online Status: Offline Posts: 14
|
| Posted: 29 July 2011 at 8:32pm | IP Logged
|
|
|
Forgot to mention that the original URL is -
http://www.myeshowroom.com/test/server
|
| Back to Top |
|
| |
Vyacheslav Admin Group

Joined: 02 July 2008 Location: Ukraine
Online Status: Offline Posts: 1542
|
| Posted: 02 August 2011 at 3:03am | IP Logged
|
|
|
Hello.
Can you please design the script to output HTTP_X_REWRITE_URL variable specifically.
It’s possible that the iterator in your asp code doesn’t list all the variables.
You may also list all the request headers.
Thank you.
__________________ Slavik Shynkarenko,
Helicon Tech.
|
| Back to Top |
|
| |
|
|