ServerName morsoft.alafricaine.net ServerAdmin webmaster@alafricaine.net DocumentRoot /var/www/centre-sante-app/public Options Indexes FollowSymLinks AllowOverride All Require all granted # Log files ErrorLog ${APACHE_LOG_DIR}/morsoft_error.log CustomLog ${APACHE_LOG_DIR}/morsoft_access.log combined # Redirect all requests to index.php (Laravel handles routing) RewriteEngine On RewriteCond %{REQUEST_URI} !^/storage/ RewriteRule ^(.*)$ /index.php [L] # Après obtention du certificat avec certbot, Apache aura un VirtualHost HTTPS configuré. # Pour activer: # sudo cp deploy/apache/morsoft.alafricaine.net.conf /etc/apache2/sites-available/ # sudo a2ensite morsoft.alafricaine.net # sudo a2enmod rewrite # sudo systemctl reload apache2 # sudo certbot --apache -d morsoft.alafricaine.net