Apache Service
DNS Config
NIC IP: 192.168.1.100, DNS points to itself, domain: infanx.com
HTTP Config
yum install -y httpd*
Edit /etc/httpd/conf/httpd.conf:
<virtualhost *:80>
documentroot /www/infanx
servername infanx.com
directoryindex index.html
</virtualhost>
mkdir -p /www/infanx
echo "Hello World!" > /www/infanx/index.html
systemctl restart httpd
curl http://infanx.com # test
Topics also covered: user-based access control, directory access modes, IP/domain restrictions, virtual directory configuration.