IPv6 OpenSuse Apache2
Version vom 13. Januar 2024, 12:47 Uhr von Thomas.will (Diskussion | Beiträge) (→/etc/apache2/vhosts.d/vhost.conf)
Installation
- zypper install apache2
Konfiguration
- mkdir -p /srv/www/vhosts/opensuse.linuggs.de
Konfiguration
- cat /etc/apache2/vhosts.d/vhost.conf=
<VirtualHost [2a02:24d8:71:2445::102]:80>
ServerAdmin webmaster@opensuse.linuggs.de
ServerName opensuse.linuggs.de
DocumentRoot /srv/www/vhosts/opensuse.linuggs.de
ErrorLog /var/log/apache2/opensuse.linuggs.de-error_log
CustomLog /var/log/apache2/opensuse.linuggs.de-access_log combined
HostnameLookups Off
UseCanonicalName Off
ServerSignature On
<Directory "/srv/www/vhosts/opensuse.linuggs.de">
Options Indexes FollowSymLinks
AllowOverride None
<IfModule !mod_access_compat.c>
Require all granted
</IfModule>
<IfModule mod_access_compat.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
</VirtualHost>
Webseite
- cat /srv/www/vhosts/opensuse.linuggs.de/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Webserver von opensuse.linuggs.de</title>
</head>
<body>
<h1>Willkommen auf dem Webserver von opensuse.linuggs.de</h1>
<p>IP-Adresse: 2a02:24d8:71:2445::102</p>
</body>
</html>