access_log 中的选项 * HTTP/1.0

access_log 中的选项 * HTTP/1.0

我正在运行一个内部 httpd 服务器,它将请求转发到另一个 httpd 服务器。内部 httpd 服务器充当代理,还支持缓存。我刚刚将 httpd 从 2.2.11 升级到 2.2.25。我的配置与以前相同。当 HTTP 请求进入时,我会OPTIONS * HTTP/1.0在我的 access_log 中看到几个条目(每秒一个)。我的 error_log 中没有错误。这是OPTIONS * HTTP/1.0我以前从未见过的新东西吗?我的旧版本使用了工人.c这一个似乎使用预分叉。我不确定有什么区别。这会导致它吗?这是我的旧版本和这个新版本之间的唯一区别。

这些是我正在使用的模块:

Compiled in modules:
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_file_cache.c
  mod_cache.c
  mod_disk_cache.c
  mod_mem_cache.c
  mod_ext_filter.c
  mod_include.c
  mod_filter.c
  mod_substitute.c
  mod_log_config.c
  mod_env.c
  mod_expires.c
  mod_setenvif.c
  mod_version.c
  mod_proxy.c
  mod_proxy_connect.c
  mod_proxy_ftp.c
  mod_proxy_http.c
  mod_proxy_scgi.c
  mod_proxy_ajp.c
  mod_proxy_balancer.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_info.c
  mod_cgid.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c

访问日志:

::1 - - [02/Oct/2013:13:30:34 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:35 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:36 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:37 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:38 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:39 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:40 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:41 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:42 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:43 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:44 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:45 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:46 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:47 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:48 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:49 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:50 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:51 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:52 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:53 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:54 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:55 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:56 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:57 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:58 -0400] "OPTIONS * HTTP/1.0" 200 -
::1 - - [02/Oct/2013:13:30:59 -0400] "OPTIONS * HTTP/1.0" 200 -

答案1

这些是内部虚拟连接 - 请参阅这里

它们的出现是由于您将 MPM 从 worker 更改为 prefork。您无需担心它们,但除非您有理由使用 prefork,否则您可能应该使用 worker。

答案2

检查服务器的 /etc/hosts 文件。您可能将“localhost”条目设置为“::1”,这是 IPV6 格式。将其更改为“127.0.0.1”(IPV4),此日志消息应不再出现。

相关内容