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.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th April 2010, 23: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
  #2  
Old 30th April 2010, 01:28
charlesrg charlesrg is offline
Junior Member
 
Join Date: Sep 2009
Posts: 14
Thanks: 2
Thanked 4 Times in 2 Posts
Default

Okay I see I'm on my own

So here is the issue:

As ISPCONFIG 3.0.2.1 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
187c187
< ServerName <tmpl_var name='ssl_domain'>
---
> ServerName <tmpl_var name='domain'>
206,207c206,207
< 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
209c209
< 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
160c160
< $domain = $data["new"]["ssl_domain"];
---
> $domain = $data["new"]["domain"];
177c177
< $domain = $data["new"]["ssl_domain"];
---
> $domain = $data["new"]["domain"];
307a308
> //print_r($data);
543a545
>
551d552
< $vhost_data["ssl_domain"]=$data["new"]["ssl_domain"];
561c562
< $domain = $data["new"]["ssl_domain"];
---
> $domain = $data["new"]["domain"];
565c566
<
---
>

Last edited by charlesrg; 30th April 2010 at 02: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)
  #3  
Old 30th April 2010, 10:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,344
Thanks: 810
Thanked 5,173 Times in 4,055 Posts
Default

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
  #4  
Old 2nd May 2010, 13:31
vogelor vogelor is offline
ISPConfig Developer
 
Join Date: Jan 2007
Location: Wernau, Germany
Posts: 219
Thanks: 42
Thanked 34 Times in 24 Posts
 
Default

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


All times are GMT +2. The time now is 05:57.


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