Backup garfield: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 18: Zeile 18:


<pre>
<pre>
<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
        ErrorLog ${APACHE_LOG_DIR}/garfield.kirner.or.at-error.log
        CustomLog ${APACHE_LOG_DIR}/garfield.kirner.or.at-access.log combined
</VirtualHost>
</pre>
</pre>




Zurück zu [[Backups erstellen]]
Zurück zu [[Backups erstellen]]

Version vom 3. Juli 2016, 09:26 Uhr

Apache

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

        ErrorLog ${APACHE_LOG_DIR}/garfield.kirner.or.at-error.log
        CustomLog ${APACHE_LOG_DIR}/garfield.kirner.or.at-access.log combined
</VirtualHost>


Zurück zu Backups erstellen