Backup heliblog: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „== Apache == Zurück zu Backups erstellen“) |
(→Apache) |
||
Zeile 1: | Zeile 1: | ||
== Apache == | == Apache == | ||
<pre> | |||
cd /etc/apache2/sites-available/ | |||
sudo nano heliblog.conf | |||
</pre> | |||
<pre> | |||
<VirtualHost *:80> | |||
ServerName heli-blog.kirner.or.at | |||
Redirect / https://heli-blog.kirner.or.at/ | |||
</VirtualHost> | |||
</pre> | |||
<pre> | |||
sudo nano heliblog-ssl.conf | |||
</pre> | |||
<pre> | |||
<VirtualHost *:443> | |||
ServerName heli-blog.kirner.or.at | |||
SSLEngine on | |||
SSLCertificateFile /etc/ssl/certs/heliblog.cert | |||
SSLCertificateKeyFile /etc/ssl/private/apache.key | |||
# Pfad zu den Webinhalten | |||
DocumentRoot /var/www/heliblog | |||
ErrorLog ${APACHE_LOG_DIR}/heli-blog.kirner.or.at-error.log | |||
CustomLog ${APACHE_LOG_DIR}/heli-blog.kirner.or.at-access.log combined | |||
</VirtualHost> | |||
</pre> | |||
Zurück zu [[Backups erstellen]] | Zurück zu [[Backups erstellen]] |
Version vom 3. Juli 2016, 09:04 Uhr
Apache
cd /etc/apache2/sites-available/ sudo nano heliblog.conf
<VirtualHost *:80> ServerName heli-blog.kirner.or.at Redirect / https://heli-blog.kirner.or.at/ </VirtualHost>
sudo nano heliblog-ssl.conf
<VirtualHost *:443> ServerName heli-blog.kirner.or.at SSLEngine on SSLCertificateFile /etc/ssl/certs/heliblog.cert SSLCertificateKeyFile /etc/ssl/private/apache.key # Pfad zu den Webinhalten DocumentRoot /var/www/heliblog ErrorLog ${APACHE_LOG_DIR}/heli-blog.kirner.or.at-error.log CustomLog ${APACHE_LOG_DIR}/heli-blog.kirner.or.at-access.log combined </VirtualHost>
Zurück zu Backups erstellen