Browse Source

Fix apache permanent redirect

Alex Trofimov 2 years ago
parent
commit
56f1cb9c2c
1 changed files with 1 additions and 1 deletions
  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