Aapache status / apache2ctl status 老是403

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

因此得搞定default这个站点,放歌html就能够了。html

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



默认的HTMl放个跳转挺好的:<Location /server-status> SetHandler server-status Order Deny,Allow Deny from all Allow from localhost </Location>
<!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>
相关文章
相关标签/搜索