how do I know that I have apache static file configuration correct with mod_wsgi

StackOverflow https://stackoverflow.com/questions/21658495

  •  09-10-2022
  •  | 
  •  

I have apache 2.2 with mod_wsgi handling / WSGIScriptAlias / "...wsgihandler.py"

I have followed instructions to setup static file handling with AliasMatches and a matching directory configuration.

The website is working fine.

How can I determine that static content is served by Apache and not via wsgihandler.py working? The apache access log file doesn't help me, even when I set it to debug. I've tried to intercept and read traffic between Firefox and the server, but that didn't enlighten me either.

有帮助吗?

解决方案

Work out what the URLs of the static files are and then comment out the WSGIScriptAlias. The URLs should still work.

Note that in general you would not use AliasMatch but just Alias. You might want to provide the appropriate parts of the Apache configuration so it can be reviewed to see whether you are doing it in the best way.

其他提示

This is my attempt: load the headers_module

and in Header set MyHeader "Static content served"

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top