added database redir from frond-end (apache)

This commit is contained in:
2020-09-10 15:34:47 +02:00
parent 0b643f9e62
commit 52906fea36
4 changed files with 5 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ ErrorLog ${APACHE_LOG_DIR}/SITEname_error.log
DirectoryIndex index.php index.html index.htm
DocumentRoot /var/www/DOMAINname/html
#Include snippets/apa-ssl.conf
<Directory /var/www/DOMAINname/html>
Options Indexes FollowSymLinks MultiViews

View File

@@ -6,6 +6,7 @@ ErrorLog ${APACHE_LOG_DIR}/SITEname_error.log
DirectoryIndex index.php index.html index.htm
DocumentRoot /var/www/DOMAINname/html
#Include snippets/apa-ssl.conf
<Directory /var/www/DOMAINname/html>
Options FollowSymLinks

View File

@@ -10,6 +10,8 @@ a2enmod actions fcgid alias proxy_fcgi ssl headers http2 setenvif socache_shmcb
mkdir -p /etc/apache2/snippets/
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/apache/config/apache2/snippets-ssl.conf -O /etc/apache2/snippets/apa-ssl.conf
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/apache/config/apache2/snippets-backendredir.conf -O /etc/apache2/snippets/apa-backendredir.conf
sed -i -e 's/HOSTname/'$hostname'/' /etc/apache2/sites-available/apa-backendredir.conf
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/apache/config/apache2/conf-custom.conf -O /etc/apache2/conf-enabled/zzz-custom.conf
#Catch all (ip and unconfigured domains)

View File

@@ -0,0 +1 @@
Redirect 301 /database http://HOSTname/backend/database