apache配置filter

来源:互联网 发布:编程要学些什么 编辑:程序博客网 时间:2024/06/05 21:07

将 Apache httpd 作为应用开发平台(Apache Modules)
www. ibm. com

/developerworks/cn/opensource/os-cn-apachehttpd/


C语言扩展Apache模块开发入门

hi. baidu. com

/khzmylyasdhjmwr/item/92367b4d5dc2152611ee1ec3


增加log
Add an include that makes logging easier:
#include "http_log.h"

In order to log errors, add a log function:

    static int logError(apr_status_t status, char *message, request_rec *request) {
        ap_log_rerror(APLOG_MARK, APLOG_ERR, status, request, "external_auth: error %s", message);
        return HTTP_SERVICE_UNAVAILABLE;
    }
The ap_log_error function will put an error message in the server’s error log, often in /var/log/apache2/error_log.


模块依赖

libaprutil-1.so.0 => /usr/local/apache2/lib/libaprutil-1.so.0 (0x00007ff847f31000)libapr-1.so.0 => /usr/local/apache2/lib/libapr-1.so.0 (0x00007ff847d00000)

0 0