|
Size: 2035
Comment: 删除对PageComment2组件的引用
|
← Revision 3 as of 2009-12-25 07:16:22 ⇥
Size: 2038
Comment: converted to 1.6 markup
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 4: | Line 4: |
| [[TableOfContents]] | <<TableOfContents>> |
| Line 6: | Line 6: |
| ||<^>'''[:MoinHowMigrateTo1.6:Moin升迁到1.6.*]'''||[[Include(ZPyUGnav)]]|| | ||<^>'''[[MoinHowMigrateTo1.6|Moin升迁到1.6.*]]'''||<<Include(ZPyUGnav)>>|| |
| Line 24: | Line 24: |
| *[[http://wiki.codemongers.com/NginxNgxWSGIModule|参考文章]] | *[[[http://wiki.codemongers.com/NginxNgxWSGIModule|参考文章]]] |
| Line 90: | Line 90: |
| 创建 by -- ZoomQuiet [[[DateTime(2008-04-30T10:11:38Z)]]] | 创建 by -- ZoomQuiet [<<DateTime(2008-04-30T10:11:38Z)>>] |
发布在nginx + mod_wsgi
编译mod_wsgi
下载URL:http://hg.mperillo.ath.cx/nginx/mod_wsgi
- 在 FreeBSD 中
./configure --add-module=/path/to/mod_wsgi make make install
参考文章]
nginx通用wsgi程序配置
worker_processes 4;
user www;
error_log logs/error.log info;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
env HOME;
env PYTHONPATH=/usr/local/bin/python; #python解释器路径
http {
include conf/mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
wsgi_python_optimize 2;
wsgi_python_executable /usr/local/bin/python; python解释器路径
wsgi_enable_subinterpreters on;
server {
listen 192.168.55.164:8080; #根据情况定制
server_name 192.168.55.164:8080;
include conf/wsgi_vars; #请确认编译的nginx有个文件
location / {
alias "/data0/ksmatrix/wiki/moin/htdocs/"; #为了使用ico图标文件的。
}
location /moin/moin_static163 {
alias /data0/ksmatrix/wiki/moin/htdocs; # moinmoin的media文件
}
location /moin {
wsgi_pass /usr/local/lib/python2.5/site-packages/MoinMoin/server/server_wsgi.py; #这个文件的内容在下面有提供!
include conf/wsgi_vars;
}
}
}
server_wsgi.py
在/path/2/site-packages/MoinMoin/server/server_wsgi.py文件最后中增加:
import sys
sys.path.append("/data0/moin_tmp")
application = moinmoinApp反馈
创建 by -- ZoomQuiet [2008-04-30 10:11:38]
