Diverse Module aktivieren
Cert und Key Dateien plazieren
- FQDN="www.xinux.de"
- ls /etc/apache2/*.{key,crt}
/etc/apache2/ca.crt
/etc/apache2/www.xinux.de.crt
/etc/apache2/www.xinux.de.key
Conf erstellen
FQDN setzen
- FQDN=www.xinux.de
- cd /etc/apache2/sites-available
- cat<<HERE>$FQDN.conf
<VirtualHost *:80>
ServerName $FQDN
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/$FQDN
ErrorLog \${APACHE_LOG_DIR}/$FQDN-error.log
CustomLog \${APACHE_LOG_DIR}/$FQDN-access.log combined
</VirtualHost>
HERE
Aktivieren
Reload
- cd /etc/apache2/sites-available
- cat orville.xinux.org.conf
Verlinken und neu starten
- cd /etc/apache2/sites-enabled
- ln -s ../sites-available/orville.xinux.org.conf .
- systemctl restart apache2