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

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

« 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
Ssh script to validate ssh connection to multiple serves with status sreeram4 UNIX for Beginners Questions & Answers 3 06-04-2018 09:30 AM
How can i do defult page apache change it? mnnn Red Hat 2 03-16-2016 04:28 PM
Subdomain is not working, debian, apache alanford UNIX for Dummies Questions & Answers 5 10-08-2015 11:24 AM
Checking for Apache and serving a page kullu Shell Programming and Scripting 1 07-22-2011 04:28 AM
APACHE: Tie in Web Page login with server login WhotheWhat Security 1 11-26-2008 01:58 AM
APACHE: Tie in Web Page login with server login WhotheWhat Web Programming 2 11-19-2008 10:17 AM
find subdomain in url nrbhole Shell Programming and Scripting 2 12-22-2007 01:45 AM
Find wildcard .shtml files in wildcard directories and removing them- How's it done? Neko UNIX for Dummies Questions & Answers 1 06-27-2001 09:06 AM


All times are GMT -4. The time now is 03:13 PM.

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