GCP LAMP stack change domain name - dns

I have changed the domain name on my wordpress website on GCP LAMP stack as per normal for changing a wordpress sites domain name and it is working OK.
I have updated /etc/apache2/sites-enabled/000-default.conf with the new domain name and got the ssl.
Is there anywhere else in the the LAMP stack I should change the domain name ?
Thank you
Stephen

Related

Redirect Wix Domain to GoDaddy Domain having a web site hosted in Hostinger

I will tell you about my situation, I have a website hosted by hostinger, and a domain in godaddy which points to the hostinger's site through hostinger's dns and a domain created in cpanel, all good.
The question is that I have a domain in wix, to which I want to point to goddady's, or simply that when I enter this domain in wix it redirects me to godaddy's to see my website in hostinger.
I tried to do it through the CNAME and the A record that Wix has, placing the domain name in the CNAME and the IP that appears in the cpanel in the A record, the problem is that it does not redirect me correctly, showing me this screen.
It is worth mentioning that in the CNAME place the godaddy domain with the www and in the A without the www.
I attach an image of the result.
Any advice or a solution?Result

Adding subdomain on Namecheap for Shared IP SiteGround website

I have been figuring out how to accomplish this for a day now and read through a bunch of tutorials but could not make it work the way I wanted.
So my current set up is that I have a website that I registered the domain with Namecheap, let's call it mywebsite.com. The main app is hosted on Heroku, so both mywebsite.com and www.mywebsite.com is set up as URL redirect and CNAME to point to the heroku address. For example I have a CNAME record for www pointing to www.mywebsite.com.herokudns.com. This works fine and I would like to keep it that way.
I recently registered for a SiteGround service to set up my wordpress blog. I would like it to be accessible at blog.mywebsite.com. Most of the tutorial I have seen is to either migrate the domain to siteground so the wordpress site can point to the main domain or to point the namecheap DNS nameservers to the siteground one which I don't want to do neither because I do not want to redirect the traffic away from the heroku app.
I have tried to set up NSRecord according to Namecheap doc, I added the record for blog to point to ns1.siteground1111.com (the nameservers siteground provided) but when I entered blog.mywebsite.com it said server not found. I am on a SiteGround shared IP plan and I can see the blog if I visit ns1.siteground205.com/~myusername. However creating A record or CNAME requires bare IP and domain so I wonder if that's the issue.
My question is if my approach was correct in trying to set up the subdomain by creating a NSRecord on Namecheap pointing to SiteGround's nameservers. Or is it necessary for me to pay extra and get a dedicated IP address from SiteGround for me to point my A record for blog to.
Alternatively, I also have extra domains I am not using and I could set SiteGround blog to those domains and perhaps create a CNAME record for blog.mywebsite.com to www.myotherwebsite.com? That sounds like an overcomplication of the issue but I am not sure what to try at this point.
Really appreciate any help!
In Namecheap admin for your domain name mywebsite.com:
(1) Create an A record:
[type, host, value, TTL]
A, #, 1.2.3.4, 1min
where 1.2.3.4 is the Siteground IP address of your account.
(2) Create another A record:
A, blog, 1.2.3.4, Automatic

Issue in pointing domain to hosting server folder

I have my shared hosting server on godaddy.com and primary domain is abc.com
Now I have another domain registered xyz.com on some other 3rd service not on godaddy. For this new website xyz.com I have installed wordpress in xyz directory of my godaddy hosting server.
Now how do I point this xyz.com domain to my xyz directory of my hosting server by keeping abc.com website as it is?
B"H
I think URL Masking is what you're looking for. Some domain providers include this in CPanel.
You can also achieve this via .htaccess
Alternatively, you can try frames, though not recommended.
UPDATE
You can also consider using apache as a proxy, though using an A or CNAME record to accomplish this is the right way.

PaaS DNS Synchronization

I'm not exactly sure if this is more of a DNS question or the nature of most PaaS's.
I purchased a domain from namecheap.com. I wanted to get a WordPress site up and running so I could start development so I went over to openshift, created an account and installed WordPress, which was very easy! Only one problem... I'm having issues trying to sync my domain name from namecheap with the application on openshift. I must admit I've always purchased the domain name and hosting together so I've never had to go this route so I'm not entirely sure this has anything to do with the fact openshift is a PaaS.
In openshift, I have the URL for my application applicationname-account.rhcloud.com and I've added an alias on my namecheap.com account which works for a redirect... If I go to my purchased domain, www.example.com, it will simply redirect me to example-account.rhcloud.com. But I do not want a redirect...
I guess I'm confused as to how you get a domain name that you've purchased from one company to a hosting company. Do I need to modify something on my namecheap account?
This document states that you need to add a bare CNAME record to your DNS setup (may be what you refer to as an alias)
https://www.openshift.com/blogs/custom-url-names-for-your-paas-applications-host-forwarding-and-cnames-the-openshift-way
then add an alias to your Openshift application using the rhc command line tool, eg:
rhc alias add example-account www.example.com

Abount DNS configuration in CPanel, Please help me

I want to ask about cPanel, i have asked by my customer, they used cPanel as website control panel, so the case like this.
my client have cPanel WHM, their domain's name myClient.com can controled by cPanel, currently they have one exsisting website hosting at www.existingMyClient.com, so they want to make subdomain for example oldsite.myClient.com, which display the content of www.existingMyClient.com,
so, what i must configure in cPanel for that purpose ?
Go to Parked Domains on Cpanel of account existingMyClient.com
Create a parked domain oldsite.myClient.com
This parked subdomain (or domain) point to existingMyClient.com

Resources