DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
11 Monitoring and Observability Tools for 2023
Learn more
  1. DZone
  2. Coding
  3. Tools
  4. Hosting a Google App Engine Application in Your Own Domain

Hosting a Google App Engine Application in Your Own Domain

Veera Sundar user avatar by
Veera Sundar
·
Apr. 04, 11 · Interview
Like (0)
Save
Tweet
Share
14.20K Views

Join the DZone community and get the full member experience.

Join For Free

Note: This post is written by/for the Java web developer who is using Google App Engine. Even if you are not an Java developer, but interested, you are welcome to read further.

google-app-engine-logo

When you create a new application in Google App Engine, you’ll get a domain name “yourapp.appspot.com”. But, who’ll want to host their app with such a suffix (unless you like it!)?

To improve your app branding, the best thing to do is to host your app in “www.yourapp.com“. So, how to do this in App Engine?

There are two ways.

  1. You can buy a new domain name with Google partnered sites (such as GoDaddy).
  2. If you have already bought a domain, you can map that domain to “yourapp.appspot.com”.

I’m going to explain the second method in this post.

Steps to host GAE app in your own domain

1. Buy Hosting Space and Signup for Google Apps

  1. The first step, obviously, is you should buy a domain + hosting. You will be adding CNAME entry in the DNS mapping to make things work and some hosting providers wont let you to add CNAME if you just bought only the domain name from them. So, it is good to buy the domain name as well as the hosting space so that you have full control over it.
  2. Then you need to signup for Google apps with your domain name. You can get a free Google Apps version which is pretty much sufficient for a small company/individual. You’ll be asked to verify the ownership of your domain. Just follow the steps given there. You’ll be also creating a admin account to manage Google Apps.

2. Add your application to Google Apps account

  1. Next, login to https://appengine.google.com and go to the Dashboard of your app and choose “Application Settings -> Domain Setup -> Add Domain“.
  2. In the “Add Domain” screen, enter your domain name. You’ll be asked to login to Google Apps with the admin account which you would have created during the second step. Once you login, your application will be added to your Google Apps account.

3. Add ‘www.yourapp.com’ sub-domain mapping to yourapp.appspot.com

  1. Now login to www.google.com/a/yourapp.com with your admin account (if you are not logged in already). There you can see you app engine application listed in the Google Apps dashboard. Click on your appspot application.
  2. In the next screen, enter www in the text box to add a URL in the form of www.yourapp.com. As Google app engine does not support naked domains, you have to map the sub-domain, in our case www, to the appspot application. Once you add the URL you’ll be given steps to add the CNAME record in your domain. After adding the CNAME record (explained in next steps), you should come back to this page and click complete.

4. Using CPanel, add a CNAME entry to ghs.google.com

  1. Now login to your domain admin panel. Since most of the hosting providers support CPanel, i’m giving the steps for CPanel.
  2. Login to yourapp.com/cpanel and go to “Advanced DNS Zone editor” where you can see the DNS mappings.
  3. Click the “Edit” link against the www.yourapp.com and type “ghs.google.com” against the CNAME field. Leave other fields as it is. Save the changes.
  4. Thats it. It will take some time for the DNS propagation to happen. After that you can start accessing your appspot application with the URL www.yourapp.com!

 

From http://veerasundar.com/blog/2011/04/hosting-google-app-engine-application-in-your-own-domain

app Google (verb) application Google App Engine Engine

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Fargate vs. Lambda: The Battle of the Future
  • Top 10 Best Practices for Web Application Testing
  • How To Build an Effective CI/CD Pipeline
  • Little's Law and Lots of Kubernetes

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: