How to map URLs to my new domain - .htaccess

I have currently a Java web app running on Google App Engine with the following url http://MYAPP.appspot.com
I recently purchased a domain example.com through NAMECHEAP.
How can I make URLs to http://MYAPP.appspot.com mapped to http://www.example.com?
For example, URL to "www.example.com/admin/index.jsp" can be mapped to "MYAPP.appspot.com/admin/index.jsp" automatically.
Is this something that can be configued on the domain management side or any special tool is needed?

Related

Domain forwarding from Google Domain to Azure Web App Service not masking URL

I have an Azure hosted React website running on a Web App Service. Let's call it mywebsite.azurewebsites.net
I have now purchased the domain name through Google Domains. Let's call it www.mywebsite.com.
The redirect is working fine. I type in www.mywebsite.com and I can see my website. However in the URL bar I can still see the address mywebsite.azurewebsites.net. I clearly want to see my new domain name. Can anyone provide any insight as to why this is?
You need to map an existing custom DNS name to Azure App Service.
See more: Azure Tutorial

In a linux shared hosting account content node app and Wordpress web, WordPress web using main domain and node app using a subdomain is it possible

I have a one hosting account and one domain with Wordpress hosted in it.I need to put Node.js base Expresss web application to subdomain.
Ex- www.abc.com = Wordpress website
app.abc.com = Node.js base Expresss web application.
Is it possible to do with one hosting account and one domain that i have?If it is possible how to configure the subdomain link to Expresss web application?
(my hosting account support multiple websites and it is a linux shared hosting account)

Nested Profiles in Azure Traffic Manager not working properly

I had created two Traffic manager profiles naming as Firstprofile, Secondprofile.Firstly Secondprofile configured with app service end point. Now Secondprofile added as Endpoint to Firstprofile (called nested profile) .While browsing the Firstprofile showing the error as follows "Error 404 - Web app not found"
The HTTP request you make to your Web App includes a 'Host' header containing the domain name used in the request. This must be recognized by the Web App. The standard Web App domain name (foo.azurewebsites.net) always works, any other domain names appear in the Web App's custom domains list.
When you add a Web App to Traffic Manager, the Traffic Manager profile's domain name (child.trafficmanager.net) is automatically added to the Web App's custom domains list. So far, so good.
There is a known issue in the Web App / Traffic Manager integration that when using nested Traffic Manager profiles, the domain name of the parent profile (parent.trafficmanager.net) is not added to the Web App custom domain list. This is why you're seeing 404 errors when trying to access the Web App via the parent profile.
As a workaround, you should configure a DNS record in a vanity domain (e.g. www.contoso.com) as a CNAME to parent.trafficmanager.net, and register the vanity domain name as a custom domain in your Web App. Access to the web app via the vanity domain should now work, and this will use the nested Traffic Manager profile as part of the DNS resolution.
Jonathan (Program Manager, Azure Traffic Manager)
The problem is exactly what Jonathan Tuliani mentioned, but there is an alternative solution.
You need to add the parent Traffic Manager profile's domain name to the Web App.
Just go to Custom Domains and SSL -> Bring external domain -> enter the domain name e.g. tmdemo.trafficmanager.net. It will get allowed and everything works.
I just wrote a blog post about it: Nested Traffic Manager profiles

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

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/

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