httpd.conf:忽略某些目录?
我有一个 httpd.conf
文件,如下所示:
Alias /media/ /var/projects/potato_gun/media/
WSGIScriptAlias / /var/projects/potato_gun/django.wsgi
问题是,我破坏了所有以 /~username
开头的 URL,因为它们被发送到 django.wsgi 代替。无论如何,我可以让它忽略任何以
/~
开头的 URL 吗?
I have an httpd.conf
file that looks like this:
Alias /media/ /var/projects/potato_gun/media/
WSGIScriptAlias / /var/projects/potato_gun/django.wsgi
The problem is, I broke all my URLs that start with /~username
because they get sent off to django.wsgi
instead. Is there anyway I can get it to ignore any URL that starts with /~
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AliasMatch 怎么样?
我想应该是/(*~)media/
how about AliasMatch?
I think it would be /(*~)media/