apache.conf 1.6 KB

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