Wunderschönen Sonntag euch allen,
ich habe ein Problem mit der Konfiguration von VirtualHosts und einem Wildcard SSL-Zertifikat.
/etc/apache2/sites-available/seite.conf
^^ Diese Konfig funktioniert so
/etc/apache2/sites-available/seite-ssl.conf
So funktioniert die Konfig zwar, allerdings geht jede subdomain die ich über https aufrufe in den DocumentRoot /var/www/seite/main/
Wenn ich jetzt in der Datei seite-ssl.conf, einen weiteren VirtualHost anhänge, und den Apache neustarte bringt er einen Fehler und lässt sich nicht mehr starten :/
error.log
Kann mir bitte irgendwer helfen? Ich habe auf Google bislang nichts brauchbares gefunden
Mit freundlichen Grüßen
Selig
ich habe ein Problem mit der Konfiguration von VirtualHosts und einem Wildcard SSL-Zertifikat.
/etc/apache2/sites-available/seite.conf
Code:
<VirtualHost *:80>
ServerName www.domain.de
ServerAlias www.domain.de domain.de
ServerAdmin webmaster@domain.de
DocumentRoot /var/www/seite/main/
<Directory /var/www/seite/main/>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/seite/logs/main_error.log
LogLevel warn
CustomLog /var/www/seite/logs/main_access.log combined
ServerSignature On
</VirtualHost>
<VirtualHost *:80>
ServerName public.domain.de
ServerAlias public.domain.de
ServerAdmin webmaster@domain.de
DocumentRoot /var/www/seite/public/
<Directory /var/www/seite/public/>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/seite/logs/public_error.log
LogLevel warn
CustomLog /var/www/seite/logs/public_access.log combined
ServerSignature On
</VirtualHost>
/etc/apache2/sites-available/seite-ssl.conf
Code:
<VirtualHost *:443>
SSLEngine on
SSLCertificateKeyFile /etc/ssl/private/private.key
SSLCertificateFile /etc/ssl/certs/public.crt
ServerName www.domain.de
ServerAlias www.domain.de domain.de
ServerAdmin webmaster@domain.de
DocumentRoot /var/www/seite/main/
<Directory /var/www/seite/main/>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/www/seite/logs/main_error.log
LogLevel warn
CustomLog /var/www/seite/logs/main_access.log combined
ServerSignature On
</VirtualHost>
So funktioniert die Konfig zwar, allerdings geht jede subdomain die ich über https aufrufe in den DocumentRoot /var/www/seite/main/
Wenn ich jetzt in der Datei seite-ssl.conf, einen weiteren VirtualHost anhänge, und den Apache neustarte bringt er einen Fehler und lässt sich nicht mehr starten :/
error.log
Code:
[mpm_prefork:notice] [pid 1687] AH00171: Graceful restart requested, doing restart
[Sun Jun 15 14:40:36.688027 2014] [ssl:emerg] [pid 1687] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)
[Sun Jun 15 14:40:36.688045 2014] [ssl:emerg] [pid 1687] AH02312: Fatal error initialising mod_ssl, exiting.
[Sun Jun 15 14:40:39.276501 2014] [ssl:emerg] [pid 1889] AH02240: Server should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile] ((null):0)
[Sun Jun 15 14:40:39.276539 2014] [ssl:emerg] [pid 1889] AH02312: Fatal error initialising mod_ssl, exiting.
Kann mir bitte irgendwer helfen? Ich habe auf Google bislang nichts brauchbares gefunden
Mit freundlichen Grüßen
Selig