9lessons programming blog
Loading Search
Monday, December 26, 2011

Amazon EC2 Multi Domain Setup and Technology Behind 9lessons

Recent days I received lots for requests from my readers that asked to me few questions about 9lessons.info hosting and CMS technology. This post explains you how do I setup my domains + sub domains with Blogger and Amazon EC2 hosting. How to setup multi domains setup in Amazon Elastic Compute Cloud using htaccess file.

Amazon EC2 Multi Domain Setup


Why Blogger
It's powerful, fast and it is Google's product. 9lessons.info powered my many cloud services picasa for images, download scripts by box.net and revenue by Google adsense
Amazon EC2 Multi Domain Setup


Domain Redirection
.htacces code for redirecting 9lessons.info to www.9lessons.info
RewriteEngine On
RewriteCond %{HTTP_HOST} ^9lessons.info
RewriteRule (.*) http://www.9lessons.info/$1 [R=301,L]

Sub Domain Redirection
Sub domain redirection mapping to folder. Here demos.9lessons.info connecting to demos folders.
RewriteCond %{HTTP_HOST} ^demos\.9lessons\.info$
RewriteCond %{REQUEST_URI} !^/demos/
RewriteRule (.*) /demos/$1

RewriteCond %{HTTP_HOST} ^labs\.9lessons\.info$
RewriteCond %{REQUEST_URI} !^/labs/
RewriteRule (.*) /labs/$1

Godaddy DNS Settings
Godaddy DNS settings

Other Domain
Same way third party domain redirection.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^androidhive.info
RewriteRule (.*) http://www.androidhive.info/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^www\.androidhive\.info$
RewriteCond %{REQUEST_URI} !^/androidhive/
RewriteRule (.*) /androidhive/$1

Elastic IP Redirection
IP redirection to www.9lessons.info
<script>
window.location.href = "http://www.9lessons.info/";
</script>

My Favorite Tools and Fonts
Specially I love hand drawing effects. I'm using Adobe Illustrator and Photoshop for designing banners and here my favorite fonts.
Amazon EC2 Multi Domain Setup

Download Fonts
Sponsored Links

Share this post

Comments
{ 27 comments }
Sensitive Designs said...

You didn't included Helvetica in the Download List :(

Vicky Sadhu said...

can i host one of my blogger sub-domain on wordpress with Amazon EC2? what are the pricing for Amazon EC2?

Bharat Mandava said...

Its always good to use Blogger, many awesome options are available including custom domain name registration.

Anonymous said...

Better switch away from Go daddy hosting or else you visitors will switch away from your blog.
How can you still be on go daddy ( fools supporting SOPA) while the whole world is switching.

rushan said...

I think i too wanna go for Amazon EC2

Anonymous said...

@designs: Helvetica is part of all operating systems, don't need to downwload...

Anonymous said...

gracias

Anonymous said...

Disappointing to see that you are still with godaddy...

Nuhil said...

Can you please help in one issue?
1. I have successfully done so that [mydomain.net] points to my EC2 server.
2. Also in turns [mydomain.net] into [www.mydomain.net].
3. Even I've done so that it go [www/demos] when request [demos.mydomain.net]

But I have a blog [myname.blogspot.com]. What should I do so that [www.mydomain.net] points to [myname.blogspot.com]?

I have added CNAME [www]---[ghs.google.com] in DNS manager.

Can you please assist?

Srinivas Tamada said...

Hi Nuhil

Go to blogger blog Settings -> Publishing add your custom domain

Hrishikesh said...

I have my blog on tumblr. Would it be wise to move it to blogger. I think tumblr doesn't have a great text editor like for writing the scripts in colors. What do you say? Please reply.

Nuhil Mehdy said...

Thanks :) Got it and its working

youngbobby said...

How do you fix up templating on blogger?

Chiranjeev Kumar said...

Waiting for this post since long ago. I will must do it for my blog. thanks for share this great tech behing 9lessons.

MohanKumar S said...

Dear Srini,

Y do you use .htaccess to control all your subdomain forwarding? you could still do it at goDaddy/any DNS manager itself.

MohanKumar S said...

I mean by using virtual host instead of .htaccess

Mohit Kumar Bansal said...

hi srinivas, can you please post a detailed tutorial on how to configure subdomains with webhosting? actually the word called ".htaccess" and how to implement this seems to be very unknown for a non-techie kind of person like me. I would be glad if you could help me out in this regard. Thanks

dhi said...

good on1

joomla web designs said...

Technology show good results, it always a best deal of getting new idea.

Free iphone application said...

If blogger.com provide me free hosting so why should I use amazon cloud?
Will blogger.com give this service in huge traffic flow?
I am waiting for your valuable answer.
Thanks for this valuable post. You are always rockzz :-)

sham said...

Dude do you work in TCS ?

Srinivas Tamada said...

@Sham

Yes

karan sapkale said...

nice

hosting said...

it very useful system wit large web pages. thank you

Indian domains development said...

Thanks for sharing this!
I'm planning to use Blogger and Amazon EC2.

KRESSLY MAX said...

Hi

First of all what is the link to Amazon EC2 ?

And with what you wrote can i upload my php mysql file on the server with my design ? Is it like a hosting where i can upload my website ?

Jon said...

Thank you for sharing the wonderful information.

Post a Comment

Subscribe now!Recent Posts

Categories

Subscribe now!Popular Posts

People Says

@9lessons thank you for the great tutorials, we truly appreciate your contributions to the design community.

Smashing Magazine

Like Me

follow me
products

9lessons labs

9lessons clouds

Android application

Chrome Extension