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>
时间: 2024-08-06 03:45:38

Aapache status / apache2ctl status 总是403的相关文章

ajax response status list [转载]

比较理想的解释方法应该以"状态:任务(目标)+过程+表现(或特征)"的表达模式来对这几个状态进行定义 [全文] 在<Pragmatic Ajax A Web 2.0 Primer >中偶然看到对readyStae状态的介绍,感觉这个介绍很实在,摘译如下: 0: (Uninitialized) the send( ) method has not yet been invoked.  1: (Loading) the send( ) method has been invok

AJAX请求时status返回状态明细表

AJAX请求时status返回状态明细表 readyState的五种状态2010-03-04 18:24对于readyState的五种状态的描述或者说定义,很多Ajax书(英文原版)中大都语焉不详 在<Pragmatic Ajax A Web 2.0 Primer >中偶然看到对readyStae状态的介绍,感觉这个介绍很实在-- 比较理想的解释方法应该以"状态:任务(目标)+过程+表现(或特征)"的表达模式来对这几个状态进行定义 在<Pragmatic Ajax A

转载:进程退出状态--waitpid status意义

最近遇到一个进程突然退出的问题,由于没有注册signalhandler所以没有捕捉到任何信号. 但是从log中看到init waitpid返回的status为0x008b,以前对status不是很了解,下面的文章对status有比较全面的介绍. 转至http://tsecer.blog.163.com/blog/static/15018172012323975152/ 一.和子进程同步在linux系统中,父进程通常需要通过waitpid来等待/获取子进程状态变化情况,而这个主要就是通过waitX

struts的status属性

struts2 <s:iterator> status属性 转载▼ iterator标签主要是用于迭代输出集合元素,如list set map 数组等,在使用标签的时候有三个属性值得我们关注 1. value属性:可选的属性,value属性是指一个被迭代的集合,使用ognl表达式指定,如果为空的话默认就是ValueStack栈顶的集合.2.id属性:可选属性, 是指集合元素的id3.status属性:可选属性,该属性在迭代时会产生一个IteratorStatus对象,该对象可以判断当前元素的位

Structs2中iterator的status属性的用法

iterator标签主要是用于迭代输出集合元素,如list set map 数组等,在使用<s:iterator/>标签的时候有三个属性值得我们关注 1. value属性:可选的属性,value属性是指一个被迭代的集合,使用ognl表达式指定,如果为空的话默认就是ValueStack栈顶的集合.2.id属性:可选属性, 是指集合元素的id3.status属性:可选属性,该属性在迭代时会产生一个IteratorStatus对象,该对象可以判断当前元素的位置,包含了以下属性方法: int getC

struts2中status的用法

<s:iterator value="#request.book" id="book" status="index"> <tr> <td> <s:property value="#index.index+1" /></td> </tr> </s:iterator> 1:#status .odd 是否奇数行 2:#status .count 当前

ajax的status为201依然触发jquery的error事件的问题

昨天在调试一个ajax的时候发现,即使status是201,仍然会触发jquery的error事件.statusText是"parseerror". 通过在stackoverflow上查询,戳这里. 加上参数 dataType:"text" 就可以解决. 而问题产生的原因在评论里写的也很详细.但是并不对,他弄错了convert的位置,在jquery判断状态码前,就已经进行了ajaxConvert. // Determine if successful,判断statu

总结struts2 iterator status的用法

1:#status.odd 是否奇数行 2:#status.count 当前行数 3:#status.index 当前行的序号,从0开始『#status.count=#status.index+1』 4:#status.first 是否第一行 5:#status.last 是否最后一行 6:#status.modules(int) 当前行数取模

IIS SMTP status codes

Here are the meaning of SMTP status codes. Status Code Description 211 System status, or system help reply 214 Help message 220 Service ready  221 Service closing transmission channel  250 Requested mail action okay, completed  251 User not local; wi