Configurar virtual host en apache
Cree un fichero de virtualhost con comando nano /etc/apache2/sites-available/docs-bookstack.conf e introduzca el siguiente contenido.
<VirtualHost *:80>
     ServerAdmin tram@blackdogs.io
     DocumentRoot /var/www/vhosts/bookstack/public
     ServerName documentacion.tram.local
     ServerAlias documentacion documentacion.tram.local
     <Directory /var/www/vhosts/bookstack/public/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>
     ErrorLog ${APACHE_LOG_DIR}/docs_error.log
     CustomLog ${APACHE_LOG_DIR}/docs_access.log combined
</VirtualHost>
Active el site, active el modulo rewrite y reinicie el servicio apache2.
a2ensite docs-bookstack.conf
a2enmod rewrite
systemctl restart apache2
Confirme que el registro esta creado en el DNS y pruebe con un navegador web accediendo a la url que ha configurado en el virtual host y en el fichero .env de la configuración de bookstack.
                