开发者

httpd.conf: ignore certain directories?

开发者 https://www.devze.com 2022-12-12 00:31 出处:网络
I have an httpd.conf file that looks like this: Alias /media/ /var/projects/potato_gun/media/ WSGIScriptAlias / /var/projects/potato_gun/django.wsgi

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 /~?


how about AliasMatch?

I think it would be /(*~)media/

0

精彩评论

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