瀏覽代碼

Apache files can't be changed since they can be mounted into container

Alex Trofimov 1 年之前
父節點
當前提交
8db59cec09
共有 1 個文件被更改,包括 0 次插入 和 4 次删除
  1. 0 4
      docker-entrypoint.sh

+ 0 - 4
docker-entrypoint.sh

@@ -85,10 +85,6 @@ if [ ${UNA_AUTO_HOSTNAME:-$VAR_DEF_AUTO_HOSTNAME} != 0 ]; then
     sed -r -i "s/^define\('BX_DOL_URL_ROOT', .*?;/define\('BX_DOL_URL_ROOT', \(\(isset\(\$_SERVER['HTTPS']\) \&\& \$_SERVER['HTTPS'] == 'on'\) || \(!empty\(\$_SERVER['HTTP_X_FORWARDED_PROTO']\) \&\& \$_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || !empty\(\$_SERVER['HTTP_X_FORWARDED_SSL']\) \&\& \$_SERVER['HTTP_X_FORWARDED_SSL'] == 'on'\) ? 'https' : 'http'\) . ':\/\/' . \$_SERVER['HTTP_HOST'] . '\/'\);/g" /var/www/html/inc/header.inc.php
 fi
 
-# Apache config alteration - fix permanent redirect
-
-sed -r -i "s/\/ \[R,L\]/\/\$1 [L,R=301]/g" /etc/apache2/sites-available/000-default.conf
-
 # Crontab
 
 if [[ ! -v UNA_NO_CRONTAB ]]; then