HTTP Apache2 Webseite
Zur Navigation springen
Zur Suche springen
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
- a2ensite $FQDN
Reload
- systemctl reload apache2