Python 部署Satchmo是否有一个到FCGI的方法?
详细介绍了FCGI的一些设置,但尽管它包含Apache配置文件的内容,但它忽略了FCGI 如何为在绑定到127.0.0.1的同一服务器上运行并侦听端口1234的daemonized fastcgi进程创建site.fcgi文件 --编辑-- 我的httpd.conf中有以下内容:Python 部署Satchmo是否有一个到FCGI的方法?,python,django,deployment,fastcgi,satchmo,Python,Django,Deployment,Fastcgi,Satchmo,详细介绍了FCGI的一些设置,但尽管它包含Apache配置文件的内容,但它忽略了FCGI 如何为在绑定到127.0.0.1的同一服务器上运行并侦听端口1234的daemonized fastcgi进程创建site.fcgi文件 --编辑-- 我的httpd.conf中有以下内容: FastCGIExternalServer /home/jonathan/store/deploy/store.fcgi -host 127.0.0.1:1234 <VirtualHost *:80>
FastCGIExternalServer /home/jonathan/store/deploy/store.fcgi -host 127.0.0.1:1234
<VirtualHost *:80>
ServerName steampunk.stornge.com
DocumentRoot /home/jonathan/store/
Alias /media /home/jonathan/store/media
RewriteEngine On
RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
RewriteCond %(REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ /store.fcgi/$1 [QSA,L]
</VirtualHost>
我还有,跑步
python manage.py runfcgi method=threaded host=127.0.0.1 port=1234
当我调出http://[hostname]时,我得到:
Not Found
The requested URL / was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.22 (Ubuntu) Server at [hostname] Port 80
http://[hostname]/media调出一个填充的索引
在使用FCGI的过程中,有什么可以改进,或者可能会造成麻烦?store.cgi基于几个.fcgi文件,我在Django或fcgi文档中找不到Satchmo的模型fcgi文件后使用了这些文件。我不太相信它;我只是没有用谷歌搜索到更好的东西
有什么建议吗?我已经成功地用另一个选项部署了它,FCGI: 在启用的站点中:
FastCGIExternalServer /home/jonathan/testfcgi/testfcgi.fcgi -host 127.0.0.1:3033
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName testfcgi.jonathanscorner.com
DocumentRoot /home/jonathan/testfcgi
Alias /media /home/testfcgi/media
RewriteEngine On
RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ /testfcgi.fcgi/$1 [QSA,L]
<Directory /home/jonathan/testfcgi/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
FastCGIExternalServer/home/jonathan/testfcgi/testfcgi.fcgi-主机127.0.0.1:3033
服务器管理员webmaster@localhost
ServerName testfcgi.jonathanscorner.com
DocumentRoot/home/jonathan/testfcgi
别名/media/home/testfcgi/media
重新启动发动机
重写规则^/(媒体。*)$/$1[QSA,L,PT]
重写cond%{REQUEST_FILENAME}-F
重写规则^/(.*)$/testfcgi.fcgi/$1[QSA,L]
选项索引跟随符号链接多视图
不允许超限
命令允许,拒绝
通融
ErrorLog${APACHE_LOG_DIR}/error.LOG
#可能的值包括:调试、信息、通知、警告、错误、临界值、,
#警惕,埃默格。
日志级别警告
CustomLog${APACHE\u LOG\u DIR}/access.LOG组合
这与fcgi的命令行调用相结合
FastCGIExternalServer /home/jonathan/testfcgi/testfcgi.fcgi -host 127.0.0.1:3033
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName testfcgi.jonathanscorner.com
DocumentRoot /home/jonathan/testfcgi
Alias /media /home/testfcgi/media
RewriteEngine On
RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ /testfcgi.fcgi/$1 [QSA,L]
<Directory /home/jonathan/testfcgi/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>