Commit 36d116c2 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

php redirection added

parent 41b38586
...@@ -26,6 +26,10 @@ a2enmod proxy ...@@ -26,6 +26,10 @@ a2enmod proxy
a2enmod proxy_http a2enmod proxy_http
service apache2 restart service apache2 restart
#add redirection
printf "<?php\nheader('Location: minerva/');\n?>\n" > /var/www/html/index.php
rm /var/www/html/index.html
#create SSL certificat #create SSL certificat
sudo mkdir /etc/apache2/ssl sudo mkdir /etc/apache2/ssl
sudo openssl genrsa -des3 -passout pass:xxxxyyyy -out /etc/apache2/ssl/server.pass.key 2048 sudo openssl genrsa -des3 -passout pass:xxxxyyyy -out /etc/apache2/ssl/server.pass.key 2048
...@@ -46,4 +50,4 @@ sudo sed -i '3i\ ProxyPass / http://localhost/\n ProxyPassReverse / http:/ ...@@ -46,4 +50,4 @@ sudo sed -i '3i\ ProxyPass / http://localhost/\n ProxyPassReverse / http:/
sudo service apache2 restart sudo service apache2 restart
#turn on backups #turn on backups
ln minerva-scripts/server/cron_backup.sh /etc/cron.daily/minerva ln minerva-scripts/server/backup.sh /etc/cron.daily/minerva
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment