View Single Post
Old 7th October 2011, 19:20
Kira Kira is offline
Join Date: Jun 2011
Posts: 41
Thanks: 0
Thanked 3 Times in 3 Posts
Default Apache Directives dissapears from vhost file


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/

This looks fine so far.

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

WSGIDaemonProcess myDaemon threads=15 maximum-requests=10000
<Directory /var/www/>
  Options Indexes MultiViews FollowSymLinks ExecCGI
  AllowOverride All

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

  WSGIProcessGroup myDaemon

  Order allow,deny
  Allow from all

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:
Syntax error on line 306 of /etc/apache2/sites-enabled/
Name duplicates previous WSGI daemon definition.
But the name is 100% unique!

Any idea what could be the problem?


Last edited by Kira; 7th October 2011 at 19:23.
Reply With Quote
Sponsored Links