本网站记录了对QQ三国数值系统的各种研究结果,并包含了相应的辅助计算工具。如有过时或错误的内容,欢迎指出。
网站地址:这里
环境:python 3.10.2(必须installed for all users), Apache 2.4
安装Flask
pip install Flask
安装mod_wsgi
pip install mod_wsgi
或在Unofficial Windows Binaries for Python Extension Packages下载安装预编译的wheel
pip install mod_wsgi‑4.9.0‑cp310‑cp310‑win_amd64.whl
运行
mod_wsgi-express module-config
得到类似下面的输出
LoadFile "C:/Program Files/Python310/python310.dll"
LoadModule wsgi_module "C:/Program Files/Python310/lib/site-packages/mod_wsgi/server/mod_wsgi.cp310-win_amd64.pyd"
WSGIPythonHome "C:/Program Files/Python310"
将该输出添加到Apache的httpd.conf后面。
再在Apache的httpd.conf后面添加类似下面的内容
<VirtualHost *>
ServerName localhost
DocumentRoot T:/project/qqsg-study
WSGIScriptAliasMatch ^/apps/([^/]+) T:/project/qqsg-study/apps/$1/$1.wsgi
<Directory T:/project/qqsg-study>
Require all granted
</Directory>
</VirtualHost>