Bug 4484 - [Anolis 23][httpd服务][x86_64]Anolis23 httpd服务日志配置不生效。
Summary: [Anolis 23][httpd服务][x86_64]Anolis23 httpd服务日志配置不生效。
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: xuchunmei
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-10 17:54 UTC by Banana
Modified: 2023-04-26 18:10 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Banana alibaba_cloud_group 2023-03-10 17:54:28 UTC
[问题描述]:
httpd服务日志配置不生效,设置完日志配置,访问httpd服务,日志未记录。

[环境信息]:
机器类型:ECS

内核信息:
[root@iZbp1gc4szu3xmuejrr3c6Z user]# uname -r
5.17.0-1.an23.x86_64

操作系统信息:
[root@iZbp1gc4szu3xmuejrr3c6Z user]# cat /etc/os-release
NAME="Anolis OS"
VERSION="23"
ID="anolis"
VERSION_ID="23"
PLATFORM_ID="platform:an23"
PRETTY_NAME="Anolis OS 23"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugzilla.openanolis.cn/"

[问题发生概率]:必现

[复现步骤]:
1、在CustomLog "logs/access_log" combined行下加入CustomLog "logs/test_log" combined信息
2、重启服务 systemctl restart httpd
3、查看日志文件是否生成 ls /etc/httpd/logs/
4、访问默认页面 crul host_ip,如curl 172.16.0.246
5、查看日志是否有记录cat /etc/httpd/logs/test_log
可以查看cat /etc/httpd/logs/default.log是有新增日志
Comment 1 yunmeng365524 2023-03-14 10:27:25 UTC
haiyang ,帮忙贴一下an8生效的日志信息作对比
Comment 2 Banana alibaba_cloud_group 2023-04-26 18:10:55 UTC
已解决