Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Piotr Gawron
minerva-scripts
Commits
36d116c2
Commit
36d116c2
authored
Jun 08, 2018
by
Piotr Gawron
Browse files
php redirection added
parent
41b38586
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/install.sh
View file @
36d116c2
...
...
@@ -26,6 +26,10 @@ a2enmod proxy
a2enmod proxy_http
service apache2 restart
#add redirection
printf
"<?php
\n
header('Location: minerva/');
\n
?>
\n
"
>
/var/www/html/index.php
rm
/var/www/html/index.html
#create SSL certificat
sudo mkdir
/etc/apache2/ssl
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:/
sudo
service apache2 restart
#turn on backups
ln
minerva-scripts/server/
cron_
backup.sh /etc/cron.daily/minerva
ln
minerva-scripts/server/backup.sh /etc/cron.daily/minerva
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment