View Single Post
Old 31st March 2013, 14:50
andreash andreash is offline
Junior Member
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to specify WSGIDaemonProcess vhost Option when using SSL


in a site using SSL, I want to configure mod_wsgi to serve Django. So I add the following to the "Apache Directives":

WSGIScriptAlias / /var/www/
WSGIDaemonProcess python-path=/var/www/

<Directory /var/www/>
Order deny,allow
Allow from all
I have SSL enabled for the site. Now, when I try to restart apache, I get the following error:

# apache2ctl configtest
Syntax error on line 176 of /etc/apache2/sites-enabled/
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
Reply With Quote
Sponsored Links