added database redir from frond-end (apache)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
1
CoreModules/apache/config/apache2/snippets-backendredir
Normal file
1
CoreModules/apache/config/apache2/snippets-backendredir
Normal file
@@ -0,0 +1 @@
|
||||
Redirect 301 /database http://HOSTname/backend/database
|
||||
Reference in New Issue
Block a user