Check how to set the domain name servers.
After I bought this domain, I used
to setup an Apache virtual host.
This guide assumes that DNS records have been setup correctly (A record for ipv4, AAA record for ipv6)
sshocean # login to DigitalOcean as root yum install httpd httpd-tools # user & group "apache" get created now mkdir /srv/http chown -v root:root /srv/http # if this is not on DigitalOcean check SELinux also mkdir /srv/http/vasilian.net chown -v apache:apache /srv/http/vasilian.net
Transfer the website content to host
su mihai cd $HOME/ mkdir Code git clone https://github.com/grayasm/git-main.git git-main exit # back to root cd /home/mihai/Code/git-main/script/vasilian.net ./httpd.update # transfer the content
Now continue with the server setup.
chown -Rv apache:apache /srv/http/vasilian.net cd /etc/httpd mkdir -v sites-enabled sites-available cd conf
Edit the server configuration.
emacs httpd.conf # change as follows: DocumentRoot "/srv/http" <Directory "/srv/http"> AllowOverride None Require all granted </Directory> # add at the end of file IncludeOptional sites-enabled/*.conf
cd /etc/httpd/sites-available touch vasilian.net.conf # end edit # change as follows: <VirtualHost *:80> ServerName www.vasilian.net ServerAlias vasilian.net DocumentRoot /srv/http/vasilian.net ErrorLog /srv/http/vasilian.net/error.log CustomLog /srv/http/vasilian.net/requests.log combined </VirtualHost>
Finish the configuration and do the first test.
ln -s /etc/httpd/sites-available/vasilian.net.conf /etc/httpd/sites-enabled/vasilian.net.conf systemctl enable httpd.service systemctl start httpd.service