域的 httpd.conf 文件在哪里? (Plesk、Apache、CentOS、专用服务器。)
我正在尝试禁用域的访问日志记录 (access_log)。我还找不到办法做到这一点,我想如果域中存在 httpd.conf 文件也许我可以研究一下。那么您知道域的 httpd.conf 文件在哪里吗?
I'm trying to disable access logging (access_log) for domains. I can't find a way to do it yet, I thought if httpd.conf file exist of a domain maybe I can look into that. So do you know where is httpd.conf file of a domain?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试
使用推荐行。
请注意,在较新的 Apache 设置中,配置分布在多个文件中,但它们与您找到 httpd.conf 的位置相距不远。
Try
on the commend line.
Note that in newer Apache setups, the configuration is spread across multiple files, but they won't be far from where you find httpd.conf.
我遇到了同样的问题,但是阅读问题中的@user1055645评论,关于遵循文件:
/etc/httpd/conf.d/zz010_psa_httpd.conf
我在这里找到了配置文件:
如果您想禁用 access_log,您可以编辑此文件并使用 # 进行注释此行的开头:
CustomLog /var/www/vhosts/system/giornalone.it/logs/access_log plesklog
最后重新启动 apache 服务器以使更改生效。
I had the same problem, but reading @user1055645 comment in the question, about follow the file:
/etc/httpd/conf.d/zz010_psa_httpd.conf
I found the configuration file here:
If you want to disable access_log you can edit this file and comment with an # the beginning of this line:
CustomLog /var/www/vhosts/system/giornalone.it/logs/access_log plesklog
At the end restart apache server to make the changes take effect.