【问题标题】:Where location log file httpd server位置日志文件 httpd 服务器在哪里
【发布时间】:2017-12-19 00:27:17
【问题描述】:

请帮忙,我其实不是服务器管理员,我只是想知道,我的服务器有一些虚拟主机,例如:

ServerAdmin arif@dummy-host.example.com
DocumentRoot /var/www/testing/
ServerName cg.blender.com
ErrorLog logs/cg.blender-error_log
CustomLog logs/cg.blender-access_log common

那么实际的访问日志文件位置在哪里, /var/www/testing/logs/.. 或 /var/logs/...

对不起,我不太了解,

【问题讨论】:

  • Apache 日志将在 /var/log/apache2/

标签: apache web server httpd.conf virtual-hosts


【解决方案1】:

在配置文件中,当路径是相对路径时,它们是相对于“ServerRoot”路径的。

查看文档:
http://httpd.apache.org/docs/2.4/mod/core.html#serverroot

【讨论】:

    【解决方案2】:

    可以在以下路径找到日志

    /var/log/http/
    

    对于 httpd 服务器

    【讨论】:

      猜你喜欢
      • 2017-08-21
      • 2015-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-28
      • 1970-01-01
      相关资源
      最近更新 更多