cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1783
Views
0
Helpful
2
Replies

ACE redirect with SSL and subdirectory

pete.gill
Level 1
Level 1

I want to have a serverfarm that has the ability to do the following:

1.  When user types in http://www.test.com, the user is redirected to https://www.test.com/portal

2.  When user types in https://www.test.com, the user is redirected to https://www.test.com/portal

3.  SSL rewrite occurs for both


I have configured this and everything works fine with some exceptions on the redirects.

A.  I cannot get #2 above to work.  Only the http to https redirect works.  Is there a different way to get https://www.test.com to https://www.test.com/portal to work?

B.  When using #1 above, the user clicks on a link on the page and the link seems to take the user back to my original http: to https: redirect instead of using the URL in the link that was clicked.  I am using a "webhost-redirection https://%h/portal/default.aspx 302" for my rserver redirect.  I have tried a variety of other ways.  If I choose "webhost-redirection https://%h/portal/%p 302, then I end up getting https://www.test.com/portal/portal which obviously doesn't work either.  The only way I can seem to get the redirect to work properly is if I have it done on the server itself (http://www.test.com to https://www.test.com/portal/default.aspx.)

Is this a common issue for http to https: redirect with subdirectories?

Is there a way I can force the ACE to change any URLs from http to https so that after the initial 302 redirect, any link clicked will change http to https?

Thanks,

P

2 Replies 2

Peter Koltl
Level 7
Level 7

Please show us your config, especially the 'ssl url rewrite' part.

Gilles Dufour
Cisco Employee
Cisco Employee

The problem is most probably your class-map which catches too much url (including the ones not to be redirected).

Without the config and a sniffer trace to see the http requests and responses, it will be difficult to help you.

Gilles.

Review Cisco Networking for a $25 gift card