<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Hosting Multiple WSGI Applications with Apache</title>
	<atom:link href="http://mediacore.com/blog/hosting-multiple-wsgi-applications-with-apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://mediacore.com/blog/hosting-multiple-wsgi-applications-with-apache/</link>
	<description>A few of our favourite things</description>
	<lastBuildDate>Thu, 02 Feb 2012 23:54:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Laverne Hibberd</title>
		<link>http://mediacore.com/blog/hosting-multiple-wsgi-applications-with-apache/comment-page-1/#comment-2679</link>
		<dc:creator>Laverne Hibberd</dc:creator>
		<pubDate>Wed, 14 Dec 2011 13:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://getmediacore.com/blog/?p=105#comment-2679</guid>
		<description>Some genuinely good content on this site, regards for contribution.</description>
		<content:encoded><![CDATA[<p>Some genuinely good content on this site, regards for contribution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony Theocharis</title>
		<link>http://mediacore.com/blog/hosting-multiple-wsgi-applications-with-apache/comment-page-1/#comment-28</link>
		<dc:creator>Anthony Theocharis</dc:creator>
		<pubDate>Wed, 12 Aug 2009 19:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://getmediacore.com/blog/?p=105#comment-28</guid>
		<description>Graham, thanks so much for your advice.

I haven&#039;t had a chance to try it out yet, but as soon as I do, I&#039;ll post back here.</description>
		<content:encoded><![CDATA[<p>Graham, thanks so much for your advice.</p>
<p>I haven&#8217;t had a chance to try it out yet, but as soon as I do, I&#8217;ll post back here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pete</title>
		<link>http://mediacore.com/blog/hosting-multiple-wsgi-applications-with-apache/comment-page-1/#comment-27</link>
		<dc:creator>Pete</dc:creator>
		<pubDate>Fri, 07 Aug 2009 19:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://getmediacore.com/blog/?p=105#comment-27</guid>
		<description>A slightly off topic question, but could you please tell me what font you use for the simple station and mediaplex logos?</description>
		<content:encoded><![CDATA[<p>A slightly off topic question, but could you please tell me what font you use for the simple station and mediaplex logos?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Dumpleton</title>
		<link>http://mediacore.com/blog/hosting-multiple-wsgi-applications-with-apache/comment-page-1/#comment-26</link>
		<dc:creator>Graham Dumpleton</dc:creator>
		<pubDate>Tue, 04 Aug 2009 10:24:38 +0000</pubDate>
		<guid isPermaLink="false">http://getmediacore.com/blog/?p=105#comment-26</guid>
		<description>Ahhhhh, it swallowed up all the Location tags. One last try:

  &lt;Location /my_app&gt;
  WSGIProcessGroup app1
  &lt;/Location&gt;

  &lt;Location /my_app_demo&gt;
  WSGIProcessGroup app2
  &lt;/Location&gt;</description>
		<content:encoded><![CDATA[<p>Ahhhhh, it swallowed up all the Location tags. One last try:</p>
<p>  &lt;Location /my_app&gt;<br />
  WSGIProcessGroup app1<br />
  &lt;/Location&gt;</p>
<p>  &lt;Location /my_app_demo&gt;<br />
  WSGIProcessGroup app2<br />
  &lt;/Location&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Dumpleton</title>
		<link>http://mediacore.com/blog/hosting-multiple-wsgi-applications-with-apache/comment-page-1/#comment-25</link>
		<dc:creator>Graham Dumpleton</dc:creator>
		<pubDate>Tue, 04 Aug 2009 10:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://getmediacore.com/blog/?p=105#comment-25</guid>
		<description>I&#039;m not sure it is safe to run two TG instances in same interpreter, which using WSGIApplicationGroup with value of %{GLOBAL} for both would do. Just because you use prefork MPM doesn&#039;t mean you can&#039;t use daemon mode, so you would be better off delegating each to their own daemon process.

  WSGIDaemonProcess app1 processes=2 threads=1
  WSGIDaemonProcess app2 processes=2 threads=2

  WSGIScriptAlias /my_app /home/myuser/myapp/wsgi_scripts/deployment.wsgi
  WSGIScriptAlias /my_app_demo /home/myuser/myapp/wsgi_scripts/deployment.wsgi

  
  WSGIProcessGroup app1
  

  
  WSGIProcessGroup app2
  

If need be, you could still use WSGIApplicationGroup set to %{GLOBAL} which means each would run in main interpreter of their respective processes.

Note,  I have assumed you need single threading, but if multithread safe mode, then instead use:

  WSGIDaemonProcess app1
  WSGIDaemonProcess app2

This will default to single process for each with thread pool of 15 threads in the process.
Hope this blog comment mode doesn&#039;t stuff with the configuration formatting too much.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure it is safe to run two TG instances in same interpreter, which using WSGIApplicationGroup with value of %{GLOBAL} for both would do. Just because you use prefork MPM doesn&#8217;t mean you can&#8217;t use daemon mode, so you would be better off delegating each to their own daemon process.</p>
<p>  WSGIDaemonProcess app1 processes=2 threads=1<br />
  WSGIDaemonProcess app2 processes=2 threads=2</p>
<p>  WSGIScriptAlias /my_app /home/myuser/myapp/wsgi_scripts/deployment.wsgi<br />
  WSGIScriptAlias /my_app_demo /home/myuser/myapp/wsgi_scripts/deployment.wsgi</p>
<p>  WSGIProcessGroup app1</p>
<p>  WSGIProcessGroup app2</p>
<p>If need be, you could still use WSGIApplicationGroup set to %{GLOBAL} which means each would run in main interpreter of their respective processes.</p>
<p>Note,  I have assumed you need single threading, but if multithread safe mode, then instead use:</p>
<p>  WSGIDaemonProcess app1<br />
  WSGIDaemonProcess app2</p>
<p>This will default to single process for each with thread pool of 15 threads in the process.<br />
Hope this blog comment mode doesn&#8217;t stuff with the configuration formatting too much.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

