Apache wildcard ssl on subdomain serves same page for non ssl virtualhosts

Tags
linux

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 08-16-2017
Apache wildcard ssl on subdomain serves same page for non ssl virtualhosts

Issue observed: I have configured ng.my-site.com using widlcard ssl cert. When I hit https://www.my-site.com it loads ng.my-site.com website!

please advise if I missed any concept / configs... Thank you!

httpd.conf

Code:
<VirtualHost *:80>
    ServerName www.my-site.com
    ServerAdmin webmaster@my-site.com

   DocumentRoot /var/www/html/mysite
   ErrorLog logs/my-site-error.log
   CustomLog logs/my-site-access.log combined

</VirtualHost>
<VirtualHost *:80>
    ServerName ng.my-site.com
    ServerAdmin webmaster@my-site.com

   DocumentRoot /var/www/html/ng
   ErrorLog logs/ng-my-site-error.log
   CustomLog logs/ng-my-site-access.log combined

</VirtualHost>

ssl.conf
Code:
<VirtualHost ng.my-site.com:443>
    ServerName ng.my-site.com

    ServerAdmin webmaster@my-site.com

SSLEngine on
SSLCertificateFile /etc/httpd/ssl/apache.crt
SSLCertificateKeyFile /etc/httpd/ssl/apache.key 

DocumentRoot /var/www/html/ng
ErrorLog logs/ng-my-site-ssl-error.log
CustomLog logs/ng-my-site-ssl-access.log combined

</VirtualHost>

Login to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Httpd proxy with mod_jk,ssl only on login page using .htacess new2ss Web Programming 0 01-21-2014 03:16 AM
configure apache to work with ssl programAngel IP Networking 1 03-29-2011 02:01 PM
Apache 2, mod_ldap, mod_auth_ldap, SSL zaxxon UNIX and Linux Applications 0 08-19-2010 11:01 AM
Apache - ModSSL (SSL Version?) sun2ecliptic Web Programming 0 06-04-2010 01:40 PM
Apache, cgi script run twice when ssl, once when not ssl kshji Web Programming 2 04-19-2010 01:38 PM
apache ssl routing 2 dns netxus Web Programming 0 11-06-2009 09:07 PM
Apache SSL Help camerodity Web Programming 1 05-01-2009 04:13 PM
apache, non-standard ports, and ssl woes iansocool Web Programming 0 03-11-2009 03:28 PM
SSL key Apache Tirmazi Solaris 2 02-10-2009 10:40 PM
to enable POP3(ssl) and SMTP(ssl) in Squid praneel2k UNIX for Dummies Questions & Answers 1 11-20-2008 10:40 AM
Apache ssl questions for experts elvis00 UNIX for Advanced & Expert Users 3 07-12-2008 01:12 AM
Apache and SSL alfredo HP-UX 1 05-02-2008 04:11 AM
implicit ssl vs explicit ssl jerardfjay UNIX for Advanced & Expert Users 1 08-03-2005 04:01 PM
Apache with SSL problem b_manu78 Solaris 2 03-23-2005 06:13 PM
apache-ssl https-problem? loitschix UNIX for Dummies Questions & Answers 1 07-23-2001 02:31 PM
All times are GMT -4. The time now is 02:15 AM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?