Backup garfield: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→Apache) |
|||
(7 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
== Apache == | == Apache == | ||
Siehe auch [[Apache_HTTP_(Linux)#Passwortschutz_von_URLs|Apache / Passwortschutz von URLs]] | |||
<pre> | <pre> | ||
Zeile 8: | Zeile 10: | ||
<pre> | <pre> | ||
<VirtualHost *:80> | <VirtualHost *:80> | ||
ServerName garfield.kirner.or.at | |||
Redirect / https://garfield.kirner.or.at/ | |||
</VirtualHost> | </VirtualHost> | ||
</pre> | </pre> | ||
Zeile 19: | Zeile 21: | ||
<pre> | <pre> | ||
<VirtualHost *:443> | <VirtualHost *:443> | ||
ServerName garfield.kirner.or.at | |||
SSLEngine on | |||
SSLCertificateFile /etc/ssl/certs/garfield.crt | |||
SSLCertificateKeyFile /etc/ssl/private/apache.key | |||
# Pfad zu den Webinhalten | |||
DocumentRoot /var/www/garfield | |||
<Directory "/var/www/html"> | |||
AuthType Basic | |||
AuthName "Restricted Content" | |||
AuthUserFile /etc/apache2/.htpasswd | |||
Require valid-user | |||
</Directory> | |||
ErrorLog ${APACHE_LOG_DIR}/garfield.kirner.or.at-error.log | |||
CustomLog ${APACHE_LOG_DIR}/garfield.kirner.or.at-access.log combined | |||
</VirtualHost> | </VirtualHost> | ||
</pre> | </pre> | ||
Zeile 48: | Zeile 57: | ||
30 9 * * * /home/martin/garfield/bin/send.sh >> /home/martin/garfield/bin/garfield.log 2>&1 | 30 9 * * * /home/martin/garfield/bin/send.sh >> /home/martin/garfield/bin/garfield.log 2>&1 | ||
</pre> | </pre> | ||
Zurück zu [[Backups erstellen]] | Zurück zu [[Backups erstellen]] |
Aktuelle Version vom 27. Juli 2019, 12:10 Uhr
Apache
Siehe auch Apache / Passwortschutz von URLs
cd /etc/apache2/sites-available/ sudo nano garfield.conf
<VirtualHost *:80> ServerName garfield.kirner.or.at Redirect / https://garfield.kirner.or.at/ </VirtualHost>
sudo nano garfield-ssl.conf
<VirtualHost *:443> ServerName garfield.kirner.or.at SSLEngine on SSLCertificateFile /etc/ssl/certs/garfield.crt SSLCertificateKeyFile /etc/ssl/private/apache.key # Pfad zu den Webinhalten DocumentRoot /var/www/garfield <Directory "/var/www/html"> AuthType Basic AuthName "Restricted Content" AuthUserFile /etc/apache2/.htpasswd Require valid-user </Directory> ErrorLog ${APACHE_LOG_DIR}/garfield.kirner.or.at-error.log CustomLog ${APACHE_LOG_DIR}/garfield.kirner.or.at-access.log combined </VirtualHost>
Download
Scripts
0 9 * * * /home/martin/garfield/bin/download_homepage.sh > /home/martin/garfield/bin/garfield.log 2>&1 15 9 * * * /home/martin/garfield/bin/download_backup.sh >> /home/martin/garfield/bin/garfield.log 2>&1 30 9 * * * /home/martin/garfield/bin/send.sh >> /home/martin/garfield/bin/garfield.log 2>&1
Zurück zu Backups erstellen