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 31st March 2013, 13: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

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
Reply With Quote
Sponsored Links
  #2  
Old 14th November 2013, 18:31
Diggo Diggo is offline
Junior Member
 
Join Date: May 2007
Location: Hessen, Germany
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Allthough this is a very old topic, i have exactly the same problem. Have you found a solution to that yet?
__________________
Wer nicht fragt bleibt dumm... | 2 x ISPconfig3 - kvm domU Ubuntu 12.04 - Master/Slave configuration
Reply With Quote
  #3  
Old 14th November 2013, 19:17
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 922
Thanks: 16
Thanked 259 Times in 206 Posts
Default

Theres no option for setting different directives to ssl and non-ssl vhosts inside ISPConfig yet.
__________________
Marius Cramer

pixcept KG
Reply With Quote
  #4  
Old 14th November 2013, 19:19
Diggo Diggo is offline
Junior Member
 
Join Date: May 2007
Location: Hessen, Germany
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Thanks for the quick reply! Then i can quit on searching a solution for this Looks like i have to set up a separate small vserver for this.
__________________
Wer nicht fragt bleibt dumm... | 2 x ISPconfig3 - kvm domU Ubuntu 12.04 - Master/Slave configuration
Reply With Quote
Reply

Bookmarks

Tags
apache2, django, python, ssl apache2, wsgi

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
haproxy with stunnel problem abubin Server Operation 6 10th April 2012 15:08
Need help with ISPConfig 3 Update midcarolina Installation/Configuration 36 8th November 2011 22:07
Changing SSL box not affect vhost file Mike007 Installation/Configuration 9 24th October 2011 21:03
Can all the installation and configuration be automated (Kickstart) gabby Installation/Configuration 0 30th January 2010 19:47
So close to getting 3D on my ATI graphics card, please help me finish thirtythree HOWTO-Related Questions 6 27th September 2007 22:04


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


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