Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 3.0 support forum
 Helicon Tech : ISAPI_Rewrite 3.0 support forum
Subject Topic: Simple ISAPI v3(lite) IISv6 problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
qgl176
Newbie
Newbie


Joined: 03 April 2007
Location: Virgin Islands
Online Status: Offline
Posts: 6
Posted: 06 October 2008 at 5:26pm | IP Logged Quote qgl176

Basically my problem is with rewriting a Citrix Web interface url on a IIS v6 server using isapi v3(lite).   Previous to this I was using v2(lite) on IISv5 with no problem.

In previous IISv5 server, which had only one website configured and no additional headers defined for the website other than the default, I was using isapi v2 with httd.ini as follows:

--------------------------

[ISAPI_Rewrite]

# Defend your computer from some worm attacks
RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]

# Citrix Login page
RewriteCond Host: (CitrixApps\.mycompany\.com)
RewriteRule / /Citrix/MetaFrame/auth/login\.aspx [L,I]

--------------------------

This config worked as expected with url http://citrixapps.mycompany.com being rewritten to http://citirix.mycompany.com/citrix/metafram/auth/login.aspx (there is a dns entry in our domain that points this the host even though there is no IIS header defined on website for citrixapps)

Now I want http://citrixapps.mycompany.com, (dns changed to point to new server) to be rewritten on new IIS v6 server using isapi v3(lite) to http://citrixapps/citrix/accessplatform/auth/login.aspx.

I sort of have it working, but with erratic results.  Not sure what I am doing woring or if I need to buy full version.  Here are my details.

On this IIS v6 server I have multiple websites defined with dedicated ip addresses configured for each site.  In the site in which I installed the Citrix Web Interface I had to create additional site headers (without it I was just getting page can not be displayed), I added to headers citrixapps, and citrixapps.mycompany.com.  So, as I stated above, I want http://citrixapps.mycompany.com, which now points to my new website, on new server, to be rewritten to  http://citrixapps/citrix/accessplatform/auth/login.aspx.

When I use a httpd.conf file like the following:

--------------------------

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.56

RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteLogLevel 9
#RewriteBase /
# unsupported directive: [ISAPI_Rewrite]

#  Defend your computer from some worm attacks
RewriteRule ^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$ . [NC,F,O]


##  Citrix Login page

RewriteCond %{HTTP:Host} ^(citrixapps\.mycompany\.com)$
RewriteRule ^/$ /Citrix/accessplatform/auth/login\.aspx [NC,L]

RewriteCond %{HTTP:Host} ^(citrixapps)$
RewriteRule ^/$ /Citrix/accessplatform/auth/login\.aspx [NC,L]

--------------------------

I get 403 message " You are not authorized to view this page."  In the address bar I just see http://citrixapps/.

My thoughts are that this particular problem has something to do with IIS permissions on the directory how it uses the different accounts(aspnet, network service) to serve the page.  If I disable the rules and use the url http://citrixapps/citrix/accessplatform/auth/login.aspx directly I have no problem.  So I don't really understand why using the rewrite would deny me permission to the page, when not using rewrite and using the full url directly works fine.
Permissions on the application directory root are Administrators(full), Authenticated users(RX), Network Service(RX).  I don't know if not having the aspnet account in the permisisons is causing the problem, but it works without out trying to rewrite, so before I make any changes to permission I want to see if I am doing rewrite correclty.
Here is excerpt from rewrite.log

--------------------------

