![](/img/trans.png)
[英]Apache vhost always show me the same content on different subdomains
[英]Show subdomains in apache logs
我希望子域名显示在我的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"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.