Hallo,
nach langer Zeit melde ich mich mit einem Thread hier wieder zu Wort.
Ich habe nun schon seit geraumer Zeit einen V-Server bei Hetzner, auf dem ich Apache2 und MySQL laufen habe.
Ich habe nun heute versucht, eine Subdomain mittels einem VirtualHost einzurichten, aber es klappt nicht.
Die Seite wurde nicht gefunden, sagt mein Browser (meine Haupt-Domain wird gefunden), allerdings sagt Apache2 bei seinem Neustart, dass alles okay ist.
Anbei die wichtigsten Dateien:
Die 000-default-conf (/etc/apache2/sites-available/000-default.conf):
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
Alles anzeigen
Die beta-site.conf (Die Subdomain, die ich einrichten möchte (eine Seite wo ich Beta-Techniken teste)) (/etc/apache2/sites-available/beta-site.conf):
<VirtualHost *:80>
ServerAdmin marvnet@web.de
DocumentRoot /var/www/beta
ServerName beta.marvnet.de
ErrorLog /var/log/apache2/beta-site_error.log
CustomLog /var/log/apache2/beta-site_access_log.log common
</VirtualHost>
Die hosts-Datei (/etc/hosts):
# Hetzner Online GmbH installimage
# nameserver config
# IPv4
127.0.0.1 localhost.localdomain localhost
172.31.1.100 Debian-88-jessie-64-LAMP
::1 ip6-localhost ip6-loopback # IPv6
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
2a01:4f8:c0c:fa8::2 Debian-88-jessie-64-LAMP
88.99.188.227 mail.marvnet.de mail
88.99.188.227 beta.marvnet.de beta-page
88.99.188.227 beta.marvnet.de
Alles anzeigen
PS: Der Mailserver aus der /etc/hosts ist nicht installiert, an dem könnte es nicht liegen.
Die ports.conf (/etc/apache2/ports.conf):
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Alles anzeigen
Die error.log (/var/log/apache2/error.log) (für die Lesbarkeit auf den letzten Restart gekürzt
[Sat Sep 16 08:26:24.413570 2017] [mpm_prefork:notice] [pid 15097] AH00171: Graceful restart requested, doing restart
[Sat Sep 16 08:26:24.540337 2017] [mpm_prefork:notice] [pid 15097] AH00163: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1t configured -- resuming normal operations
[Sat Sep 16 08:26:24.540365 2017] [core:notice] [pid 15097] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 16 08:26:44.425828 2017] [mpm_prefork:notice] [pid 15097] AH00171: Graceful restart requested, doing restart
AH00112: Warning: DocumentRoot [/var/lib/letsencrypt/tls_sni_01_page/] does not exist
AH00112: Warning: DocumentRoot [/var/lib/letsencrypt/tls_sni_01_page/] does not exist
AH00112: Warning: DocumentRoot [/var/lib/letsencrypt/tls_sni_01_page/] does not exist
[Sat Sep 16 08:26:44.523135 2017] [ssl:warn] [pid 15097] AH01906: 699e2ff2b5aa30b3da112f11aded0444.a3fc5fec745e4e4b42820f1832b21579.acme.invalid:443:0 server certificate is a CA certificat$
[Sat Sep 16 08:26:44.523611 2017] [ssl:warn] [pid 15097] AH01906: 8b16a443b921e8cc22893a80b75b2255.ba761572937b53ac143ff2b8dd01af0e.acme.invalid:443:0 server certificate is a CA certificat$
[Sat Sep 16 08:26:44.524023 2017] [ssl:warn] [pid 15097] AH01906: e2cdbe6641f50e146f34b162f6a6727a.0d5a39b7ed889ba4722ad466021c4730.acme.invalid:443:0 server certificate is a CA certificat$
[Sat Sep 16 08:26:44.524808 2017] [mpm_prefork:notice] [pid 15097] AH00163: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1t configured -- resuming normal operations
[Sat Sep 16 08:26:44.524820 2017] [core:notice] [pid 15097] AH00094: Command line: '/usr/sbin/apache2'
[Sat Sep 16 08:26:51.885933 2017] [mpm_prefork:notice] [pid 15097] AH00171: Graceful restart requested, doing restart
[Sat Sep 16 08:26:51.998012 2017] [mpm_prefork:notice] [pid 15097] AH00163: Apache/2.4.10 (Debian) SVN/1.8.10 OpenSSL/1.0.1t configured -- resuming normal operations
[Sat Sep 16 08:26:51.998040 2017] [core:notice] [pid 15097] AH00094: Command line: '/usr/sbin/apache2'
Alles anzeigen
Die Logdateien für den neuen V-Host sind leer, daher habe ich sie nicht angehängt!
Was mache ich falsch, das es nicht funktioniert?
Ich hoffe ihr könnt mir helfen.
Viele Grüße und !