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>
相關文章
相關標籤/搜索