文件系统领域有明显的赢家吗?例如,某些文件系统在 VMWare 或 VirtualBox 等虚拟化环境中的性能是否明显更好?某些文件系统在 VMDK/VDI 格式中是否浪费了更多或更少的磁盘空间,在虚拟环境中运行时特定文件系统的布局是否突出?对于非关键操作,日志值得吗?还是它们都一样?
主页
/
user-4013
Tomas Andrle's questions
Tomas Andrle
Asked:
2009-08-28 15:17:55 +0800 CST
我正在尝试设置 Apache、Django 和mod_xsendfile以允许我使用 Django 身份验证控制对某些文件的访问,同时仍然使用 Apache 发送实际的文件数据。
我有这个配置的问题:
# Some files must be publicly available without the Django auth check.
# When I comment this out, public media is not accessible but the WSGI script for
# /media/attachment DOES get called.
# So I think I need to somehow exclude /media/attachment from the effect of this Alias
Alias /media/ /var/www/vhosts/domain.com/subdomains/project/httpdocs/media/
# This <Location> block disables everything (Forbidden) regardless of the WSGI stuff
#
#<Location /media/attachments>
# Deny from all
#</Location>
WSGIScriptAlias / /var/www/vhosts/cdomain.com/subdomains/project/httpdocs/web/apache/django.wsgi
WSGIScriptAlias /media/attachments /var/www/vhosts/domain.com/subdomains/project/httpdocs/web/apache/django.wsgi
XSendFile On
如何告诉 Apache 通过 WSGI 脚本将请求路由到 /media/attachments 并直接为 /media 的其余部分提供服务?
Tomas Andrle
Asked:
2009-07-22 07:02:35 +0800 CST
Tomas Andrle
Asked:
2009-07-03 11:35:52 +0800 CST