Enable/disable directory listing
Enable a virtual host
Enable an Apache module
Allow .htaccess overrides
sudo nano /etc/apache2/apache2.conf
Configures directory-level configuration via .htaccess files.
Edit main config file
Enable URL rewriting
Reload Apache configuration
Test Apache configuration syntax