1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do I connect a domain name with ec2 folder

Discussion in 'Apache' started by neeshu, Jul 10, 2016.

  1. #1
    Hi,
    I have site inside ec2 folder, but on the registrant side how or what do I enter to connect it ec2 folder.
    I have tried cloudflare by entering the cname someothing like this
    but it did not work.

    ec2-255-255-255-259.ap-southeast-1.compute.amazonaws.com

    I have made virtual host as well. Can someone please guide me
     
    neeshu, Jul 10, 2016 IP
  2. Roger S

    Roger S Active Member

    Messages:
    46
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    58
    #2

    Hi,

    I am not sure what you mean by ec2 folder.

    Anyways, I believe you are referring to a location on your AWS server here ec2 instance.

    So if you want to create a domain to link to a folder, you should probably try adding a VHost Alias on the ec2 server. Like ec2.your domain and point the document root to the folder. This will ensure correct contents are loaded. No go to registrar and add cname ec2 and point it ti the ec2 server.

    Hope that helps.
     
    Roger S, Jul 10, 2016 IP
  3. neeshu

    neeshu Well-Known Member

    Messages:
    648
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    #3
    Thanks Roger S, Is there any tutorial link on the net which can explain it better
     
    neeshu, Jul 11, 2016 IP
  4. Roger S

    Roger S Active Member

    Messages:
    46
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    58
    #4

    These might help

    https://httpd.apache.org/docs/2.4/vhosts/examples.html
    https://httpd.apache.org/docs/current/vhosts/name-based.html


    https://in.godaddy.com/help/add-a-cname-record-19236
    https://support.google.com/a/answer/47283?hl=en
    https://www.networking4all.com/en/support/domain+names/dns/cname-records/
     
    Roger S, Jul 11, 2016 IP
    neeshu likes this.
  5. neeshu

    neeshu Well-Known Member

    Messages:
    648
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    #5
    Thanks this has been achieved via virtual host and cname entry
    if you are using ubuntu virtual host file is in /etc/apache2/apache2.conf
     
    neeshu, May 5, 2018 IP