AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 805042
Accepted
user374987
user374987
Asked: 2016-09-24 14:08:02 +0800 CST2016-09-24 14:08:02 +0800 CST 2016-09-24 14:08:02 +0800 CST

让 httpd fullstatus 在 Apache 2.4 上的网络服务器上工作的问题

  • 772

我有一个网络服务器,我正在将它迁移到 RHEL7 (httpd 2.2 -> 2.4)。在我们的旧服务器(2.2)中,我们可以做一个 httpd fullstatus,它会显示很多关于服务器上 apache 的好信息。

在 apache 2.4 服务器上,我无法让 fullstatus 命令正常工作。这是我采取的步骤列表(根据互联网上的各种指南编译) -

1.) - 检查 status_module 是否启用。 httpd -M | grep status返回status_module (shared)。

2.) - 将模块添加到 httpd.conf -

<IfModule mod_status.c>
    <Location "/server-status">
        SetHandler server-status
        Require host <my hostname>
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1

    </Location>
</IfModule>

3.) - 在 conf.modules.d/ 中创建了一个 conf 文件(与上面的词相同) -

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>

在完成所有这些事情后,我重新加载/重新启动了 apache,但我仍然没有运气让 httpd fullstatus 正常工作。

注意-我也没有运气单独完成这两个步骤,这就是为什么我将它们放在一起并希望它会起作用。

你们对我下一步应该做什么有什么想法吗?

谢谢。

编辑 - 这是我尝试运行 httpd fullstatus 时的当前输出 -

[username@hostname]# httpd fullstatus
    Usage: httpd [-D name] [-d directory] [-f file]
             [-C "directive"] [-c "directive"]
             [-k start|restart|graceful|graceful-stop|stop]
             [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]

EDIT2 - 运行 apachectl fullstatus 时,出现权限被拒绝错误 -

                               Forbidden

 You don't have permission to access /server-status on this server.
linux apache-2.2 web-server apache-2.4
  • 1 1 个回答
  • 2853 Views

1 个回答

  • Voted
  1. Best Answer
    Dario Seidl
    2016-09-26T02:04:14+08:002016-09-26T02:04:14+08:00

    fullstatus是apachectl命令的选项,而不是 httpd 的选项。从使用输出来看,这听起来像是这里的问题。尝试

    apachectl fullstatus
    
    • 1

相关问题

  • 你最喜欢的 Linux 发行版是什么?[关闭]

  • mod_rewrite 不转发 GET 参数

  • 更改 PHP 的默认配置设置?

  • 保护新的 Ubuntu 服务器 [关闭]

  • (软)Ubuntu 7.10 上的 RAID 6,我应该迁移到 8.10 吗?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve