|
@@ -1,29 +1,53 @@
|
|
|
<VirtualHost *:80>
|
|
<VirtualHost *:80>
|
|
|
ServerName angular-preprod.foodgame.fr
|
|
ServerName angular-preprod.foodgame.fr
|
|
|
ServerAlias angular-preprod.foodgame.fr
|
|
ServerAlias angular-preprod.foodgame.fr
|
|
|
- #ProxyPreserveHost On
|
|
|
|
|
- #ProxyRequests Off
|
|
|
|
|
- #ProxyPass / http://127.0.0.1:8080/
|
|
|
|
|
- #ProxyPassReverse / http://127.0.0.1:8080/
|
|
|
|
|
-
|
|
|
|
|
|
|
+ DocumentRoot /var/www/html/browser
|
|
|
ErrorLog "/var/log/apache2/error.log"
|
|
ErrorLog "/var/log/apache2/error.log"
|
|
|
- LogLevel notice
|
|
|
|
|
CustomLog "/var/log/apache2/access.log" combined
|
|
CustomLog "/var/log/apache2/access.log" combined
|
|
|
- DocumentRoot /var/www/html
|
|
|
|
|
- <Directory /var/www/html/>
|
|
|
|
|
- Options +Indexes +FollowSymlinks
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <Directory /var/www/html/browser>
|
|
|
|
|
+ Options -Indexes +FollowSymLinks
|
|
|
AllowOverride All
|
|
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>
|
|
</Directory>
|
|
|
</VirtualHost>
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
|
|
+# La configuration HTTPS n'est pas nécessaire ici car Traefik gère le SSL
|
|
|
|
|
|
|
|
|
|
|
|
|
-<VirtualHost *:443>
|
|
|
|
|
- DocumentRoot /var/www/html
|
|
|
|
|
- ServerName angular-preprod.foodgame.fr
|
|
|
|
|
- ServerAlias angular-preprod.foodgame.fr
|
|
|
|
|
- #SSLEnable
|
|
|
|
|
- #SSLEngine ON
|
|
|
|
|
- #SSLCertificateFile path/to/server.crt
|
|
|
|
|
- #SSLCertificateKeyFile path/to/server.key
|
|
|
|
|
-</VirtualHost>
|
|
|
|
|
|
|
+# <VirtualHost *:80>
|
|
|
|
|
+# ServerName angular-preprod.foodgame.fr
|
|
|
|
|
+# ServerAlias angular-preprod.foodgame.fr
|
|
|
|
|
+# #ProxyPreserveHost On
|
|
|
|
|
+# #ProxyRequests Off
|
|
|
|
|
+# #ProxyPass / http://127.0.0.1:8080/
|
|
|
|
|
+# #ProxyPassReverse / http://127.0.0.1:8080/
|
|
|
|
|
+
|
|
|
|
|
+# ErrorLog "/var/log/apache2/error.log"
|
|
|
|
|
+# LogLevel notice
|
|
|
|
|
+# CustomLog "/var/log/apache2/access.log" combined
|
|
|
|
|
+# DocumentRoot /var/www/html
|
|
|
|
|
+# <Directory /var/www/html/>
|
|
|
|
|
+# Options +Indexes +FollowSymlinks
|
|
|
|
|
+# AllowOverride All
|
|
|
|
|
+# </Directory>
|
|
|
|
|
+# </VirtualHost>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+# <VirtualHost *:443>
|
|
|
|
|
+# DocumentRoot /var/www/html
|
|
|
|
|
+# ServerName angular-preprod.foodgame.fr
|
|
|
|
|
+# ServerAlias angular-preprod.foodgame.fr
|
|
|
|
|
+# #SSLEnable
|
|
|
|
|
+# #SSLEngine ON
|
|
|
|
|
+# #SSLCertificateFile path/to/server.crt
|
|
|
|
|
+# #SSLCertificateKeyFile path/to/server.key
|
|
|
|
|
+# </VirtualHost>
|