Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有多个使用 web.py 框架用 Python 编写的站点。我想为每个站点生成单独的访问日志和错误日志文件,我已在 Apache2 上启用。
如何做到这一点?请帮助我...任何形式的帮助将不胜感激。
你需要写这样的东西
<VirtualHost *> .... LogLevel debug ErrorLog /var/log/apache/mysite/error__log.txt CustomLog /var/log/apache/mysite/custom_log.txt combined .... </VirtualHost>
指定的路径必须存在
我认为链接会很有用
阿帕奇设置
wsgi