gpt4 book ai didi

apache - 在 apache 日志中显示子域

转载 作者:行者123 更新时间:2023-12-02 08:23:08 25 4
gpt4 key购买 nike

我希望子域显示在我的 apache 日志中。

目前请求:

abc.website.com/doc1.html
def.website.com/doc2.html

在我的日志中仅显示为:

/doc1.html
/doc2.html

我正在寻找一个选项: http://httpd.apache.org/docs/2.2/mod/mod_log_config.html#formats

但我没有发现任何与子域相关的内容。

(请原谅我的英语。)

最佳答案

在 LogFormat 行中放入 %V,例如:

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %V"

关于apache - 在 apache 日志中显示子域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7837021/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com