diff --git a/CMS/none/Apache-unconfigured b/CMS/none/Apache-unconfigured index 86dce03..0162fd7 100644 --- a/CMS/none/Apache-unconfigured +++ b/CMS/none/Apache-unconfigured @@ -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 Options Indexes FollowSymLinks MultiViews diff --git a/CMS/wordpress/Apache-unconfigured b/CMS/wordpress/Apache-unconfigured index feb2c84..f1eadd3 100644 --- a/CMS/wordpress/Apache-unconfigured +++ b/CMS/wordpress/Apache-unconfigured @@ -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 Options FollowSymLinks diff --git a/CoreModules/apache/conf.sh b/CoreModules/apache/conf.sh index 0aeb4d3..fca8aab 100644 --- a/CoreModules/apache/conf.sh +++ b/CoreModules/apache/conf.sh @@ -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) diff --git a/CoreModules/apache/config/apache2/snippets-backendredir b/CoreModules/apache/config/apache2/snippets-backendredir new file mode 100644 index 0000000..cf8e13c --- /dev/null +++ b/CoreModules/apache/config/apache2/snippets-backendredir @@ -0,0 +1 @@ +Redirect 301 /database http://HOSTname/backend/database \ No newline at end of file