nano /etc/apache2/sites-available/mon-site.conf
<VirtualHost *:80>
DocumentRoot "/var/www/mon-site"
ServerName mon-site.com
ServerAlias www.mon-site.com
ErrorLog ${APACHE_LOG_DIR}/mon-site.error
CustomLog ${APACHE_LOG_DIR}/mon-site.access combined
<Directory /var/www/mon-site>
Require all granted
Options FollowSymlinks MultiViews
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /var/www/mon-site
SetEnv HTTP_HOME /var/www/mon-site
Satisfy Any
</Directory>
</VirtualHost>
Sustituya mon-site por el nombre de su sitio
a2ensite mon-site
Para protegerlo con HTTPS:
certbot --apache
Continuación pendiente (esta parte está destinada a un alumno)

