且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Aapache status / apache2ctl status 总是403

更新时间:2022-09-13 20:30:58

默认apache2ctl status访问的是http://localhost:80/server_status

所以得搞定default这个站点,放歌html就可以了。

在default的配置里加入下面的配置:

<Location /server-status>
SetHandler server-status

Order Deny,Allow
Deny from all
Allow from localhost
</Location>

默认的HTMl放个跳转挺好的:
Aapache status / apache2ctl status 总是403
<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="1;url=http://example.com">
        <script type="text/javascript">
            window.location.href = "http://example.com"
        </script>
        <title>Page Redirection</title>
    </head>
    <body>
        <!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
        If you are not redirected automatically, follow the <a href='http://example.com'>link to example</a>
    </body>
</html>
Aapache status / apache2ctl status 总是403

 


本文转自today4king博客园博客,原文链接:http://www.cnblogs.com/jinzhao/p/4548074.html,如需转载请自行联系原作者