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