windows server 2012 - setting up an SSL site with multiple bindings in IIS 8.5 -
i hoping can help. have 5 websites run off same .net code base , have different themes based on url.
for example, http://site1.mydomain.co.uk set http redirect https://site1.mydomain.co.uk , have main ssl iis entry mydomain.co.uk wildcard ssl certificate , bindings https://site1.mydomain.co.uk.
the issue have though when put http redirect on 1 of other urls, of them change last 1 entered. if makes sense?
so, let's have finished site1.mydomain.co.uk entry , move onto site2.mydomain.co.uk. create https://site2.mydomain.co.uk binding in main mydomain.co.uk iis record , put http redirect on http://site2.mydomain.co.uk redirects https://site2.mydomain.co.uk.
if go , check previous record, site1.mydomain.co.uk redirect has changed https://site2.mydomain.co.uk not wanted. why doing , how can prevent this?
is there chance you're using same folder in filesystem 5 websites?
in iis, http redirect settings stored in web.config file in folder you're serving from, if serving 5 sites same folder have same settings, i.e. changing settings 1 of them change of them.
that being said, recommend use url rewrite http https redirects. doing redirect in way compatible having 5 sites served same folder. can install here (warning: install requires iisreset, i.e. brief downtime site): http://www.iis.net/downloads/microsoft/url-rewrite
after installing url rewrite, can create rule redirect. stack overflow won't let me post screenshot here, uploaded here: http://postimg.org/image/4s4vjajs3/cf4f5c08/
also, if you're using wildcard certificate, doing redirect in way might remove need having 5 different websites.
Comments
Post a Comment