How to Manually Configure Your Server with a Domain and Website on Prosper202

How to Configure Your Server with a Domain and Website

 

  1. Login to your server via SSH
  2. Change the following in /etc/named.conf file using the nano text editor

 

 

Add the following to the end of the file:

 

 

Press Ctrl+x then y to approve changes then enter to save.

 

  1. Again using nano create the following zone file (Note the dots at the end of domain names, they are important) in /etc/named/REPLACE_THIS_TEXT_WITH_YOUR_DOMAIN.zone

 

 

Press Ctrl+x then y to approve changes then enter to save.

 

  1. Change owner of the zone file

 

 

  1. Reload name server control utility

 

 

Note: If you see — rndc: neither /etc/rndc.conf nor /etc/rndc.key was found do the following:

 

 

  1. Restart the named service

 

 

  1. Make the document root directory for the domain

 

 

  1. Allow access to the directory

 

 

  1. Edit the /etc/httpd.conf file using nano

 

 

Ctrl+W to find “Listen 80” and un-comment (#) if needed.

Ctrl+W to find “NameVirtualHost” then un-comment (#) and edit as below:

NameVirtualHost REPLACE_THIS_TEXT_WITH_YOUR_DOMAIN:80

 

  1. Append the following to the file.

 

 

  1. Now restart the service.

 

 

If service will not restart check logs. Make sure log paths exist, otherwise the configuration should now be complete.


Share:

Leave a Reply