Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 30th April 2010, 00:05
charlesrg charlesrg is offline
Junior Member
Join Date: Sep 2009
Posts: 14
Thanks: 2
Thanked 4 Times in 2 Posts
Default troubleshooting vhost.conf.master

I'm having a problem that The Vhosts are not populated with the SSL Engine.

Looking at vhost.conf.master I see it's doing a check like:
<tmpl_if name='ssl_enabled'>

Do you guys know how can I debug this section of the code. I would like to see why ssl_enabled is not coming up.
Reply With Quote
Sponsored Links
Old 30th April 2010, 02:28
charlesrg charlesrg is offline
Junior Member
Join Date: Sep 2009
Posts: 14
Thanks: 2
Thanked 4 Times in 2 Posts

Okay I see I'm on my own

So here is the issue:

As ISPCONFIG there is a bug in apache2_plugin.inc.php

When Ispconfig is checking for the Certificate files it checks based on
domain not on ssl_domain. So that's why for some people SSL works but when someone goes and check www.domain.com as their SSL Domain the system falls appart.

DEVELOPERS PLEASE UPDATE apache2_plugin.inc.php and vhost.conf.master

Here is my patch generated with diff
diff -dir /usr/local/ispconfig/server/conf/vhost.conf.master /root/ispconfig3_install/server/conf/vhost.conf.master
< ServerName <tmpl_var name='ssl_domain'>
> ServerName <tmpl_var name='domain'>
< SSLCertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.crt
< SSLCertificateKeyFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.key
> SSLCertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='domain'>.crt
> SSLCertificateKeyFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='domain'>.key
< SSLCACertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.bundle
> SSLCACertificateFile <tmpl_var name='document_root'>/ssl/<tmpl_var name='domain'>.bundle

diff -dir /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php /root/ispconfig3_install/server/plugins-available/apache2_plugin.inc.php
< $domain = $data["new"]["ssl_domain"];
> $domain = $data["new"]["domain"];
< $domain = $data["new"]["ssl_domain"];
> $domain = $data["new"]["domain"];
> //print_r($data);
< $vhost_data["ssl_domain"]=$data["new"]["ssl_domain"];
< $domain = $data["new"]["ssl_domain"];
> $domain = $data["new"]["domain"];

Last edited by charlesrg; 30th April 2010 at 03:32.
Reply With Quote
The Following 3 Users Say Thank You to charlesrg For This Useful Post:
falko (30th April 2010), till (30th April 2010), vogelor (1st May 2010)
Old 30th April 2010, 11:12
till till is online now
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,012
Thanks: 840
Thanked 5,651 Times in 4,461 Posts

Thanks for the fix. I will upload it to svn
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 2nd May 2010, 14:31
vogelor vogelor is offline
ISPConfig Developer
Join Date: Jan 2007
Location: Wernau, Germany
Posts: 219
Thanks: 42
Thanked 34 Times in 24 Posts

Originally Posted by till View Post
Thanks for the fix. I will upload it to svn
IT'S Done ;-)
Der neue Luxus heißt Zeit, nicht Geld!

Firma : http://www.muv.com, http://www.computerandservice.de
Privat : http://www.vogelor.de
Reply With Quote
The Following 2 Users Say Thank You to vogelor For This Useful Post:
falko (3rd May 2010), till (2nd May 2010)


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
File Corruption Simulation for Troubleshooting chrisfriberg Installation/Configuration 0 2nd October 2009 03:32
vhost.conf.master => apache_directives StrikerNL Installation/Configuration 4 27th May 2009 13:12
could someone please clarify vhost.conf.master skizza Developers' Forum 7 2nd January 2009 13:07
vhost.conf.master Variables jockstrap Installation/Configuration 3 29th June 2008 16:05
troubleshooting HORDE installation Ovidiu Installation/Configuration 22 27th March 2006 01:29

All times are GMT +2. The time now is 18:09.

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