10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:37 GMT [citrixapps/sid#687752634][rid#20193216/initial] (2) init rewrite engine with requested uri /
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:37 GMT [citrixapps/sid#687752634][rid#20193216/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:37 GMT [citrixapps/sid#687752634][rid#20193216/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:37 GMT [citrixapps/sid#687752634][rid#20193216/initial] (3) applying pattern '^/$' to uri '/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:37 GMT [citrixapps/sid#687752634][rid#20193216/initial] (4) RewriteCond: input='citrixapps' pattern='^(citrixapps)$' => matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:37 GMT [citrixapps/sid#687752634][rid#20193216/initial] (1) escaping /Citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:37 GMT [citrixapps/sid#687752634][rid#20193216/initial] (1) Rewrite URL to >> /Citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:37 GMT [citrixapps/sid#687752634][rid#20193216/initial] (2) rewrite '/' -> '/Citrix/accessplatform/auth/login.aspx'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:37 GMT [citrixapps/sid#687752634][rid#20193216/initial] (2) internal redirect with /Citrix/accessplatform/auth/login.aspx [INTERNAL REDIRECT]
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:57 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (2) init rewrite engine with requested uri /
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:57 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:57 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:57 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (3) applying pattern '^/$' to uri '/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:57 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (4) RewriteCond: input='citrixapps.mycompany.com' pattern='^(citrixapps)$' => not-matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:57 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (3) applying pattern '^/$' to uri '/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:57 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (4) RewriteCond: input='citrixapps.mycompany.com' pattern='^(citrixapps\.mycompany\.com)$' => matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:57 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (1) escaping /Citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:57 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (1) Rewrite URL to >> /Citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:57 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (2) rewrite '/' -> '/Citrix/accessplatform/auth/login.aspx'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:54:57 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (2) internal redirect with /Citrix/accessplatform/auth/login.aspx [INTERNAL REDIRECT]

--------------------------

If I use the following httpd.conf file to try and redirect to the new url I get strange results

--------------------------
# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.56

RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
LogLevel debug
RewriteLogLevel 9
#RewriteBase /
# unsupported directive: [ISAPI_Rewrite]

#  Defend your computer from some worm attacks
RewriteRule ^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$ . [NC,F,O]


##  Citrix Login page

RewriteCond %{HTTP:Host} ^(citrixapps\.mycompany\.com)$
RewriteRule (.+) http://citrixapps/citrix/accessplatform/auth/login\.aspx$1 [L,I,R]

--------------------------

This seams to  works fine and I could live with it, but the logs does not make it look like it worked cleanly.  any idea of what is going on before the actually redirection occurs?

--------------------------


10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (2) init rewrite engine with requested uri /citrix/accessplatform/auth/login.aspx/
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/citrix/accessplatform/auth/login.aspx/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '(.+)' to uri '/citrix/accessplatform/auth/login.aspx/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (4) RewriteCond: input='citrixapps' pattern='^(citrixapps\.mycompany\.com)$' => not-matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193512/initial] (2) init rewrite engine with requested uri /Citrix/AccessPlatform/auth/login.aspx/
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193512/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193512/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/Citrix/AccessPlatform/auth/login.aspx/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193512/initial] (3) applying pattern '(.+)' to uri '/Citrix/AccessPlatform/auth/login.aspx/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193512/initial] (4) RewriteCond: input='citrixapps' pattern='^(citrixapps\.mycompany\.com)$' => not-matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (2) init rewrite engine with requested uri /Citrix/AccessPlatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/Citrix/AccessPlatform/auth/login.aspx'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '(.+)' to uri '/Citrix/AccessPlatform/auth/login.aspx'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (4) RewriteCond: input='citrixapps' pattern='^(citrixapps\.mycompany\.com)$' => not-matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193512/initial] (2) init rewrite engine with requested uri /Citrix/AccessPlatform/media/HOVNewlogo.jpg
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193512/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193512/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/Citrix/AccessPlatform/media/HOVNewlogo.jpg'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193512/initial] (3) applying pattern '(.+)' to uri '/Citrix/AccessPlatform/media/HOVNewlogo.jpg'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193512/initial] (4) RewriteCond: input='citrixapps' pattern='^(citrixapps\.mycompany\.com)$' => not-matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (2) init rewrite engine with requested uri /Citrix/AccessPlatform/media/spacer.gif
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/Citrix/AccessPlatform/media/spacer.gif'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '(.+)' to uri '/Citrix/AccessPlatform/media/spacer.gif'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20192920/initial] (4) RewriteCond: input='citrixapps' pattern='^(citrixapps\.mycompany\.com)$' => not-matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193216/initial] (2) init rewrite engine with requested uri /Citrix/AccessPlatform/media/site_icon.gif
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193216/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193216/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/Citrix/AccessPlatform/media/site_icon.gif'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193216/initial] (3) applying pattern '(.+)' to uri '/Citrix/AccessPlatform/media/site_icon.gif'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps/sid#687752634][rid#20193216/initial] (4) RewriteCond: input='citrixapps' pattern='^(citrixapps\.mycompany\.com)$' => not-matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (2) init rewrite engine with requested uri /
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (3) applying pattern '(.+)' to uri '/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (4) RewriteCond: input='citrixapps.mycompany.com' pattern='^(citrixapps\.mycompany\.com)$' => matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (1) escaping http://citrixapps/citrix/accessplatform/auth/login.aspx/
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (2) explicitly forcing redirect with http://citrixapps/citrix/accessplatform/auth/login.aspx/
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:47:15 GMT [citrixapps.mycompany.com/sid#687752634][rid#20193216/initial] (2) internal redirect with / [INTERNAL REDIRECT]

--------------------------


If this is as expected, I can live with it, however I am trying to see if I can also get http://citrixapps/ to rewrite to the full url as well. So if I tried this.....

--------------------------

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.56

RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
LogLevel debug
RewriteLogLevel 9
#RewriteBase /
# unsupported directive: [ISAPI_Rewrite]

#  Defend your computer from some worm attacks
RewriteRule ^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$ . [NC,F,O]


##  Citrix Login page


RewriteCond %{HTTP:Host} ^(citrixapps)$
RewriteRule (.+) http://citrixapps/citrix/accessplatform/auth/login\.aspx [L,I,R]

--------------------------

it just seems to do endless http gets, never actually doing anything.  Here is excerpt from log file...


--------------------------

10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20193216/initial] (2) init rewrite engine with requested uri /
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20193216/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20193216/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20193216/initial] (3) applying pattern '(.+)' to uri '/'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20193216/initial] (4) RewriteCond: input='citrixapps' pattern='^(citrixapps)$' => matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20193216/initial] (1) escaping http://citrixapps/citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20193216/initial] (2) explicitly forcing redirect with http://citrixapps/citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20193216/initial] (2) internal redirect with / [INTERNAL REDIRECT]
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (2) init rewrite engine with requested uri /citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/citrix/accessplatform/auth/login.aspx'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '(.+)' to uri '/citrix/accessplatform/auth/login.aspx'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (4) RewriteCond: input='citrixapps' pattern='^(citrixapps)$' => matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (1) escaping http://citrixapps/citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (2) explicitly forcing redirect with http://citrixapps/citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (2) internal redirect with /citrix/accessplatform/auth/login.aspx [INTERNAL REDIRECT]
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (2) init rewrite engine with requested uri /citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/citrix/accessplatform/auth/login.aspx'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '(.+)' to uri '/citrix/accessplatform/auth/login.aspx'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (4) RewriteCond: input='citrixapps' pattern='^(citrixapps)$' => matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (1) escaping http://citrixapps/citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (2) explicitly forcing redirect with http://citrixapps/citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (2) internal redirect with /citrix/accessplatform/auth/login.aspx [INTERNAL REDIRECT]
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (2) init rewrite engine with requested uri /citrix/accessplatform/auth/login.aspx
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (1) Htaccess process request C:\Program Files\Helicon\ISAPI_Rewrite3\httpd.conf
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$' to uri '/citrix/accessplatform/auth/login.aspx'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (3) applying pattern '(.+)' to uri '/citrix/accessplatform/auth/login.aspx'
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (4) RewriteCond: input='citrixapps' pattern='^(citrixapps)$' => matched
10.108.6.44 10.108.6.44  Mon, 06-Oct-2008  17:35:28 GMT [citrixapps/sid#687752634][rid#20192920/initial] (1) escaping http://citrixapps/citrix/accessplatform/auth/login.aspx

--------------------------

It just goes on and on and on until I stop the browser.   If I use this next httpd.conf file, I get the same as above for both http://citirxapps and http://citrixapps.mycompany.com.

--------------------------

# Helicon ISAPI_Rewrite configuration file
# Version 3.1.0.56

RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
LogLevel debug
RewriteLogLevel 9
#RewriteBase /
# unsupported directive: [ISAPI_Rewrite]

#  Defend your computer from some worm attacks
RewriteRule ^.*(?:global.asa|default\.ida|root\.exe|\.\.).*$ . [NC,F,O]


##  Citrix Login page


RewriteCond %{HTTP:Host} ^(citrixapps)$
RewriteRule (.+) http://citrixapps/citrix/accessplatform/auth/login\.aspx [L,I,R]

RewriteCond %{HTTP:Host} ^(citrixapps\.mycompany\.com)$
RewriteRule (.+) http://citrixapps/citrix/accessplatform/auth/login\.aspx [L,I,R]

--------------------------


Any help on getting this working would be appreciated.

Back to Top View qgl176's Profile Search for other posts by qgl176
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 07 October 2008 at 3:35am | IP Logged Quote Anton

Please try to use this config:

RewriteEngine On
RewriteLogLevel 9
#RewriteBase /

# Citrix Login page

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP:Host} ^citrixapps$
RewriteRule (.+) http://citrixapps/citrix/accessplatform/auth/login.aspx [NC,L,R=301]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP:Host} ^citrixapps\.mycompany\.com$
RewriteRule (.+) http://citrixapps/citrix/accessplatform/auth/login.aspx [NC,L,R=301]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
qgl176
Newbie
Newbie


Joined: 03 April 2007
Location: Virgin Islands
Online Status: Offline
Posts: 6
Posted: 07 October 2008 at 9:40am | IP Logged Quote qgl176

Anton, Worked like a charm.

For my information, can you explain a bit.

For instance the first rewrite condition, and needing to use "r=301".

 

Thanks again I really appreciate it.

Back to Top View qgl176's Profile Search for other posts by qgl176
 
Anton
Moderator Group
Moderator Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 4837
Posted: 08 October 2008 at 2:19am | IP Logged Quote Anton

The first condition checks if there is a physical file with such name as requested, and if no, it proceeds.
R=301 is a permanent redirect.

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum