# api.logicahn.com — Laravel API
# Copiar a: /etc/apache2/sites-available/logicahn-api.conf
# sudo a2ensite logicahn-api.conf && sudo systemctl reload apache2
#
# Requiere: sudo a2enmod rewrite headers

<VirtualHost *:80>
    ServerName api.logicahn.com
    DocumentRoot /var/www/dash/logica/backend/laravel-api/public

    <Directory /var/www/dash/logica/backend/laravel-api/public>
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    # Subidas de fotos (máx. ~16 MB)
    LimitRequestBody 16777216

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