Hi,
in a site using SSL, I want to configure mod_wsgi to serve Django. So I add the following to the "Apache Directives":
Code:
WSGIScriptAlias / /var/www/example.com/django/mysite/wsgi.py
WSGIDaemonProcess landwg.de python-path=/var/www/example.com/django:/var/www/example.com/pyenv/lib/python2.6/site-packages
WSGIProcessGroup landwg.de
<Directory /var/www/example.com/django/mysite>
<Files wsgi.py>
Order deny,allow
Allow from all
</Files>
</Directory>
I have SSL enabled for the site. Now, when I try to restart apache, I get the following error:
Quote:
# apache2ctl configtest
Syntax error on line 176 of /etc/apache2/sites-enabled/100-example.com.vhost:
Name duplicates previous WSGI daemon definition.
Action 'configtest' failed.
|
And indeed, the WSGI daemon definition is included twice. I see two options here:
a) Since I want to enforce SSL for this site (haven't figured out how to do that -- is it possible using ispconfig only?), I don't need the WSGI Daemon definition in the Port 80 Vhost. But how could I do that in ispconfig?
b) The parameter I give to the WSGIDaemonProcess directive should differ between the port 80 and port 443 vhosts. Is this possible?
Any help is greatly appreciated
Recent comments
5 hours 52 min ago
10 hours 45 min ago
19 hours 37 min ago
20 hours 37 min ago
1 day 24 min ago
1 day 1 hour ago
1 day 5 hours ago
1 day 12 hours ago
1 day 21 hours ago
1 day 22 hours ago