HTTPS "Problem"

  • Moin,


    folgendes Problem...


    1Domain.de hat nur HTTP
    2Domain.de hat nur HTTP und HTTPS


    Wenn ich aber nun 1Domain.de per HTTPS auf rufe lande ich auf 2Domain.de ?


    I wie stehe ich da gerade aufm Schlauch das zu beheben ^^

  • Wenn nur eine Domain auf Port 443 lauscht, beantwortet die auch alle Anfragen.
    Du könntest für Domain1 SSL aktivieren und dann redirekten.

    Edited once, last by Otzelott ().

  • @Fiesling



    We already answered that question. That is the expected behavior (at least from Apache2 point of view).


    When a request is made for an inexistent host, Apache will use the default server (the first found by configuration). You can see which vhost is considered default server for a specific port by running: apache2ctl -t -D DUMP_VHOSTS. For instance:

    • Here, the default server (virtualhost) for port 80 is bbox.nuxwin.com
    • Here, the default server (virtualhost) for port 443 is bbox.nuxwin.com


    That means that if I try to reach whatever.bbox.nuxwin.com on HTTPS, Apache will use the bbox.nuxwin.com server.
    One way to avoid this behavior is to use the DefaultServerPage plugin which is available in our plugin store.


    Thread closed.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206