#1  
Old 22nd November 2011, 12:21
gilas gilas is offline
Member
 
Join Date: Jun 2006
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default sites-enabled file naming

Hello
always thank you for your precious work.

I have a little problem, or better "annoying" problem.

For unknown reason my server has not configured with a "server certificate" (speaking of Debian Lenny).

Looking in another server (CentOS) I discovered a SSL certificate stored in this folder: /etc/httpd/ssl. It seems that the certs store in ssl folder are used for all my web sites if activated SSL option. This sound good.

But the first server (Debian) have a different behavior. Probabilly the server cant find the SSL certs so that I discovered that apache uses the first site from the folder:

/etc/apache2/sites-enabled

i.e. all sites with the name starting with 000- doesn' respect this, so that the first site used for the SSL Certificate (for the other sites) is the first found in alphabetical order. I.e.:

100-www.site1.com
100-www.site2.com
100-www.site3.com

this mean that if I create a new site, I will have:

100-www.site1.com
100-www.site2.com
100-www.site3.com
www.newsite.com

(note: without 100- prefix!)

but when I modify the site 'newsite.com' I will have:
100-www.newsite.com
100-www.site1.com
100-www.site2.com
100-www.site3.com

as you can see newsite is at beginning so that the (new) SSL cert is not taken from 100-www.site1.com but from 100-www.newsite.com.

I can't understant what is the modification todo to:
* write the server certificate and where and which lines put into (I suppose) into apache config files...
* if (and ....why?) ISPConfig needs to rename the files above.

thank you very much for your help
Reply With Quote
Sponsored Links
  #2  
Old 22nd November 2011, 12:30
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,452
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
 
Default

Quote:
Looking in another server (CentOS) I discovered a SSL certificate stored in this folder: /etc/httpd/ssl. It seems that the certs store in ssl folder are used for all my web sites if activated SSL option. This sound good.
If this folder contains ssl certs, then these are not created nor used by ispconfig. The ssl certs of a website in ispconfig are stored in the ssl folder of that site.

So that might be the reason for your problem. If ssl is not configured for a website in ispconfig, then the ssl cert is not configured in the vhost file and apache will deliver the content of the first vhost that it finds on the same IP address.

Quote:
* if (and ....why?) ISPConfig needs to rename the files above.
Sites are still in alphabetical order as before, they just have a prefix now as wildcard subdomains wont work correctly otherwise. See release notes:

http://bugtracker.ispconfig.org/inde...s&task_id=1653

Quote:
i.e. all sites with the name starting with 000- doesn' respect this, so that the first site used for the SSL Certificate (for the other sites) is the first found in alphabetical order. I.e.:
ISPConfig website vhost files dont start with 000- prefix. The 000-prefix is reserved for the ispconfig controlpanel vhost on port 8080, the apps vhost and the default files of the Linux distribution.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 22nd November 2011 at 12:48. Reason: typos
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
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 21:13
libWand.so.10 error Taxick Installation/Configuration 8 3rd May 2009 01:27
drbd error -115 anandx Installation/Configuration 15 26th April 2009 19:16
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 03:40
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29


All times are GMT +2. The time now is 15:52.


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