2

I bought a domain from Bluehost and added A record pointing to my VPS IP at my domain registrar. I don't know what is virtual host? and how to configure it? and why should we configure it?

I am Junior Backend Developer and I want to learn servers and hostings also. So I bought both domain and server from same service so it was not that much difficult. That's why I bought domain from another service and VPS from another service.

Now I'm going to create a WordPress on my VPS and want to add domain to my WordPress site. add domain to VPS site and also how to add multiple domains in multiple sites hosted in single VPS,

A Records

NS Record

15
  • When you asked this at Stack Overflow, I asked you to edit it to include more information. However, you didn't include enough information. You say you don't know what a virtual host is, but how about the other information? Commented Sep 12, 2022 at 11:32
  • Where do your NS records point? Where did you add the A record? What web server are you running on the VPS? How have you configured the virtual hosts on it? Commented Sep 12, 2022 at 11:32
  • 1. Currently my NS records pointing at my VPS IP address. 2. I added the A record in my dns management zone which is in my domain registrant login 3. I have to install Apache server for making wordpress site. 2 days back i installed but then i changed os and tried so i ahve to install again 4. I am not sure whether I configured virtual host or not i dont know about it pls iam a newbie please teach Commented Sep 12, 2022 at 11:41
  • NS records should point to the name servers of your DNS host, not to your VPS IP address. The A records at your DNS host should then point to your VPS IP address. Can you say which company you are using for your DNS host? Can you edit your question to add screenshots of this configuration? Commented Sep 12, 2022 at 12:01
  • Apache's name-based virtual host documentation is here: httpd.apache.org/docs/2.4/vhosts/name-based.html You'll need to set up configuration in Apache for your domain names using virtual hosts if you haven't already done so. Commented Sep 12, 2022 at 12:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.