webdevRefinery Forum: Namecheap domain to EC2 - webdevRefinery Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Rate Topic: -----

User is offline JustinP 

  • Group: Members
  • Posts: 311
  • Joined: 26-February 11
  • LocationEarth!

Posted 16 September 2012 - 03:47 PM (#1)

Namecheap domain to EC2


So I have a domain name (from namecheap), and I have an index.html in my EC2 instance. The EC2 instance has an elastic IP associated with it, now how do I get my domain to point to the index.html file?
0


User is offline Daniel15 

  • dan.cx
  • Group: Moderators
  • Posts: 3415
  • Joined: 17-April 10
  • LocationMelbourne, Australia
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 16 September 2012 - 05:10 PM (#2)

Edit your DNS records at NameCheap. You need to create an "A" record that points to your elastic IP. See http://www.namecheap...ds-for-a-domain for more information.

If you want email, you also need to set up MX records.
Daniel15! :D
Posted Image

Repeat after me: jQuery is not JavaScript. It is not the answer to every JavaScript-related question. When you have to write some JavaScript, do not instantly react with "Oh, I'll do that with jQuery!"

Spoiler
0


User is offline JustinP 

  • Group: Members
  • Posts: 311
  • Joined: 26-February 11
  • LocationEarth!

Posted 16 September 2012 - 07:00 PM (#3)

I have my nameservers with route 53....is it basically the same but just do it through aws?

Edit:
This is how I have it set up:
On namecheap, I have it set to use custom DNS servers, and entered the four ones provided by amazon (http://d.pr/i/5UMg). Then, in route 53 I have 4 records. 1: NS record, value is the four DNS servers entered at namecheap (came with them) 2: SOA record, also default. 3: A record with the name of my naked domain, and value of the elastic IP. 4: same as three, but with name of domain with www.

I set it up like that friday evening, and whenever I try loading the page I get an error "Oops! Google chrome could not connect"

No idea what to do now :/
0


User is offline ianonavy 

  • Group: Members
  • Posts: 685
  • Joined: 14-April 10
  • Expertise:HTML,CSS,Java,Javascript,Python

Posted 16 September 2012 - 07:32 PM (#4)

Why are you using the AWS DNS? You don't actually need to do that. If you change your nameservers back to Namecheap, you can just create an A record and point it to the IP address Amazon gave you as Daniel15 suggested.
reputation += 1 if post.is_helpful else 0
0


User is offline JustinP 

  • Group: Members
  • Posts: 311
  • Joined: 26-February 11
  • LocationEarth!

Posted 16 September 2012 - 08:36 PM (#5)

View Postianonavy, on 16 September 2012 - 07:32 PM, said:

Why are you using the AWS DNS? You don't actually need to do that. If you change your nameservers back to Namecheap, you can just create an A record and point it to the IP address Amazon gave you as Daniel15 suggested.

When I googled it that's what people said to do... I changed it, and i'm assuming that I need to wait until the TTL runs out for it to be visable?

The weird part is that when I put the IP address into the url bar it won't pull anything up... Is something wrong with my elastic IP?
0


User is offline Daniel15 

  • dan.cx
  • Group: Moderators
  • Posts: 3415
  • Joined: 17-April 10
  • LocationMelbourne, Australia
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 16 September 2012 - 10:22 PM (#6)

Quote

have my nameservers with route 53....is it basically the same but just do it through aws?

That's fine, it's the same service except with Amazon instead of NameCheap. Amazon's DNS service (Route 53) does cost money though, so if you don't need its features (mainly high availability) you can use NameCheap's for free.

Quote

The weird part is that when I put the IP address into the url bar it won't pull anything up... Is something wrong with my elastic IP?

If you do an
nslookup
on the domain and it returns the correct IP address, the domain is set up correctly. If you can't even hit the IP address in your browser, it means there's something wrong with the IP. I don't have much experience with EC2 so can't help with this :(
Daniel15! :D
Posted Image

Repeat after me: jQuery is not JavaScript. It is not the answer to every JavaScript-related question. When you have to write some JavaScript, do not instantly react with "Oh, I'll do that with jQuery!"

Spoiler
0


User is offline JustinP 

  • Group: Members
  • Posts: 311
  • Joined: 26-February 11
  • LocationEarth!

Posted 20 September 2012 - 09:00 PM (#7)

I'm stupid, I didn't realize I would need to install something like Apache on my EC2.

By the way, should I install Apache or something else?
0


User is offline Daniel15 

  • dan.cx
  • Group: Moderators
  • Posts: 3415
  • Joined: 17-April 10
  • LocationMelbourne, Australia
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 20 September 2012 - 09:39 PM (#8)

Apache is good for a beginner since it's quite easy to get working and there's a lot of documentation and tutorials on it online.

You could also consider a different server like nginx, Cherokee, or Lighttpd. These have performance benefits over Apache and nginx is especially gaining popularity.
Daniel15! :D
Posted Image

Repeat after me: jQuery is not JavaScript. It is not the answer to every JavaScript-related question. When you have to write some JavaScript, do not instantly react with "Oh, I'll do that with jQuery!"

Spoiler
0


User is offline JustinP 

  • Group: Members
  • Posts: 311
  • Joined: 26-February 11
  • LocationEarth!

Posted 22 September 2012 - 05:55 AM (#9)

So the guides I'm finding keep telling me to use yum to install it but I don't have yum already...so lost...
0


User is offline Lemon 

  • I have a dream...
  • Group: Members
  • Posts: 688
  • Joined: 24-February 11
  • Expertise:HTML,CSS,PHP,Javascript,Node.js,SQL

Posted 22 September 2012 - 07:51 AM (#10)

View PostJustinP, on 22 September 2012 - 05:55 AM, said:

So the guides I'm finding keep telling me to use yum to install it but I don't have yum already...so lost...

If you are on debian/ubuntu, use apt-get or aptitude instead then.
Posted Image
In the end, it's not the years in your life that count. It's the life in your years
0


User is offline Daniel15 

  • dan.cx
  • Group: Moderators
  • Posts: 3415
  • Joined: 17-April 10
  • LocationMelbourne, Australia
  • Expertise:HTML,CSS,PHP,Java,Javascript,Node.js,SQL

Posted 22 September 2012 - 06:01 PM (#11)

Which Linux distribution? If it's Ubuntu or Debian then you can do
apt-get install apache2
for Apache or
apt-get install cherokee
for Cherokee or
apt-get install nginx
for Nginx
Daniel15! :D
Posted Image

Repeat after me: jQuery is not JavaScript. It is not the answer to every JavaScript-related question. When you have to write some JavaScript, do not instantly react with "Oh, I'll do that with jQuery!"

Spoiler
0


User is offline JustinP 

  • Group: Members
  • Posts: 311
  • Joined: 26-February 11
  • LocationEarth!

Posted 22 September 2012 - 09:17 PM (#12)

Okay! Got it installed! Im on Debian. The first time i tried installing it I got disconnected when confirming something and it was weird so I restarted my instance and tried installing again and it worked :)
Now I just need to set it up and scp a few files and hopefully it'll work :D
0


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

4 User(s) are reading this topic
0 members, 4 guests, 0 anonymous users


Enter your sign in name and password


Sign in options
  Or sign in with these services