#1  
Old 2nd January 2012, 13:50
nveid nveid is offline
Member
 
Join Date: Jan 2006
Location: Daytona Beach, FL
Posts: 87
Thanks: 7
Thanked 17 Times in 14 Posts
Send a message via Yahoo to nveid Send a message via Skype™ to nveid
 
Default SSL Tip

Ever have the annoying issue where when non-SSL domains goto the default SSL website on your server? Really annoying huh?

Well here's the solution:

First off you will want to turn off your global listen for 443..

In debian this will be in /etc/apache2/ports.conf
In Cent this will be at /etc/httpd/conf.d/ssl.conf

Okay.. Now that you did that, you will want to listen somewhere for 443!

To do this requires some editing of your vhost.conf.master, normally the best way to do this is to cp your vhost.conf.master in ispconfig server/conf directory to server/conf-custom

After you do that make this simple change inside the tmpl_loop="ghosts"
Add this right underneath that section..
Code:
<tmpl_if name='ssl_enabled'>
Listen {tmpl_var name='ip_address'}:{tmpl_var name='port'}
</tmpl_if>
Now you could do a if module check to see if SSL is on.. Though most likely if your making this change you do have SSL installed on your server so no need to worry too much about that. Enjoy, I hope this helped someone!
__________________
-- RLB
Reply With Quote
The Following User Says Thank You to nveid For This Useful Post:
falko (3rd January 2012)
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
haproxy with stunnel problem abubin Server Operation 6 10th April 2012 15:08
Need help with ISPConfig 3 Update midcarolina Installation/Configuration 36 8th November 2011 22:07
Adding SSL certificate to Site snowfly Installation/Configuration 2 31st May 2011 12:54
Creating a SSL certificate - Quick guide SamTzu Tips/Tricks/Mods 22 4th January 2011 13:38
SSL for virtual hosts on one certificate rbartz Tips/Tricks/Mods 8 20th November 2007 17:59


All times are GMT +2. The time now is 00:07.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.