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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th April 2013, 08:41
keithH keithH is offline
Junior Member
 
Join Date: Sep 2010
Posts: 12
Thanks: 0
Thanked 2 Times in 2 Posts
Default Possible ISPConfig Configuration Apache mistake with latest stable on Ubuntu 12.04LTS

Hi, folks:
I'm actually not reporting anything super serious, but hear it goes anyways.
When I got done using the tutorial found here: http://www.howtoforge.com/perfect-se...ot-ispconfig-3 I found one interesting thing after finally completeing the installation.
I discovered that Apache2 was giving me warnings (and a hole lot of them) about nameVirtualHost *:80 and NameVirtualHost *:443 having no virtual hosts, (about three of four times printing to the screen.)
So I thought: This cannot do.
So I started looking about.
First instance?
/etc/apache2/ports.conf
Found a NameVirtualHost *:80 line.
Erased it, and saved the file.
The second?
Interestingly enough, occurred in the 000-ispconfig.conf file just after the alias lines.
NameVirtualHost *:80 and NameVirtualHost *443 respectively.
I removed those lines, using a nifty trick:
Code:
 sed -I '/NameVirtualHost /,/*:80/d' /etc/apache2/sites-enabled/000-ispconfig.conf
Then I ran the same, but for 443.
Once I erased those lines, and restarted Apache, all warnings whent away entirely.
I do not curiously, remember this ever occurring in ISPConfig 3.0.4.6, just in the latest stable builds.
Does anybody know why those directives are in the default ispconfig.conf vhost file for Apache2?
Doing this has not busted ISPConfig3 in any way, btw.
I would, like an explanation as to why those lines exist at all, if possible.
I don't like receiving warnigns all over the screen from Apache, personally. So I've delbt with it, at least for now.
When the next stable release comes up, after updating ISPConfig (unless I'm instructed not to in a reply post), I'll probably repeat the said code again just in case those lines hsow back up.
An explanation for those lines would be appreciated.
Did you developers do that on accident spessifying a Vhost line or two Apache would warn about?
I would suspect so.
Please clarify.
Thanks!

Last edited by keithH; 27th April 2013 at 08:46.
Reply With Quote
Sponsored Links
  #2  
Old 27th April 2013, 15:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,413
Thanks: 834
Thanked 5,498 Times in 4,328 Posts
 
Default

Quote:
Does anybody know why those directives are in the default ispconfig.conf vhost file for Apache2?
Has been discussed several times in the forum, but I will repeat it:

Without these lines you will not be able to use wildcard virtual hosts which are available in ispconfig as default. Basically apache should not print warnings about that as its not an issue, the message should basically be "You are now able to add wildcard virtual hosts in apache on port abc" and this deserves a notice and not warning level.

We are considering to remove these lines in the next update even if this will cause users to fail again like before when they create a wildcard vhost when they did not add these settings in their config manually as not all distributions and hosting providers add them in their default settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
sessions not being saved gavimobile General 6 15th January 2012 15:05
FreeRadius + MySQL working, but I don't know how to customise SQL queries awe Installation/Configuration 4 4th April 2010 23:28
trying to install roundcubemail ressel Installation/Configuration 13 24th December 2009 20:13
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16
Apache chroot please, for ISPConfig and ubuntu breezy! :) danf.1979 Suggest HOWTO 0 3rd April 2006 02:46


All times are GMT +2. The time now is 11:04.


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