Point a domain name to elasticbeanstalk url aws - wordpress

I have a domain name owned by my company with url xyz.com, I want to point this to a elasticbeanstalk url in AWS.
My company provides domain name pointing as A record & CNAME, till now whatever I pointed to company domain name was an IP address and I selected A record it worked fine, but now when I select A record for elasticbeanstalk url it doesnt points correctly
xyz.com --> elasticbeanstalk-uri
What should I do in order to point my domain name to elasticbeanstalk url running wordpress

You should obtain the domain name of your load balancer and add it as a CNAME
This way you avoid providing an IP address that might change.
https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/using-domain-names-with-elb.html#dns-associate-custom-elb
From the docs:
If you'd prefer to use a friendly DNS name for your load balancer, such as www.example.com, instead of the default DNS name, you can create a custom domain name and associate it with the DNS name for your load balancer. When a client makes a request using this custom domain name, the DNS server resolves it to the DNS name for your load balancer

Related

Use IP instead of domain in Cpanel

I have access to a CPanel associated with a primary domain name www.test.com and it's IP is 55.666.777.888.
However, we must point the domain to another IP address temporarily and do some set-up on this server at the same time. The issue is I cannot access 55.666.777.888 to set up WordPress after having redirected www.test.com to another IP. The domain must always serve another website in the mean while.
When I visit the Domain page, www.test.com is still listed as primary domain.
Is there anyway that we can disable the domain temporarily and access the site using the IP then revert it later?

How to configure nginx to access website using www

I have setup a raspberry pi web server. I'm using nginx and google domains. I have a conf file for that domain in sites-available I configured the server_name to my domain name www.domain.com .domain.com;
The problem is that I can only access the website using .domain.com. When I try using www.domain.com I get redirect to ISP page (unable to find..).
Login to your domain provider's dashboard
If you haven't already added an A record to your DNS settings select Manage DNS and add an A record pointing to your IP address of the host.
You'll essentially need to add a CNAME record to your domain's DNS settings. The 'Name' field should be www
Depending on your provider you may have to wait till about 2- 48hrs to allow it to propagate.

why does connect domain to "Shopify" ask for either CNAME and A Record?

why does connect domain to "Shopify" ask for either CNAME and ARecord? ref
If you've purchased your domain through a third party, then you need
to edit the following DNS settings:
Your A record should point to Shopify's IP address, which is
23.227.38.65 Copy
Your www CNAME record should point to shops.myshopify.com Copy .
I mean if i configure my domain customer.com, A Record => 23.227.38.65
Isn't that enough to them? why do they also ask for CNAME www shops.myshopify.com?
"The shop subdomain points to Shopify’s servers, so they can manage which A record (IP address) the online store is hosted on."
https://www.domainnamesanity.com/blog/cname-vs-a-record/

How to point the domain name to VPS/dedicated server

I have a VPS/dedicated server which I have installed a wordpress site. I have bought a domain name from a local provider and now I need to point that domain name to my wordpress site when it is accessed from the browser. So far it can be accessed from the IP of the VPS.
The server has CentOS 7 and I have installed Virtualmin there and created a space with the name of my domain (abc.com), which is where the wordpress site is installed.
I have provided the following nameserver given by Virtualmin to my domain name provider but it does not seem to point to my server.
Virtualmin -> Server Configuration -> DNS Records -> Type=NS-Nameserver, Value="AB-C1234.defghij.kl56789.net."
I am new to this and how can I fix this?
Your server must have IP address or ns records, just copy it from there.
Add IP address in your domain registrar as A Record.
and if find other details like cname, NS than can also add them but its enough to add point domain by using just IP as A Record.
Here is an example :
Domain-name Type Value Propagation-Time
Domain.com A Record 122.180.254 1 Hour

How to setup AWS cloudfront with lightsail for WordPress?

How to setup AWS cloudfront with lightsail for WordPress? (on a subdomain)
I'm using Route 53 for all DNS management. I'm using a static IP from
lightsail, 3.122.2.187
Route 53 has an A record for service.openinfo.nl using an ALIAS to the cloudfront domain name.
Route 53 has an A record for wordpress.openinfo.nl pointing to the
lightsail static IP 3.122.2.187
Cloudfront has an origin domain name of wordpress.openinfo.nl
Cloudfront Origin Protocol Policy is HTTP Only.
Cloudfront Alternate Domain Names is service.openinfo.nl
Cloudfront SSL Certificate is the one issued by Route53 for *.openinfo.nl
Cloudfront Viewer Protocol Policy is Redirect HTTP to HTTPS.
This solution does not work:
The cloudfront distribution service.openinfo.nl does resolve the lightsail server but over http, it does not use the certificate I attached... Should I use redirect http to https?
Also, if I click 'login' it redirects to wordpress.openinfo.nl/wp-login.php i.e. the DNS that I assigned for the purpose of orgin domain name to cloudfront. The WordPress "WP_SITEURL" and "WP_HOME" settings somehow automatically reflect the DNS wordpress.openinfo.nl.
And also, the DNS name wordpress.openinfo.nl resolves the lightsail server (which I don't want because I want all trafic to the wordpress server to go via service.openinfo.nl). How to avoid this?
Background and what I tried:
My lightsail (WordPress) server does not show up in the "Origin Domain Name" dropdown list when creating a new distribution. So what should I do? The only AWS description on this topic that I can find is not clear on that to me.
Using the servers fixed IP address as "Origin Domain Name" in cloudfront is not allowed. So I created a DNS record in Route 53 (wordpress.openinfo.nl) to point to the static IP of my lightsail server. And I added this DNS record as "Origin Domain Name" in cloudfront (also including a https certificate *.openinfo.nl). And I selected the cloudfront distribution as A record, type alias, in Route 53. The cloudfront Alternate Domain Names (CNAMEs) is service.openinfo.nl .
So I also tried creating the service.openinfo.nl as A record (DNS) in Route 53 pointing to the static IP of the WordPress lightsail server. But then I cannot create the same service.openinfo.nl as alias A record...
So I am stuck... Please advice? Many thanks in advance! Wouter
PS: openinfo.nl points to a cloudfront distribution with a certificate which points to a static site in a S3 buckets and works fine.
https://aws.amazon.com/blogs/startups/how-to-accelerate-your-wordpress-site-with-amazon-cloudfront/
https://forums.aws.amazon.com/thread.jspa?threadID=264002
First of all, you need to point your domain to CloudFront. You will want to set up a CNAME record in your DNS zone, pointing to the xyz.cloudfront.net address you get when creating the CloudFront distribution. The name of that record should be "www.example.com" if that's the domain you want to enable CloudFront on. Making example.com (without www) work as well could be a bit more tricky as you can't use a CNAME for technical reasons. Route 53 offers a way around this, but the DNS management in Lightsail is a simpler version of that service essentially. But you can always add an A record for example.com, pointing to your server IP address. Then your server can redirect those requests (additional configuration needed).
Secondly, CloudFront needs to contact your server on some address. You could add a second record to your DNS zone. This time you call it "origin.example.com" (or anything really), make it an A record, and point it to the server IP address.

Resources