asp.net mvc 3 - Custom Domain Mapping in Azure -



asp.net mvc 3 - Custom Domain Mapping in Azure -

i have .net mvc 3, sql server application running on azure. has 2 web role instances , single worker role instance.

we allow customers insert iframe (i know, not ideal, bare me) site shows our content.

to content, have public page accepts companies unique identifier. instance, stackoverflow utilize 'http://myapplication.com/stack-overflow'. homecoming html page specific company.

we thought of mapping cname record on clients side straight content on our application. understand need accept, in stackoverflow's case, 'stack-overflow.myapplication.com' find extract subdirectory , homecoming content @ 'http://myapplication.com/stack-overflow'.

can shed lite on how done on azure?

any help much apprenticed.

regards, brian

it same azure , iis deployed application. need map custom sub-domains cname cloudapp.net domain. not alter in service definition and/or configuration files. , withing application, have simple logic check for:

request.headers["host"]

this header have total host name (i.e. stack-overflow.myapplication.com). can parse url, extract subdomain , map appropriate resource.

another approach utilize url rewrite module iis , build similar i did apache web server , mod_rewrite (i think need). not sure whether can utilize apache rewrite rules 1:1 iis rewrite module, starting point. note (since azure sdk 1.3) url rewrite module enabled default in azure total iis).

asp.net-mvc-3 azure cname domain-mapping

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -