Apache
Digital Ocean tutorial for Virtual Hosts.
Enable site:sudo a2ensite SITENAME
Disable site:sudo a2dissite SITENAME
List apache modules:apache2ctl -M
Enable an apache2 module:sudo a2enmod MODULENAME
Disable an apache2 module:sudo a2dismod MODULENAME
Enable mod rewrite: sudo a2enmod rewrite
Reload server:service apache2 reload
Force reload the server:sudo /etc/init.d/apache2 force-reload
Apache file permissions:
Virtual hosts directory: /etc/apache2/sites-available/
Virtual Host sample file:
Last updated