<?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: Python Projects in Users&#8217; Home Directories with wsgi</title>
	<atom:link href="http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/feed/" rel="self" type="application/rss+xml" />
	<link>http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/</link>
	<description></description>
	<lastBuildDate>Sat, 13 Mar 2010 16:23:00 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: itjobs1</title>
		<link>http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/comment-page-1/#comment-15203</link>
		<dc:creator>itjobs1</dc:creator>
		<pubDate>Tue, 08 Dec 2009 19:13:51 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=484#comment-15203</guid>
		<description>Thanks for that! That&#039;s very useful. ;-)</description>
		<content:encoded><![CDATA[<p>Thanks for that! That&#39;s very useful. ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Allard</title>
		<link>http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/comment-page-1/#comment-15186</link>
		<dc:creator>Greg Allard</dc:creator>
		<pubDate>Wed, 22 Jul 2009 19:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=484#comment-15186</guid>
		<description>I like the AddHandler approach more than what I was trying in this post. It is better since AddHandler will work in an .htaccess file. Which means this doesn&#039;t require a new public_python folder and doesn&#039;t require /p/ to be added to the url. &lt;br&gt;&lt;br&gt;Before arriving at the solution in my post I tried using an .htaccess file and the directives I tried weren&#039;t supported in .htaccess. I didn&#039;t read the part about AddHandler so I missed that.&lt;br&gt;&lt;br&gt;Something with either WSGIDaemonProcess or WSGIProcessGroup from the code in the blog post is making those applications work in daemon mode. It seems like any wsgi file that is touched will result in the code being reloaded for that project.</description>
		<content:encoded><![CDATA[<p>I like the AddHandler approach more than what I was trying in this post. It is better since AddHandler will work in an .htaccess file. Which means this doesn&#39;t require a new public_python folder and doesn&#39;t require /p/ to be added to the url. </p>
<p>Before arriving at the solution in my post I tried using an .htaccess file and the directives I tried weren&#39;t supported in .htaccess. I didn&#39;t read the part about AddHandler so I missed that.</p>
<p>Something with either WSGIDaemonProcess or WSGIProcessGroup from the code in the blog post is making those applications work in daemon mode. It seems like any wsgi file that is touched will result in the code being reloaded for that project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Dumpleton</title>
		<link>http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/comment-page-1/#comment-15183</link>
		<dc:creator>Graham Dumpleton</dc:creator>
		<pubDate>Sun, 12 Jul 2009 06:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=484#comment-15183</guid>
		<description>Sorry, I have been busy. For a start, look at latter part of section &#039;The Apache Alias Directive&#039; in:&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#The_Apache_Alias_Directive&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/modwsgi/wiki/Configura...&lt;/a&gt;&lt;br&gt;&lt;br&gt;The approach here, using AddHandler and multiviews matching, is to overlay, or insert, the WSGI application into the directories containing the static files. It results in a slighter cleaner configuration that using WSGIScriptAlias and then trying to overlay static resources on top of the WSGI application. Using AddHandler means you can add both WSGI applications and static files without needing to change Apache configuration and restart Apache.&lt;br&gt;&lt;br&gt;I have ignored daemon process groups for the moment, but can still be used in conjunction with this approach.</description>
		<content:encoded><![CDATA[<p>Sorry, I have been busy. For a start, look at latter part of section &#39;The Apache Alias Directive&#39; in:</p>
<p><a href="http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#The_Apache_Alias_Directive" rel="nofollow"></a><a href="http://code.google.com/p/modwsgi/wiki/Configura.." rel="nofollow">http://code.google.com/p/modwsgi/wiki/Configura..</a>.</p>
<p>The approach here, using AddHandler and multiviews matching, is to overlay, or insert, the WSGI application into the directories containing the static files. It results in a slighter cleaner configuration that using WSGIScriptAlias and then trying to overlay static resources on top of the WSGI application. Using AddHandler means you can add both WSGI applications and static files without needing to change Apache configuration and restart Apache.</p>
<p>I have ignored daemon process groups for the moment, but can still be used in conjunction with this approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Allard</title>
		<link>http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/comment-page-1/#comment-15182</link>
		<dc:creator>Greg Allard</dc:creator>
		<pubDate>Thu, 09 Jul 2009 15:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=484#comment-15182</guid>
		<description>I tried it without the LocationMatch directives and it works with just having AliasMatch in there for the static locations.&lt;br&gt;&lt;br&gt;I didn&#039;t expect that WSGIDaemonProcess wouldn&#039;t expand the python_project_name. I was doing that so that each project would have a different process so touching one wsgi file wouldn&#039;t effect another project. It seemed like it was working like that.&lt;br&gt;&lt;br&gt;If you can figure out a better way of doing this that would be awesome.</description>
		<content:encoded><![CDATA[<p>I tried it without the LocationMatch directives and it works with just having AliasMatch in there for the static locations.</p>
<p>I didn&#39;t expect that WSGIDaemonProcess wouldn&#39;t expand the python_project_name. I was doing that so that each project would have a different process so touching one wsgi file wouldn&#39;t effect another project. It seemed like it was working like that.</p>
<p>If you can figure out a better way of doing this that would be awesome.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Dumpleton</title>
		<link>http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/comment-page-1/#comment-15181</link>
		<dc:creator>Graham Dumpleton</dc:creator>
		<pubDate>Thu, 09 Jul 2009 01:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=484#comment-15181</guid>
		<description>The LocationMatch would be empty at that point and serving no purpose. The Alias and AliasMatch directives will always take precedence over WSGIScriptAlias and WSGIScriptAliasMatch, thus why you don&#039;t need the SetHandler None fiddle that mod_pythoin requires.&lt;br&gt;&lt;br&gt;BTW, am still looking and will post better configuration, but to start with, using:&lt;br&gt;&lt;br&gt;wsgi_processes.%{ENV:python_project_name}&lt;br&gt;&lt;br&gt;for argument to WSGIDaemonProcess is wrong, as that will not be expanded. Not even sure how it is working for you, as WSGIProcessGroup would be expanded and so wouldn&#039;t match the WSGIDaemonProcess and so it should give an error that you are delegating a non existent daemon process group, when request comes in and is evaluated.</description>
		<content:encoded><![CDATA[<p>The LocationMatch would be empty at that point and serving no purpose. The Alias and AliasMatch directives will always take precedence over WSGIScriptAlias and WSGIScriptAliasMatch, thus why you don&#39;t need the SetHandler None fiddle that mod_pythoin requires.</p>
<p>BTW, am still looking and will post better configuration, but to start with, using:</p>
<p>wsgi_processes.%{ENV:python_project_name}</p>
<p>for argument to WSGIDaemonProcess is wrong, as that will not be expanded. Not even sure how it is working for you, as WSGIProcessGroup would be expanded and so wouldn&#39;t match the WSGIDaemonProcess and so it should give an error that you are delegating a non existent daemon process group, when request comes in and is evaluated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Allard</title>
		<link>http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/comment-page-1/#comment-15180</link>
		<dc:creator>Greg Allard</dc:creator>
		<pubDate>Wed, 08 Jul 2009 22:26:33 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=484#comment-15180</guid>
		<description>Thanks for taking at look at this. I&#039;ll test it without SetHandler None when I get a chance. It is probably something I was keeping around from when I was using mod_python. I&#039;m guessing I need to keep LocationMatch in there so that the request doesn&#039;t go to the wsgi file though, right?</description>
		<content:encoded><![CDATA[<p>Thanks for taking at look at this. I&#39;ll test it without SetHandler None when I get a chance. It is probably something I was keeping around from when I was using mod_python. I&#39;m guessing I need to keep LocationMatch in there so that the request doesn&#39;t go to the wsgi file though, right?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham Dumpleton</title>
		<link>http://codespatter.com/2009/07/08/python-projects-in-users-home-directories-with-wsgi/comment-page-1/#comment-15179</link>
		<dc:creator>Graham Dumpleton</dc:creator>
		<pubDate>Wed, 08 Jul 2009 21:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://codespatter.com/?p=484#comment-15179</guid>
		<description>You don&#039;t need &#039;SetHandler None&#039; when using mod_wsgi. That nonsense should only be required for mod_python. I also suspect you have gone about this the hard way and there is easier ways which are documented in the mod_wsgi wiki. When I get a chance I will look through what you have done properly and comment again.</description>
		<content:encoded><![CDATA[<p>You don&#8217;t need &#8216;SetHandler None&#8217; when using mod_wsgi. That nonsense should only be required for mod_python. I also suspect you have gone about this the hard way and there is easier ways which are documented in the mod_wsgi wiki. When I get a chance I will look through what you have done properly and comment again.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
