Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 31st May 2007, 15:24
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 221
Thanks: 11
Thanked 10 Times in 10 Posts
Default

Thanks again for the help on this. No matter which config file I renamed, I get the following error:

Quote:
Syntax error on line 125 of /etc/apache2/vhosts/Vhosts_ispconfig.conf:
<VirtualHost> cannot occur within <VirtualHost> section
Here's the content of the file (for the domain in question):

Quote:
<VirtualHost 192.168.1.4:80>
<Directory "/var/www/web4/web">
Options FollowSymLinks
AllowOverride All
</Directory>
<VirtualHost 192.168.1.4:443>
ServerName http://domain.com
SSLEngine on
SSLCertificateFile \
/certificates/domain.com.crt
SSLCertificateKeyFile \
/certificates/domain.com.key
</VirtualHost>
ServerName www.domain.com:80
ServerAdmin webmaster@domain.com
DocumentRoot /var/www/web4/web
ServerAlias domain.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
ErrorLog /var/www/web4/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
php_admin_flag safe_mode Off
Alias /error/ "/var/www/web4/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web4/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web4/user/$1/web/$3
</VirtualHost>
Reply With Quote
Sponsored Links
  #12  
Old 31st May 2007, 16:33
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 221
Thanks: 11
Thanked 10 Times in 10 Posts
Default

I deleted the website in the ISP CP, and then tried to re-create the site...then I looked in the vhosts.ispconf file, and there still isn't an SSL section for this site.
Reply With Quote
  #13  
Old 1st June 2007, 04:40
daveb daveb is offline
Senior Member
 
Join Date: Dec 2006
Location: St Louis Mo
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts
Default

Quote:
This error shows up in Firefox and Safri on a Mac...but not in IE.
I had this issue also. To resolve this I had to download gd_intermediate_bundle.cer from Godaddy.com/Repository
then upload to my sites ssl folder. Then from the ispconfig control panel for that site in apache directives I had to add the line "SSLCACertificateFile /var/www/web?/ssl/gd_intermediate_bundle.cer" and Save.
after that I no longer had any Problems with errors in firefox.
Reply With Quote
The Following User Says Thank You to daveb For This Useful Post:
dayjahone (9th August 2007)
  #14  
Old 1st June 2007, 05:37
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 221
Thanks: 11
Thanked 10 Times in 10 Posts
Default

Thanks, Dave. I was wondering what I was supposed to do with that file. it said to download it...just not what to do with it. Now, I just need to figure out why ISPConfig isn't adding the SSL site in the vhosts file.

Thanks again Dave and Falko!
Reply With Quote
  #15  
Old 1st June 2007, 09:42
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,788
Thanks: 821
Thanked 5,337 Times in 4,187 Posts
Default

Quote:
Originally Posted by bschultz
Thanks, Dave. I was wondering what I was supposed to do with that file. it said to download it...just not what to do with it. Now, I just need to figure out why ISPConfig isn't adding the SSL site in the vhosts file.

Thanks again Dave and Falko!
Please do what falko posted in #10 in this thread. ISPConfig is not writing your config file because it contains errors that would prevent the startup of apache, so the new config file is written with a date appended to the filname. To find the error, you must rename it to Vhost_ispconfig.conf and run the command: httpd -t
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #16  
Old 1st June 2007, 13:52
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 221
Thanks: 11
Thanked 10 Times in 10 Posts
Default

I did...post #11.
Reply With Quote
  #17  
Old 1st June 2007, 18:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

You have a virtual host within a virtual host:

Code:
<VirtualHost 192.168.1.4:443>
ServerName http://domain.com
SSLEngine on
SSLCertificateFile \
/certificates/domain.com.crt
SSLCertificateKeyFile \
/certificates/domain.com.key
</VirtualHost>
Did you put it there? Something like this isn't written by ISPConfig.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #18  
Old 2nd June 2007, 16:55
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 221
Thanks: 11
Thanked 10 Times in 10 Posts
Default

That was put in by me. Upon installing the certificate based on your directions on the first page of this thread, I looked in the vhosts file and didn't see any SSL section. So I tried to add it in the Apache Directives for this domain. I didn't realize that it would add the virtual host inside the other virtual host...so obviously it didn't like the syntax...and named the file by the date. Then in post #10 you wanted me to rename one of those files and remove the date. That's where we are now. The problem is that ISPConfig isn't adding the separate vhost for the ssl port...just the regular stuff on port 80. Thanks again for all the help on this!!!
Reply With Quote
  #19  
Old 2nd June 2007, 19:00
daveb daveb is offline
Senior Member
 
Join Date: Dec 2006
Location: St Louis Mo
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts
Default

bschultz, just speaking from my own experience here. not sure if it would help. but have you created a ssl crt from the ispconfig control panel for that web. I had this issue when I had a ssl cert already and just checked off ssl in the control panel and thought groovy but nothing ever was wrote to the vhost file. wasnt till I created a csr or self signed ssl via the control panel that it added the appropriate lines withen the vhost file.
Reply With Quote
  #20  
Old 2nd June 2007, 22:49
bschultz bschultz is offline
Senior Member
 
Join Date: Jul 2006
Posts: 221
Thanks: 11
Thanked 10 Times in 10 Posts
 
Default

Dave,

That worked to get the Apache vhost info correct....but I'm still getting a cert error....even after your suggestion of

Quote:
SSLCACertificateFile /var/www/web6/ssl/gd_intermediate_bundle.crt
in the Apache directive field.
Reply With Quote
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
New Setup Question using Debian ISPConfig Rocky Installation/Configuration 1 28th February 2007 19:00
Question about the The Perfect Setup - Debian Sarge (3.1) page 3 paulley Installation/Configuration 2 1st December 2006 01:33
SSL Setup In ISPConfig asyadiqin Installation/Configuration 1 6th August 2006 13:18
perfect setup suse 10 - phpmyadmin & mysql question reddog Server Operation 7 17th June 2006 12:59
mail server setup question paulley Installation/Configuration 22 14th June 2006 01:38


All times are GMT +2. The time now is 16:47.


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