Parcourir la source

Fix apache permanent redirect

Alex Trofimov il y a 2 ans
Parent
commit
56f1cb9c2c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      docker-entrypoint.sh

+ 1 - 1
docker-entrypoint.sh

@@ -87,7 +87,7 @@ fi
 
 # Apache config alteration - fix permanent redirect
 
-sed -r -i "s/\/ \[R,L\]/\/\$1 [R,L]/g" /etc/apache2/sites-available/000-default.conf
+sed -r -i "s/\/ \[R,L\]/\/\$1 [L,R=301]/g" /etc/apache2/sites-available/000-default.conf
 
 # Crontab