# app.logicahn.com — App móvil Ionic (SPA)
# Copiar a: /etc/apache2/sites-available/logicahn-app.conf
# sudo a2ensite logicahn-app.conf && sudo systemctl reload apache2

<VirtualHost *:80>
    ServerName app.logicahn.com
    DocumentRoot /var/www/dash/logica/mobile/www

    <Directory /var/www/dash/logica/mobile/www>
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Require all granted

        RewriteEngine On
        RewriteBase /
        RewriteRule ^index\.html$ - [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . /index.html [L]
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/logicahn-app-error.log
    CustomLog ${APACHE_LOG_DIR}/logicahn-app-access.log combined
</VirtualHost>
