Groups | Blog | Home
all groups > iis security > october 2004 >

iis security : permanent redirect and ssl


Dushan Bilbija
10/7/2004 12:28:36 AM
hello

we have several different domain names we'd like to route to the same site.
simple eough, just add hostheaders. however... we also want the address to
be translated so that the primary address is used.

eg, if the primary address is http://www.mycompany.com we want
http://www.mycompanyalias.com/about/index.asp to not only load the same page
as http://www.mycompany.com/about/index.asp, but to actually have the
address displayed as http://www.mycompany.com/about/index.asp

this is also simple enough... create a 2nd web site on the same ip, have a
blank hostheader and have the site redirected to http://www.mycompany.com.
so... this site gets all requests to our ip EXCEPT http://www.mycompany.com
requests (since it's the hostheader for the primary web site) and redirects
them AND translates the address to http://www.mycompany.com

the problem lies in ssl

regardless of what i set up... it seems the address i type in is preserved.
i get the cert warning (cause the cert is issued to www.mycompany.com, not
www.mycompanyalias.com) and everything works fine... but i cannot get it to
load https://www.mycompany.com as the address.

why is this? is there a way to do it?

iow, i want

http://www.mycompany.com/about/index.asp to go to
http://www.mycompany.com/about/index.asp
http://www.mycompanyalias.com/about/index.asp to go to
http://www.mycompany.com/about/index.asp

https://www.mycompany.com/about/index.asp to go to
https://www.mycompany.com/about/index.asp
https://www.mycompanyalias.com/about/index.asp to go to
https://www.mycompany.com/about/index.asp

doable?

any help would be greatly appreciated.

dushan bilbija

David Wang [Msft]
10/7/2004 1:11:45 AM
Since the redirect over HTTPS is happening correctly (next to the Cert
warning -- which is expected), what you are observing is a browser-specific
behavior that cannot be controlled by the server. The server cannot make
the client display particular URLs in the URL location bar.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
hello

we have several different domain names we'd like to route to the same site.
simple eough, just add hostheaders. however... we also want the address to
be translated so that the primary address is used.

eg, if the primary address is http://www.mycompany.com we want
http://www.mycompanyalias.com/about/index.asp to not only load the same page
as http://www.mycompany.com/about/index.asp, but to actually have the
address displayed as http://www.mycompany.com/about/index.asp

this is also simple enough... create a 2nd web site on the same ip, have a
blank hostheader and have the site redirected to http://www.mycompany.com.
so... this site gets all requests to our ip EXCEPT http://www.mycompany.com
requests (since it's the hostheader for the primary web site) and redirects
them AND translates the address to http://www.mycompany.com

the problem lies in ssl

regardless of what i set up... it seems the address i type in is preserved.
i get the cert warning (cause the cert is issued to www.mycompany.com, not
www.mycompanyalias.com) and everything works fine... but i cannot get it to
load https://www.mycompany.com as the address.

why is this? is there a way to do it?

iow, i want

http://www.mycompany.com/about/index.asp to go to
http://www.mycompany.com/about/index.asp
http://www.mycompanyalias.com/about/index.asp to go to
http://www.mycompany.com/about/index.asp

https://www.mycompany.com/about/index.asp to go to
https://www.mycompany.com/about/index.asp
https://www.mycompanyalias.com/about/index.asp to go to
https://www.mycompany.com/about/index.asp

doable?

any help would be greatly appreciated.

dushan bilbija



Dushan Bilbija
10/7/2004 7:20:50 AM
ah ok... so the server sends the 301 response and the browser interprets
that as it sees fit? or does it have something to do with https requests
being encrypted?

[quoted text, click to view]

David Wang [Msft]
10/7/2004 2:38:19 PM
Correct. The server can only send the 301/302 response and tell the client
"go to THIS URL".

What the client does with this information is completely up to it. It can
ignore the URL, follow the URL, popup dialog boxes, set the value in the URL
location bar, crash, etc.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
ah ok... so the server sends the 301 response and the browser interprets
that as it sees fit? or does it have something to do with https requests
being encrypted?

[quoted text, click to view]


AddThis Social Bookmark Button