码迷,mamicode.com
首页 > Web开发 > 详细

Aapache status / apache2ctl status 总是403

时间:2015-06-03 00:38:03      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:

默认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>

 

Aapache status / apache2ctl status 总是403

标签:

原文地址:http://www.cnblogs.com/jinzhao/p/4548074.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!