Configure Destination Domain to accept CNAME - configuration

I'm currently having issues resolving CNAMEs that point my domain name. When a CNAME points to my domain name, it lands on the 404 error page that every new website has before contents are added.
In details: I have successfully created a CNAME record sample.origin.com to point to sample.destination.com. It hits sample.destination.com but displays a 404 error like sample.destination.com does not exist.
I think there is some configuration to be done on sample.destination.com that should accept the request from sample.origin.com.
I am quite certain about this because I have tried pointing a sample.origin.com to different destination domains and I get the default 404 page for such destination domains.
Any suggestion or help will be greatly appreciated

It sounds like your web server is expecting specific domain name, and the one you’re trying is not one of them.
Either add the domain to the list, provide redirection (application load balancer lister rule) or if the server us single domain, remove domain name so it will respond to all domains.

Related

How to connect a domain to XAMPP

Ok, so I have an ip that works, I bought a domain name as well, how do I configure it so that when I type the domain it points to the ip, I do not want some kind of masked url forwarding as I want you to be able to type for example /img/ and go to that directory.
Any help?
(Edit: Spelling)
May I know what's domain vendor you subscribe, like Godaddy?
You can add the A record which can point to your IP address.
Go to 'Manage DNS' and find existing A record or add an A record,
here is a reference guide like Godaddy:
https://hk.godaddy.com/help/a-19238?lang=en

Point a domain to my website

I have a domain name which i need to to point to a sub domain of my existing website. Both the domain name in question and website are held with the same host so i have CPanel for the website (which has its own domain name and is currently online. Note the host does not provide CPanel (or similar) for domain-names only (i.e. without hosting).
I have seen subdomains and addon domains but from the description in CPanel i cant figure which if either will do what i want ... or even Aliases.
How can i point the domain name to a sub-domain? if possible. I do not want the existing websites domain name to appear in the url when visiting the sub-domain pointed to by the new domain name.
Thanks.
Since you're using cPanel... https://documentation.cpanel.net/display/ALD/Setup+Edit+Domain+Forwarding
If you just deal with a registrar instead of a provider, typically you point '#.domain.com' to 'http://sub.domain.com' - where #.domain.com represents the direct name, domain.com.

redirect mydomain.com to openshift app without www

I am trying to deploy my app on Openshift.
I've added www.mydomain.com, and mydomain.com as aliases on Openshift and changed the cname record 'www' to myapp-mydomain.rhcloud.com
when I try to access the app these are the results,
myapp-mydomain.rhcloud.com - Opens myapp
www.mydomain.com - redirects to myapp
mydomain.com - opens a blank page (the source of the blank page links to a godaddy's parking
looks like this http://mcc.godaddy.com/park/xxxxxxxxxxxxxx
how can I make my mydomain.com point to the application at myapp-mydomain.rhcloud.com
I have tried to change the 'A' record of the domain that pointed to 184.168.221.xx but it needs to be an IP address not the app address.
thank you so much for any help.
Not sure if you've seen this Openshift Article or not https://www.openshift.com/blogs/custom-url-names-for-your-paas-applications-host-forwarding-and-cnames-the-openshift-way but it will walk you through step by step on how to acheive exactly what your asking.
The important part to pay attention to is:
If you want to forward over your whole domain, such as mycompany.com
and not www.mycompany.com, then you either need to use Domain
Forwarding or find a DNS provider that allows "Naked" CName records.
Domain forwarding uses a web server to do a redirect.
Also be sure to check out https://www.openshift.com/forums/openshift/domain-with-no-www-dns-question-is-that-possible.
CloudFlare allows you to create naked domains as CNAME records for free. Add CNAME records for both mydomain.com and www.mydomain.com which aliases myapp-mydomain.rhcloud.com.

New host - 404 Error

I am a newcomer at the web part of programming and I was given a host. I uploaded a simple index.html file with one header(It is correct). If I then try to connect with the nameserver/ip (gotten with PuTTy) , I get an 404 error. I have tried many different stuff about folders , but I could not fix anything
The nameserver IP address is almost certainly not your hosting IP address. The nameserver is the server (probably owned by your host - but possibly an outsourced service) that converts the human readable domain name (such as www.domain.com) to an IP address the computer can connect to (such as 198.252.206.16 - the IP 4 address I get for www.stackoverflow.com). It acts as a giant lookup list of domain names and IP addresses, much like a telephone book or Yellow Pages.
Moreover, as your host will almost certainly be hosting many domains (tens or possibly hundreds) per server, you will need to use a domain name when attempting to connect to your web page - this will be needed for Apache or IIS to know how to route the request/which content to return to the browser. It will do this using the request header sent by the browser when requesting the page. If you are testing locally then localhost/127.0.0.1 will be good enough if you have a single site registered/single set of content in a wwwroot directory (or equivalent). Similarly a virtual server or dedicated server may well respond to requests by IP address if it is the only site/application registered on the server.
To use another real-world analogy, it is a bit like addressing an item of post to a town or village - without including the recipient name, street or house number - and then expecting it to be received and to get a response.
Some hosts provide temporary domain names for you to use before you purchase your domain name or whilst the domain name details are propagated to DNS servers around the world. This usually looks something like-
http://your-user.your-host.com/ or http://server.your-host.com/your-username/
If your host offers such a service then this should normally be detailed in their self-help pages, or the admin area where you set up the site. Clearly such a domain is not intended for "production" use, and you should purchase a domain name before using the site for anything other than testing - if only to allow you the flexibility to move to a new host in the future.
This is not a question for StackOverflow users though, and I strongly suggest you consult your host's documentation or contact them for further assistance.

I want to point a sub-domain to a new domain address

I'm looking to point a new domain name to my website sub domain address.
So would all I do is buy the new domain name address and use httaccess to tell my site when the new domain name is entered to go to www.newdomain.mydomain.com. How might I go about doing that?
But I'm hoping to have the new domain name address still be shown when they are on my sub domain as this is for a festival I am helping with and they don't need to buy hosting for this short period.
Any help is appreciated.
One way to get the url to stay as the one a user typed in instead of showing up as your subdomain is to put the whole site in a frame that loads your subdomain inside of it. Some registrars will do this for you so you don't need to pay for extra hosting. If you go with this option, you don't really need a subdomain, though, as you could just put the new pages in a folder off of your main site since visitors won't see the address anyway.
A slightly more elegant solution would simply be to use virtual hosts, if your server has the capability. If you have your own server, they are not hard to set up. If you have a hosting package from a company like godaddy, the company website will often give instructions on how to do this. The idea is that the server will handle the responsibility of routing a query to a specific folder based on the url of the request. Then all you need to do is set up the folder. If you give more specifics about what your hosting setup is, it will be easier to give guidance in this respect.
To get your new domain name to point to your website you need to:
configure your domain name to point to your web site IP address
configure your web server to serve your website when it receives requests to that new domain name
The company from which you buy your new domain name will provide you with a web interface to configure your domain name and make it point to your IP address.
If you're managing your web server yourself, you will need to edit its configuration to add a new named virtualhost for your new domain name (virtualhost directives don't go into .htaccess files). If you're using a shared hosting company, they probably also provide a web interface to configure your web site, so that it accepts requests to your new domain name.