Pārlūkot izejas kodu

accès mode all granted

j'ai ajouté deux lignes pour le mode rewrite
henri carmelo 10 mēneši atpakaļ
vecāks
revīzija
70eb8dd91d
1 mainītis faili ar 18 papildinājumiem un 14 dzēšanām
  1. 18 14
      build/docker/apache/apache.conf

+ 18 - 14
build/docker/apache/apache.conf

@@ -1,20 +1,24 @@
 <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/
+    ServerName angular-preprod.foodgame.fr
+    DocumentRoot /var/www/html/browser
 
-   ErrorLog "/var/log/apache2/error.log"
-   LogLevel notice
-   CustomLog "/var/log/apache2/access.log" combined
-   DocumentRoot /var/www/html/browser
-   <Directory /var/www/html/browser>
-        Options +Indexes +FollowSymlinks
+    <Directory /var/www/html/browser>
+        Options Indexes FollowSymLinks
         AllowOverride All
-   </Directory>
-</VirtualHost>   
+        Require all granted
+
+        RewriteEngine On
+        RewriteBase /
+        RewriteRule ^index\.html$ - [L]
+        RewriteCond %{REQUEST_FILENAME} !-f
+        RewriteCond %{REQUEST_FILENAME} !-d
+        RewriteRule . /index.html [L]
+    </Directory>
+
+    ErrorLog ${APACHE_LOG_DIR}/error.log
+    CustomLog ${APACHE_LOG_DIR}/access.log combined
+</VirtualHost>
+