Loading

Aapache status / apache2ctl status 总是403

默认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放个跳转挺好的:
<!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>

 

posted @ 2015-06-02 23:55  today4king  阅读(344)  评论(0编辑  收藏  举报