我的Blog在Dreamhost上,听说可以运行Django程序,所以想在上面跑一个Django应用,一边学习Django,一边做一些互联网的小应用,目前只作了一个页面,没有任何功能。
这里是一个很好的教程,我说一下我遇到的一些问题,因为我的应用不是存放在根下面的,而是在rstools目录下,所以我的rstools目录下的.htaccess文件内容如下:
RewriteEngine On
RewriteBase /rstools/
RewriteRule ^(dispatch\.fcgi/.*)$ – [L]
RewriteRule ^(.*)$ /rstools/dispatch.fcgi/$1 [L]
然后因为我的FastCGI没有开启,所以会报告如下错误:
mod_rewrite: maximum
number of internal redirects reached. Assuming configuration error. Use ‘Rewrite
Options MaxRedirects’ to increase the limit if neccessary.
FastCGI没有开启时另一个症状是直接访问dispach.fcgi则会返回其文件内容,而不是执行的结果。在DreamHost的控制面板中打开FastCGI就可以解决这个问题。
Related posts:
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.