• Issue with ssl configuration in name-based virtual hosting for multiple

    From kushalchahal101@gmail.com@21:1/5 to All on Mon Mar 7 02:55:31 2016
    hi,
    I'm trying to configure name-based virtual hosting for multiple domain. I have three domains two with ssl configuration and one is without ssl configuration.
    but the domain without ssl configuration is serving the content of other domain with https.

    thanks
    kushal

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Doctor@21:1/5 to kushalchahal101@gmail.com on Mon Mar 7 16:13:29 2016
    In article <ba3c7f2b-349f-496f-8b2b-c9ac2aec46b3@googlegroups.com>,
    <kushalchahal101@gmail.com> wrote:
    hi,
    I'm trying to configure name-based virtual hosting for multiple domain. I have three domains two with ssl configuration and one is without ssl configuration.
    but the domain without ssl configuration is serving the content of other domain with https.

    thanks
    kushal

    What does you vhosts configuration file / configuration file look like?
    --
    Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
    God,Queen and country!Never Satan President Republic!Beware AntiChrist rising! http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism Manitoba and Saskatchewan! Save your provinces in April! Vote Liberal!!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jeff Long@21:1/5 to kushalchahal101@gmail.com on Tue Mar 8 10:34:28 2016
    On 03/07/2016 10:01 PM, kushalchahal101@gmail.com wrote:
    On Monday, March 7, 2016 at 9:43:30 PM UTC+5:30, The Doctor wrote:
    In article <ba3c7f2b-349f-496f-8b2b-c9ac2aec46b3@googlegroups.com>,
    <kushalchahal101@gmail.com> wrote:


    What does you vhosts configuration file / configuration file look like?
    --
    Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
    God,Queen and country!Never Satan President Republic!Beware AntiChrist rising!
    http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism
    Manitoba and Saskatchewan! Save your provinces in April! Vote Liberal!!

    abc.local without ssl configuration
    <VirtualHost 10.0.0.87:80>


    and third one example.local have ssl configuration same like test.local

    But issue is when i am trying to access https://abc.local it serving the content of first loaded domain from test.local or example.local


    If all of your vhosts are using the same IP address have you verified
    that you have the required SNI support and/or configuration:

    http://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI

    Jeff Long

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From kushalchahal101@gmail.com@21:1/5 to The Doctor on Mon Mar 7 20:01:13 2016
    On Monday, March 7, 2016 at 9:43:30 PM UTC+5:30, The Doctor wrote:
    In article <ba3c7f2b-349f-496f-8b2b-c9ac2aec46b3@googlegroups.com>,
    <kushalchahal101@gmail.com> wrote:
    hi,
    I'm trying to configure name-based virtual hosting for multiple domain. I have three domains two with ssl configuration and one is without ssl configuration.
    but the domain without ssl configuration is serving the content of other domain with https.

    thanks
    kushal

    What does you vhosts configuration file / configuration file look like?
    --
    Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca
    God,Queen and country!Never Satan President Republic!Beware AntiChrist rising!
    http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism Manitoba and Saskatchewan! Save your provinces in April! Vote Liberal!!

    abc.local without ssl configuration
    <VirtualHost 10.0.0.87:80>
    ServerName abc.local
    DocumentRoot /var/www/alpha/abc.local/
    ServerAlias hey.abc.local
    DirectoryIndex index.php index.html
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    <Directory /var/www/alpha/abc.local/>
    Options FollowSymLinks
    AllowOverride all
    Require all granted
    </Directory>
    ErrorLog /var/log/abc.local/error.log
    CustomLog /var/log/abc.local/access.log combined
    <Directory /var/www/alpha/abc.local >
    AuthType Basic
    AuthName abc_test
    AuthBasicProvider file
    AuthUserFile /var/www/alpha/abc.local/.htpasswd
    Require valid-user
    </Directory>
    </VirtualHost>

    test.local with ssl configuration

    <VirtualHost 10.0.0.87:80>
    ServerName test.local
    DocumentRoot /var/www/alpha/test.local/
    ServerAlias hey.test.local
    DirectoryIndex index.php index.html
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>

    <Directory /var/www/alpha/test.local/>
    Options FollowSymLinks
    AllowOverride all
    Require all granted
    </Directory>
    ErrorLog /var/log/test.local/error.log
    CustomLog /var/log/test.local/access.log combined
    </VirtualHost>
    <IfModule mod_ssl.c>
    <VirtualHost 10.0.0.87:443>
    ServerName test.local
    DocumentRoot /var/www/alpha/test.local/
    ServerAlias hey.test.local
    DirectoryIndex index.php index.html
    SSLEngine on
    SSLCertificateFile /var/www/alpha/ssl/test.local/test.crt
    SSLCertificateKeyFile /var/www/alpha/ssl/test.local/test.key

    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>

    <Directory /var/www/alpha/test.local/>
    Options FollowSymLinks
    AllowOverride all
    Require all granted
    </Directory>
    ErrorLog /var/log/test.local/error.log
    CustomLog /var/log/test.local/access.log combined
    SSLHonorCipherOrder On
    SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5
    SSLProtocol all -SSLv2 -SSLv3

    </VirtualHost>
    </ifModule>

    and third one example.local have ssl configuration same like test.local

    But issue is when i am trying to access https://abc.local it serving the content of first loaded domain from test.local or example.local

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)