开发者

Best practice for setting up wsgi on root directory?

开发者 https://www.devze.com 2022-12-26 17:45 出处:网络
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

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

精彩评论

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

关注公众号