开发者

Best practice for setting up wsgi on root directory?

what's the best ways to mix static files and wsgi app served on the root directory?

http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide

recommends setting up

WSGIScriptAlias / /usr/local/www/wsgi-scripts/myapp.wsgi

and alias other directories an开发者_运维百科d files:

Alias /robots.txt /usr/local/www/documents/robots.txt
Alias /favicon.ico /usr/local/www/documents/favicon.ico

Alias /media/ /usr/local/www/documents/media/

is there a cleaner way to do this?


Nope. You need the Alias directives to override the WSGIScriptAlias directive when handling static media.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