apache.conf 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <VirtualHost *:80>
  2. ServerName angular-preprod.foodgame.fr
  3. ServerAlias angular-preprod.foodgame.fr
  4. DocumentRoot /var/www/html/browser
  5. ErrorLog "/var/log/apache2/error.log"
  6. CustomLog "/var/log/apache2/access.log" combined
  7. <Directory /var/www/html/browser>
  8. Options -Indexes +FollowSymLinks
  9. AllowOverride All
  10. Require all granted
  11. RewriteEngine On
  12. RewriteBase /
  13. RewriteRule ^index\.html$ - [L]
  14. RewriteCond %{REQUEST_FILENAME} !-f
  15. RewriteCond %{REQUEST_FILENAME} !-d
  16. RewriteRule . /index.html [L]
  17. </Directory>
  18. </VirtualHost>
  19. # La configuration HTTPS n'est pas nécessaire ici car Traefik gère le SSL
  20. # <VirtualHost *:80>
  21. # ServerName angular-preprod.foodgame.fr
  22. # ServerAlias angular-preprod.foodgame.fr
  23. # #ProxyPreserveHost On
  24. # #ProxyRequests Off
  25. # #ProxyPass / http://127.0.0.1:8080/
  26. # #ProxyPassReverse / http://127.0.0.1:8080/
  27. # ErrorLog "/var/log/apache2/error.log"
  28. # LogLevel notice
  29. # CustomLog "/var/log/apache2/access.log" combined
  30. # DocumentRoot /var/www/html
  31. # <Directory /var/www/html/>
  32. # Options +Indexes +FollowSymlinks
  33. # AllowOverride All
  34. # </Directory>
  35. # </VirtualHost>
  36. # <VirtualHost *:443>
  37. # DocumentRoot /var/www/html
  38. # ServerName angular-preprod.foodgame.fr
  39. # ServerAlias angular-preprod.foodgame.fr
  40. # #SSLEnable
  41. # #SSLEngine ON
  42. # #SSLCertificateFile path/to/server.crt
  43. # #SSLCertificateKeyFile path/to/server.key
  44. # </VirtualHost>