Install Apache HTTP Server on Gentoo Linux
Step 1 – Install
emerge --sync
emerge --ask www-servers/apache
rc-update add apache2 default
rc-service apache2 start
Step 2 – Open firewall ports
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j ACCEPT
Step 3 – Verify
curl -I http://localhost
apachectl -v
Main config: /etc/apache2/httpd.conf, vhosts in /etc/apache2/vhosts.d/.