Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comm.software.webserver > #1268
| From | Jan Novak <repcom@gmail.com> |
|---|---|
| Newsgroups | de.comm.software.webserver |
| Subject | Re: Aoache virtualhost SSL Fehler wenn ohne IP |
| Date | 2018-08-17 12:40 +0200 |
| Organization | albasani.net |
| Message-ID | <pl68n8$u03$1@news.albasani.net> (permalink) |
| References | <pl5qjh$km$1@news.albasani.net> <8em8nsu1d9jfv8@mids.svenhartge.de> |
Am 17.08.18 um 11:03 schrieb Sven Hartge:
> Jan Novak <repcom@gmail.com> wrote:
>
>> ich habe auf meinem apache2 einen Virtualhost mit letsencrypt
>> Zertifikat. Soweit so gut.
>> In der conf Datei sieht es unter anderem so aus:
>
>> <VirtualHost [öffentliche IP]:443>
>> ...
>
>
>> Ich möchte nun die Konfiguration verallgemeinern und habe daher das hier
>> versucht:
>
>> <VirtualHost *:443>
>> ...
>
>> Unterschied jetzt: Es wird nicht das passende Zertifikat dieser Domain
>> ausgeliefert, sonder ein "beliebiges", obwohl der Rest der Konfiguration
>> (vor allem der ssl Teil) unverändert blieb.
>> Wie kann man das lösen?
>
> "ServerName vhost-name-her" vergessen?
>
> Ohne das funktioniert Name-based Virtualhosts und damit SNI nicht.
Hallo,
nein, das steht natürlich auch in der conf drin, hier die anonymisierte
conf Datei:
<VirtualHost [IP]:443>
ServerName [domain]
DocumentRoot [dir]
DirectoryIndex index.php
ErrorDocument 500 /index.php
ErrorDocument 400 /index.php
ErrorDocument 401 /index.php
ErrorDocument 402 /index.php
ErrorDocument 403 /index.php
ErrorDocument 404 /index.php
ErrorLog "/cx/logs/system/apache_ssl_error_log"
TransferLog "/cx/logs/system/apache_ssl_access_log"
CustomLog /cx/logs/biotronik/apache.log combined
SSLEngine on
SSLProtocol all -SSLv2
SSLCertificateFile /etc/letsencrypt/live/[]/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/[]/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
Alias /[alias]/ "[dir]"
<Directory "[dir]">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
RewriteEngine on
RewriteBase /[name]/
RewriteRule (.*) index.php
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAlias [2 aliase]
DocumentRoot [dir]
Alias /[name]/ "[dir]"
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R=301,L]
<Directory "[dir]">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Jan
Back to de.comm.software.webserver | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Aoache virtualhost SSL Fehler wenn ohne IP Jan Novak <repcom@gmail.com> - 2018-08-17 08:39 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Sven Hartge <sh-188@svenhartge.de> - 2018-08-17 11:03 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Jan Novak <repcom@gmail.com> - 2018-08-17 12:40 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Sven Hartge <sh-188@svenhartge.de> - 2018-08-17 19:17 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Jan Novak <repcom@gmail.com> - 2018-08-20 14:30 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Sven Hartge <sh-188@svenhartge.de> - 2018-08-20 14:58 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Sven Hartge <sh-188@svenhartge.de> - 2018-08-20 14:59 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Jan Novak <repcom@gmail.com> - 2018-08-20 15:13 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Sven Hartge <sh-188@svenhartge.de> - 2018-08-20 15:50 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Jan Novak <repcom@gmail.com> - 2018-08-20 16:03 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Sven Hartge <sh-188@svenhartge.de> - 2018-08-20 16:44 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Jan Novak <repcom@gmail.com> - 2018-08-22 10:13 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Sven Hartge <sh-188@svenhartge.de> - 2018-08-22 13:53 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Jan Novak <repcom@gmail.com> - 2018-08-23 13:17 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Sven Hartge <sh-188@svenhartge.de> - 2018-08-23 14:17 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Thomas Gohel <gohel@basicguru.de> - 2018-08-20 17:07 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Sven Hartge <sh-188@svenhartge.de> - 2018-08-17 19:24 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Jan Novak <repcom@gmail.com> - 2018-08-20 14:32 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Jan Novak <repcom@gmail.com> - 2018-09-13 11:08 +0200
Re: Aoache virtualhost SSL Fehler wenn ohne IP Sven Hartge <sh-189@svenhartge.de> - 2018-09-13 14:42 +0200
csiph-web