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 7th October 2011, 18:20
Kira Kira is offline
Member
 
Join Date: Jun 2011
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apache Directives dissapears from vhost file

Hi,

I have a realy strange problem with the ApacheDirectives..

It's hard to describe, so I'll tell you what I do:


1) I look at my Apache .vhost file:
cat /etc/apache2/sites-enabled/myDomain.com.vhost


This looks fine so far.

2) I add this to the apache directives of my Site in ISPConfig3:

Code:
WSGIDaemonProcess myDaemon threads=15 maximum-requests=10000
<Directory /var/www/myDomain.de/web>
  Options Indexes MultiViews FollowSymLinks ExecCGI
  AllowOverride All

  DirectoryIndex index.html index.py index.php
  AddHandler wsgi-script .py

  WSGIProcessGroup myDaemon

  Order allow,deny
  Allow from all
</Directory>

3) I look at the .vhosts file again to see the changes.. after a few seconds they appear and are correct.

4) I go to my Website to load an Python file via WSGI.. and, I get to see the source code of my Python file..

5) I look into the vhost file again and... somehow my changes disappeared. In step 3 they were there and correct, now they are gone again..

In ISPConfig the Apache Directive Field still shows my changes, but they are not in the vhost file..


I can do this as often as I want, as soon as I visit my website or restart apache manually (apache2ctl restart) the changes are gone...


If I look into the "ISP Cron Log" there are some lines like this:
Quote:
Syntax error on line 306 of /etc/apache2/sites-enabled/myDomain.de.vhost:
Name duplicates previous WSGI daemon definition.
But the name is 100% unique!

Any idea what could be the problem?

Thanks,
Kira

Last edited by Kira; 7th October 2011 at 18:23.
Reply With Quote
Sponsored Links
  #2  
Old 7th October 2011, 18:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,763
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
Default

one of the directives causes apache to fail so ispconfig has to remove it again as apache did not start. to find the resond, rename the vhost file to e.g. vhost.bak in the sites-available directory and then rename the vhost err file which you find in the same directory to the name of the original vhsot file and then restart apache to see the error message on the shell.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th October 2011, 18:43
Kira Kira is offline
Member
 
Join Date: Jun 2011
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ah, okay.. the problem is, I am using SSL for this domain... and so my Apache Directives are placed twice in the vhost file..

Because of this the following line is also duplicated:

Code:
WSGIDaemonProcess myDaemon threads=15 maximum-requests=10000
And that's the problem...

Is there anything I can do to fix this?
Reply With Quote
  #4  
Old 8th October 2011, 14:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,763
Thanks: 821
Thanked 5,331 Times in 4,183 Posts
 
Default

If you want the apache directives only in the non ssl vhost, then you can e.g. Remove the apache directives placeholder from ssl part of the vhost master template.
__________________
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
Apache hangs without traffic Thesee General 21 27th September 2011 23:43
Centos5.4/ISPConfig 3--Virtual site not working MichaelCaditz Installation/Configuration 25 25th March 2011 11:37
[The Perfect Spamsnake Ubuntu 10.10] - No mail relay, just errors. itsnedkeren HOWTO-Related Questions 2 20th February 2011 10:45
SSL don't work please help me walner8080 Installation/Configuration 8 26th September 2010 12:07
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19


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


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