👤
Home Man
Search
Today's Posts
Register

RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

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

👤 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

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
configure apache to work with ssl programAngel IP Networking 1 03-29-2011 01:01 PM
Apache 2, mod_ldap, mod_auth_ldap, SSL zaxxon UNIX and Linux Applications 0 08-19-2010 10:01 AM
Apache - ModSSL (SSL Version?) sun2ecliptic Web Programming 0 06-04-2010 12:40 PM
Apache, cgi script run twice when ssl, once when not ssl kshji Web Programming 2 04-19-2010 12:38 PM
apache ssl routing 2 dns netxus Web Programming 0 11-06-2009 08:07 PM
Apache SSL Help camerodity Web Programming 1 05-01-2009 03:13 PM
SSL key Apache Tirmazi Solaris 2 02-10-2009 09:40 PM
to enable POP3(ssl) and SMTP(ssl) in Squid praneel2k UNIX for Dummies Questions & Answers 1 11-20-2008 09:40 AM
Apache and SSL alfredo HP-UX 1 05-02-2008 03:11 AM
Apache with SSL problem b_manu78 Solaris 2 03-23-2005 05:13 PM


All times are GMT -4. The time now is 10:03 AM.

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