소스 검색

Fix apache permanent redirect

Alex Trofimov 2 년 전
부모
커밋
56f1cb9c2c
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  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