Hosting a Blog and App on a single Azure Web Site? - azure

I like the idea of using Azure to host a Wordpress Blog.
I currently have an Azure Website that I'd like to add a blog to. Ideally I can create another website for the blog, and then have blog.mysite.com always show the contents of myblog.azurewebsites.net. Would this be possible?
I can have my domain registrar forward/mask from blog.mysite.com, but if there's a way to do it without masking, any info on getting that done would be awesome.

When you create a web site, Windows Azure provides a friendly
subdomain on the azurewebsites.net domain so your users can access
your web site using a URL like http://.azurewebsites.net.
However, if you configure your web sites for Shared or Standard mode,
you can map your web site to your own domain name.
http://www.windowsazure.com/en-us/develop/net/common-tasks/custom-dns-web-site/

Related

Create blog's subdomain for ASP.NET & Wordpress

G'day
I have web page www.mypage.com which is written on ASP.NET, domain name bought from godaddy and hosted at Microsoft Azure.
I want to create blog hosted at Azure, using wordpress, which opens as blog.mypage.com or mypage.com/blog.
Should I configure that at azure? or mypage project? or godaddy?
Thanks
Setup a CNAME of blog.mypage.com on godaddy (or whoever your DNS hosting is provided by) to point to the Azure (websites, I presume?) address.
Alternatively you can have your blog as a Virtual Application and you would not need to pay for extra site if you have blog sitting in www.mysite.com/blog.
See this answer on how to configure virtual application:

How to redirect from an Azure sub-domain name?

I have some HTML widgets hosted on an Azure website. I would like to move these to a different Azure website.
Unfortunately, the mobile apps that consume these widgets are referencing their Azure sub-domain name directly. Example: old_widgets_site.cloudapp.net
Now I would like to shut down the old location where the widgets are hosted and move over to a new Azure website. Example: new_widgets_site.cloudapp.net :)
Is there a way for me to shut down the old website while still supporting the older mobile apps? Or do I have to keep the old app alive so I can host some kind of URL redirect mechanism on it?
PS - I know it's much better to reference a "virtual" domain name and have that redirect to Azure using DNS CNAMEs and I will. My question is not about that, but about redirecting *.cloudapp.net sub-domains.
To my understanding there is no option within Azure Web Sites to configure a redirect from within the portal.
What you could do is keep the old Web Site active and replace the content with a URL redirect statement in the web.config file (See: http://www.iis.net/learn/extensions/url-rewrite-module/using-the-url-rewrite-module). Of course that does mean you need to keep the old Web Site active.
Maybe you want to submit this idea using the Azure Feedback Forums: http://feedback.azure.com/

How to add more web apps to existing windows azure web site

I created a new web site on Windows Azure and chose WordPress from the Gallery to start the site. This is my company's website with my domain name. Now I want to add another web app from the gallery, let's say OpenX, on the same site so that it is running on the same domain. Does anyone know how to add another web app to an existing Azure website?
Create new web site. Each web site can use different subdomains.
Your original page can be www.domain.com for example, and the new one can be something.domain.com.
You just need to register the name server entry for each subdomain as you did for the original domain.
Yes you can create virtual directories. At the bottom of the Configure tab, there's a Virtual Applications and Directories section. Just create a new directory and check the Application checkbox.

Can I have an azure website be a virtual in the same domain as my azure cloud service

Hope I explain this clearly enough. I am migrating a web application to azure. I have it setup so far as an aspx web application and a sql server database. The site is hosted (don't know if that's the correct term) in a cloud service (which I deployed using Visual Studio). Everything works great so far. What I want to do now is add a WP blog. I have created on as a test and it's really easy as an azure website.
What I want to do is this: If my custom domain is www.site.com and that points to the cloud service web role, can I create a WP blog as a separate azure website at myblog.azurewebsites.net and somehow point a virtual at that so that www.site.com/blog will point to the blog website? I know how to add a domain to the website, just not sure how to do the virtual part...
Thanks for any suggestions!
-Jeff
As far as I know, NO, unless you can modify the BLOG's code to keep rewriting URL's to make it look like www.site.com/blog
Simpler alternative: implement a blog.site.com instead of www.site.com/blog and map it to your blog on Azure sites. You can also setup a redirect to work from www.site/com/blog to go to blog.site.com

Map custom domain (and wildcard sub-domains) to Azure Website

I've looked at all related posts in MSDN and stack overflow but still having difficulty finding a solution.
I am looking to map a domain and all sub-domains to my windows azure website. It is a reserved website instance. I am using Amazon Route 53 DNS manager and have mapped a wildcard CNAME to my azure sub domain, and created a redirect on the naked domain to the www. subdomain.
When I navigate to the naked root, the redirect kicks in and I'm brought to www..com, where I receive a 404 error from azure.
I know the wildcard CNAME is working. I've verified using MXToolbox. If I go to "Manage Domains" in the Azure web UI admin system, I can manually add "www..com" or any other subdomain (e.g. "helloworld..com"). Azure verifies it fine and after saving, I can pull up the website fine by navigating to that subdomain and my azure website loads.
Is there any way to add wild card subdomains without having to verify each one manually through the azure ui interface? My application is a SaaS that relies on custom user sub-domains to serve up their branded website and gain access to their account so I need any and all subdomains to map to my application.
Currently, wildcard domains are not supported as far as I know. At least on Windows Azure Web Sites. They are on the roadmap, but currently you'll have to rely on adding every domain manually.
See wildcard comment on "Configuring a custom domain name for a Windows Azure web site".
Another feature not yet available on Azure Web Sites is SSL using a vanity (your own) domain name. If you want full control of your site(s) you can use Azure Cloud Services instead of Web Sites. With Cloud Services you can provision certificates, domain names, and run multiple sites on the same instances using host header routing.
Anything you can do with IIS Management you can do with a cloud service.
You're a little closer to the metal compared to Azure Web Sites (but not as close as with a VM) and you get load balancing, scaling, caching, and other goodness. Visual Studio 2010/2012 has excellent deployment tooling. You will need to study up on Azure deployment projects from VS, bit it's not bad.

Resources