<?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: web2py behind apache with mod_wsgi part II: mod_rewrite rules</title>
	<atom:link href="http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/feed/" rel="self" type="application/rss+xml" />
	<link>http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/</link>
	<description>Yet Another _unnecessary_ Blog</description>
	<lastBuildDate>Tue, 29 Nov 2011 03:16:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Haros</title>
		<link>http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/comment-page-1/#comment-4999</link>
		<dc:creator>Haros</dc:creator>
		<pubDate>Sun, 13 Mar 2011 14:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://jdoe.asidev.com/?p=107#comment-4999</guid>
		<description>Hey jdoe.
Can we also exclude the application name from the url? Because when you start visiting the links in a site it reveals the application&#039;s name. For example let&#039;s say we have a &quot;links&quot; category. When we visit it, it reveals www.primo.it/primo/links. It would be better if we could just have wwww.primo.it/links</description>
		<content:encoded><![CDATA[<p>Hey jdoe.<br />
Can we also exclude the application name from the url? Because when you start visiting the links in a site it reveals the application&#8217;s name. For example let&#8217;s say we have a &#8220;links&#8221; category. When we visit it, it reveals <a href="http://www.primo.it/primo/links" rel="nofollow">http://www.primo.it/primo/links</a>. It would be better if we could just have wwww.primo.it/links</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jdoe</title>
		<link>http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/comment-page-1/#comment-4853</link>
		<dc:creator>jdoe</dc:creator>
		<pubDate>Sun, 06 Mar 2011 09:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://jdoe.asidev.com/?p=107#comment-4853</guid>
		<description>Thanks Haro, I&#039;ve updated the post.</description>
		<content:encoded><![CDATA[<p>Thanks Haro, I&#8217;ve updated the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haros</title>
		<link>http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/comment-page-1/#comment-4849</link>
		<dc:creator>Haros</dc:creator>
		<pubDate>Sun, 06 Mar 2011 01:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://jdoe.asidev.com/?p=107#comment-4849</guid>
		<description>Thank you VERY much for this guide! It really helped!


*a minor fix*
[NC, OR] must be [NC,OR] (without the space) otherwise you get a &quot;bad flag delimiters&quot; error.</description>
		<content:encoded><![CDATA[<p>Thank you VERY much for this guide! It really helped!</p>
<p>*a minor fix*<br />
[NC, OR] must be [NC,OR] (without the space) otherwise you get a &#8220;bad flag delimiters&#8221; error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jdoe</title>
		<link>http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/comment-page-1/#comment-1947</link>
		<dc:creator>jdoe</dc:creator>
		<pubDate>Wed, 23 Sep 2009 07:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://jdoe.asidev.com/?p=107#comment-1947</guid>
		<description>uhm, maybe this email can be of help? are you using fcgi or wsgi? http://www.mail-archive.com/<span class="mh-email">modw<a href='http://www.google.com/recaptcha/mailhide/d?k=01ROBwkPsNhZDp7lyc0xirnQ==&amp;c=y31woZAk94Uv9UUdKIMLwx5BLOg2FfdxvjsGY9ttnus=' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01ROBwkPsNhZDp7lyc0xirnQ==&amp;c=y31woZAk94Uv9UUdKIMLwx5BLOg2FfdxvjsGY9ttnus=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@googlegroups.com</span>/msg00499.html</description>
		<content:encoded><![CDATA[<p>uhm, maybe this email can be of help? are you using fcgi or wsgi? <span class="mh-email">http<a href='http://www.google.com/recaptcha/mailhide/d?k=01ROBwkPsNhZDp7lyc0xirnQ==&amp;c=Z_R3OBMvwtUQFpRrjnDdwqIh_5OW9xu6sUaeqoiV4npuRwTWIBV-F9B6zojx7vQBFo3Ts0YScP5I_L2Qpc1FlhYs5RbEeINa5Cs5i9zA5Hc=' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=01ROBwkPsNhZDp7lyc0xirnQ==&amp;c=Z_R3OBMvwtUQFpRrjnDdwqIh_5OW9xu6sUaeqoiV4npuRwTWIBV-F9B6zojx7vQBFo3Ts0YScP5I_L2Qpc1FlhYs5RbEeINa5Cs5i9zA5Hc=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="Reveal this e-mail address">...</a>@googlegroups.com/msg00499.html</span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/comment-page-1/#comment-1945</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 22 Sep 2009 22:19:19 +0000</pubDate>
		<guid isPermaLink="false">http://jdoe.asidev.com/?p=107#comment-1945</guid>
		<description>But what happens when you are on a shared hosting environment? (I am trying for the past two days to write a full tutorial on how to install and setup web2py on shared hosting accounts. IF I ever gather all the info, you&#039;ll get a HUGE HUGE HUGE thanks-and a link of course). 

Thanks again for all the help (I can&#039;t believe it&#039;s THAT difficult to run web2py on shared account)</description>
		<content:encoded><![CDATA[<p>But what happens when you are on a shared hosting environment? (I am trying for the past two days to write a full tutorial on how to install and setup web2py on shared hosting accounts. IF I ever gather all the info, you&#8217;ll get a HUGE HUGE HUGE thanks-and a link of course). </p>
<p>Thanks again for all the help (I can&#8217;t believe it&#8217;s THAT difficult to run web2py on shared account)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jdoe</title>
		<link>http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/comment-page-1/#comment-1944</link>
		<dc:creator>jdoe</dc:creator>
		<pubDate>Tue, 22 Sep 2009 19:49:02 +0000</pubDate>
		<guid isPermaLink="false">http://jdoe.asidev.com/?p=107#comment-1944</guid>
		<description>look at the previous post http://jdoe.asidev.com/2009/02/26/configure-web2py-to-run-behind-apache-with-wsgi-mod_wsgi/
You need a WSGIScriptAlias or ScriptAlias for this to work</description>
		<content:encoded><![CDATA[<p>look at the previous post <a href="http://jdoe.asidev.com/2009/02/26/configure-web2py-to-run-behind-apache-with-wsgi-mod_wsgi/" rel="nofollow">http://jdoe.asidev.com/2009/02/26/configure-web2py-to-run-behind-apache-with-wsgi-mod_wsgi/</a><br />
You need a WSGIScriptAlias or ScriptAlias for this to work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/comment-page-1/#comment-1943</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 22 Sep 2009 19:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://jdoe.asidev.com/?p=107#comment-1943</guid>
		<description>So, what has to be added to your code to make it ok? I don&#039;t think removing [PT] solves the problem :)

RewriteEngine On

RewriteCond %{HTTP_HOST} =www.primo.it [NC,OR]
RewriteCond %{HTTP_HOST} =primo.it [NC]
RewriteRule /primo/(.*) /$1 [N]

RewriteCond %{HTTP_HOST} =www.primo.it [NC,OR]
RewriteCond %{HTTP_HOST} =primo.it [NC]
RewriteRule ^/(.*) /primo/$1 [PT,L]</description>
		<content:encoded><![CDATA[<p>So, what has to be added to your code to make it ok? I don&#8217;t think removing [PT] solves the problem <img src='http://jdoe.asidev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>RewriteEngine On</p>
<p>RewriteCond %{HTTP_HOST} =www.primo.it [NC,OR]<br />
RewriteCond %{HTTP_HOST} =primo.it [NC]<br />
RewriteRule /primo/(.*) /$1 [N]</p>
<p>RewriteCond %{HTTP_HOST} =www.primo.it [NC,OR]<br />
RewriteCond %{HTTP_HOST} =primo.it [NC]<br />
RewriteRule ^/(.*) /primo/$1 [PT,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jdoe</title>
		<link>http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/comment-page-1/#comment-1942</link>
		<dc:creator>jdoe</dc:creator>
		<pubDate>Tue, 22 Sep 2009 18:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://jdoe.asidev.com/?p=107#comment-1942</guid>
		<description>sorry, I didn&#039;t notice the space between flags :)

looking at your .htaccess you are using PT flag but you don&#039;t have a Alias/ScriptAlias/WSGIScriptAlias so, yes, I think it&#039;s ignoring the rewrite rule
Look here for more info on PT flag: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule</description>
		<content:encoded><![CDATA[<p>sorry, I didn&#8217;t notice the space between flags <img src='http://jdoe.asidev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>looking at your .htaccess you are using PT flag but you don&#8217;t have a Alias/ScriptAlias/WSGIScriptAlias so, yes, I think it&#8217;s ignoring the rewrite rule<br />
Look here for more info on PT flag: <a href="http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule" rel="nofollow">http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/comment-page-1/#comment-1941</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 22 Sep 2009 18:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://jdoe.asidev.com/?p=107#comment-1941</guid>
		<description>After a lot of fiddling around and posting around the internet:
http://stackoverflow.com/questions/1454384/htaccess-transparently-adding-a-name-to-the-request
http://serverfault.com/questions/67615/htaccess-transparently-adding-a-name-to-the-request

I think that the problem is the added space between parameters (like [NC, OR]).
Now, it doesn&#039;t throw an error but when I am hitting the domain, it redirects to http://mydomain.com/welcome/default/index (is it ignoring it?)</description>
		<content:encoded><![CDATA[<p>After a lot of fiddling around and posting around the internet:<br />
<a href="http://stackoverflow.com/questions/1454384/htaccess-transparently-adding-a-name-to-the-request" rel="nofollow">http://stackoverflow.com/questions/1454384/htaccess-transparently-adding-a-name-to-the-request</a><br />
<a href="http://serverfault.com/questions/67615/htaccess-transparently-adding-a-name-to-the-request" rel="nofollow">http://serverfault.com/questions/67615/htaccess-transparently-adding-a-name-to-the-request</a></p>
<p>I think that the problem is the added space between parameters (like [NC, OR]).<br />
Now, it doesn&#8217;t throw an error but when I am hitting the domain, it redirects to <a href="http://mydomain.com/welcome/default/index" rel="nofollow">http://mydomain.com/welcome/default/index</a> (is it ignoring it?)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://jdoe.asidev.com/2009/04/17/web2py-behind-apache-with-mod_wsgi-part-ii-mod_rewrite-rules/comment-page-1/#comment-1940</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 22 Sep 2009 17:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://jdoe.asidev.com/?p=107#comment-1940</guid>
		<description>Thanks a lot for your help. I am writing it on linux. I am googling and I&#039;ve even added a question at stackoverflow and serverfault.com. It&#039;s definitely something wrong with my spaces :)
Thank again!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for your help. I am writing it on linux. I am googling and I&#8217;ve even added a question at stackoverflow and serverfault.com. It&#8217;s definitely something wrong with my spaces <img src='http://jdoe.asidev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thank again!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

