我在Apache中配置了WSGI,如下所示:
WSGIDaemonProcess a_name threads=10
WSGIPassAuthorization On
WSGIScriptAlias / path_to_wsgi_script
它工作得很好。 Python脚本正在处理/和“child-urls”的每个请求(例如/ data,/ data1 / data2等)。
我想在/ called / test中创建一个文件夹并将普通文件放在那里(HTML,CSS,JS)。当然,我想通过诸如
之类的URL访问这些文件http://whatever_domain/test/file1.html
不幸的是,这不起作用,正如我上面提到的,正在执行Python脚本。
是否可以配置Apache以使WSGI下的文件/ /测试不被Apache本身处理?
感谢。
答案 0 :(得分:2)
只需在WSGIScriptAlias上面找到所需目录的Alias
指令:
Alias /test/ /path/to/test/directory/
WSGIScriptAlias / path_to_wsgi_script
有关详细信息,请参阅文档。