You can edit httpd.conf and where it says the ServerName part under the virtual hosts section, you can add your domain there. If your DNS isnt pointing to your web server, you will need to do that too (this is one of the advantages of cpanel etc it does it for you but then at the same time, leaves you wondering what it did)
2
Answers
You can edit httpd.conf and where it says the ServerName part under the virtual hosts section, you can add your domain there. If your DNS isnt pointing to your web server, you will need to do that too (this is one of the advantages of cpanel etc it does it for you but then at the same time, leaves you wondering what it did)
Something like
I assume you have DNS (ie. Godaddy’s, or you get one with your VPS).
Edit you file /etc/httpd/conf/httpd.conf
Add this at the bottom (use your domain name as ServerName and your folder as DocumentRoot):
Directory is optional, but this works for me.
Than go to SSH as a “root” and reset Apache server: