How do I host a Domain Name for my Website? - server

I want to host a domain name for my website, like www.mywebsite.com. I want to host a domain name, because then I will not have to pay for a premium service , like NameCheap. When users go to www.mywebsite.com, it will be my website. How can I host a domain name? I have a server running Debian 8 Jessie.

It's not working this way.
First you need a registered domain "example.com" in some sort of hosting provider like OVh.com, then you can use apache2 to host your website

Related

I recently started using VPS CENTOS 7.5 kvm [server1] v76.0.15 with cpanel

After configuring the WHM/cPanel the landing page does not show the index.html in public_html rather it is showing the domain registrar details e.g: www.nexnaira.com.
I have deleted all the files in the public_html (cPanel) but it seems not to have any effect like the site is not pointing to the index.html I uploaded. Maybe I am doing it all wrong, please I need assistance
You need to change your default name servers of domain from domain control panel.
Also you need to create child name servers for your domain .
please follow the below tutorial to setup . Once you done setup in your WHM/cPanel, you need to create the same child nameservers using your domain control panel.
Create Child name servers
In order for your domain to display the content it has on your VPS, it is necessary to either register Private Nameservers or point your domain to BasicDNS and then add A record with the IP Address of your server in order to point it to your VPS.
To register Private Nameservers three steps should be taken:
1) register Private Nameservers on the Domain registrar's side;
https://www.namecheap.com/support/knowledgebase/article.aspx/768/10/how-do-i-register-personal-nameservers-for-my-domain
You can find the IP addressees for your Private Nameservers in. Your Virtual server access details should have been sent to your registered email.
2) set up Private Nameserves on the Hosting provider side ( SOA record which states the privary nameserver for your domain, A records for subdomains ns1 and ns2 and NS records) This guide is for your convenience:
https://www.namecheap.com/support/knowledgebase/article.aspx/207/48/how-to-set-up-private-nameservers-vps-and-dedicated-servers
3) point your domain to the Private Nameservers on the Domain registrar's side.
Mind you I am using these reference links because I am using Namecheap hosting services

How do you configure a domain name for openfire server? Do I just buy a domain and set it as my XMPP domain?

so I am setting up a server for a messaging application which is being developed. I am using openfire server for this which I have installed and running on a PC. Right now, the xmpp domain is set to my computer name and server is working on my network, but obviously as its a local name it cannot be accessed from the outside.I am able to access the server from multiple computers on the same network using the Spark messaging client to test the server. So to be able to access my XMPP server from devices outside my network, do I just buy a domain name and set it as my XMPP domain in Openfire settings?
To answer your question, yes, with the following caveats:
You will either have to host the DNS server yourself or have the DNS provider serve the records for you.
A domain must have a static IP to address to point to. A home or a typical small business Internet account does not include a static IP (some providers actively prevent home accounts from serving web pages/services).
You must also configure your firewall to allow a mapping to the internal server.
I would recommend using an external provider to handle the network and hosting services for your program.

How to do subdomain transfer to other subdomain via WHM

I want to refer one subdomain from another server to another subdomain on other server.
For example.
new.example.com is on SERVER1
dev.mydomain.com is on SERVER2
I need that when customer enter to new.example.com he see the website of dev.mydomain.com
I changed the DNS A records of new.example.com to the IP of dev.mydomain.com, but I need to do something on dev.mydomain.com
What configurations can I do on dev.mydomain via WHM .
Thanks
Instead working with DNS & IP the smart thing you could do is redirect new.example.com to dev.mydomain.com. You can do this by accessing Redirection option under example.com Cpanel account.

Redirect a domain to a subdirectory of another domain

I have a domain "first.com" and I have a blog on this domain "first.com/blog" (hosting in OVH)
I would like to create a redirection: "first.com/blog" to "blog.second.com" (hosting Heroku for rails app)
I think I have to configure OVH DNS to create this "redirection", but i don't know how.
Thx for helping.

Plesk and domain hosted externally

I have two hosting accounts (Personal one and a work one). I am doing some testing and would like to create a subdomain of a work domain (manage.domain.com) and host it on my personal account. Currently, my personal host is through 1and1 and is dedicated while the work one is shared with GoDaddy.
Work
I have gone into go daddy and created the subdomain. I have also added DNS records such as A, AAAA AND NS (i did not record a CNAME). I have noticed that if is type manage.domain.com it is redirecting to my personal server. However, it is directing to the blank admin page of the root of the server (which is maintained using Plesk).
Personal
Using Plesk I added the website (domain.com) and created the subdomain (manage.domain.com). I have also updated the websites hosting access using Plesk and assigned it the default values of my personal account. Using Plesk I also set the subdomain to the particular location of the files I want to test. However, I cannot get my server to recognize the address and redirect it to the proper location.
Any help is greatly appreciated!
J
You can just create:
in personal account domain(not subdomain) manage.domain.com
on domain.com add DNS record of type A, name "manage" and IP address of personal hosting:
After that "manage.domain.com" will resolving to hosting of your personal account and can be accessed because such domain exists.
I figured it out
What i did above was correct expect do not change the name servers on the work DNS(godaddy).
Add the website to plesk - it will give you an error about not being able to control the DNS settings which you have already adjusted on the original server (godaddy)
Add a subdomain of the website.
*** Ensure the subdomain is pointed to the correct folder within your server
Done