[PYTHON] Check if mod_wsgi can be built

I don't call "WSGI" "whiskey" but "rabbit", so when I say a word during a conversation, I get a suspicious look. Well, anything is fine.

Apache2, mod_wsgi, and python all have a lot of options in ./configure to get into the oleorepath. After rewriting the generated Makefile and somehow installing it, I added a lot of options, so I don't want to write anything anymore if possible. But I have to check the operation.

httpd.conf


LoadModule wsgi_module modules/mod_wsgi.so
WSGIPythonHome  /ore/ore/path/to/python3.3.2
WSGIScriptAlias /hello /path/to/hello.py

hello.py


def application(environ, start_response):
    start_response("200 OK", [("Content-type", "text/plain")])
    return ["My Chihaya is so cute."]

If you write at least this much, you can confirm that it works by accessing it with a browser for the time being.

httpd.conf


WSGIPythonHome  /ore/ore/path/to/python3.3.2

It will be the value of --prefix specified as an option during Python build above.

Recommended Posts

Check if mod_wsgi can be built
Have python check if the string can be converted / converted to int
pd.tseries.offsets.DateOffset can be quite slow if not used with caution
Maybe it can be recursed
Don't use too strong words ... It looks weak ~ Let's check if AI can be paraphrased "gentlely" ~
Check if you can connect to a TCP port in Python