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
  #1  
Old 2nd June 2009, 08:48
davers davers is offline
Junior Member
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default httpd.conf overwritten by package updater

I recently updated my apache and accidentally overwrote my httpd.conf. Now none of my virtual hosts are working that were set up in ispconfig. Is there an easy way to re-write the httpd.conf and get everything back in order without losing my data (sites, settings, etc..)?
Reply With Quote
Sponsored Links
  #2  
Old 2nd June 2009, 11:03
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,640
Thanks: 793
Thanked 4,999 Times in 3,910 Posts
Default

Add the following lines at the end of httpd.conf file and restart apache:

Code:
<Directory /var/www/sharedip>
    Options +Includes -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>

###############ispconfig_log###############
LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig

<Directory /var/www/*/web>
    Options +Includes -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>

<Directory /var/www/*/user/*/web>
    Options +Includes -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
    Options +Indexes
</Directory>

<Directory /var/www/*/cgi-bin>
    Options ExecCGI -Indexes
    AllowOverride None
    AllowOverride Indexes AuthConfig Limit FileInfo
    Order allow,deny
    Allow from all
    <Files ~ "^\.ht">
    Deny from all
    </Files>
</Directory>

Include /etc/apache2/vhosts/Vhosts_ispconfig.conf
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 3rd June 2009, 02:18
davers davers is offline
Junior Member
 
Join Date: Jun 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default new problem

that worked but not i'm getting the following


... waiting .[Tue Jun 02 17:17:03 2009] [warn] VirtualHost 192.168.192.100:80 overlaps with VirtualHost 192.168.192.100:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Jun 02 17:17:03 2009] [warn] VirtualHost 192.168.192.100:80 overlaps with VirtualHost 192.168.192.100:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Jun 02 17:17:03 2009] [warn] VirtualHost 192.168.192.100:80 overlaps with VirtualHost 192.168.192.100:80, the first has precedence, perhaps you need a NameVirtualHost directive
[Tue Jun 02 17:17:03 2009] [warn] NameVirtualHost 192.168.0.1:80 has no VirtualHosts
Reply With Quote
  #4  
Old 3rd June 2009, 09:06
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,640
Thanks: 793
Thanked 4,999 Times in 3,910 Posts
 
Default

Then the file was most likely not overwritten by the updater as you now seem to have the code that I posted above twice in your config files. Make sure that it is not in another file like apache2.conf or apache.conf.
__________________
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
yum issues el-sid Installation/Configuration 4 10th August 2011 11:01
How to install OpenOficeOrg 3.0.0 in Ubuntu 8.04 ernesthagger HOWTO-Related Questions 43 23rd December 2008 14:42
Transaction error Perfect FC6 setup ACDII HOWTO-Related Questions 1 6th July 2007 14:56
Help....package missing sbovisjb1 Installation/Configuration 3 31st March 2006 11:14
suse 9.3 install: E: Couldn't find package ncftp aallen Installation/Configuration 4 26th January 2006 20:02


All times are GMT +2. The time now is 14:48.


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