apache 模块的编写
来源:互联网 发布:家具生产软件 编辑:程序博客网 时间:2024/05/16 15:48
step to step:
安装好apache之后。
[1] apxs -g -n aaa
Creating [DIR] aaa
Creating [FILE] aaa/Makefile
Creating [FILE] aaa/modules.mk
Creating [FILE] aaa/mod_aaa.c
Creating [FILE] aaa/.deps
[2] cd aaa
[3] apxs -c mod_aaa.c
//编译
[4] apxs -i mod_aaa.la
[5] vi /etc/httpd/conf/httpd.conf
add bellow words to the file:
LoadModule aaa_module modules/mod_aaa.so
<Location /aaa>
setHandler aaa
</Location>
[6] apachctl restart
[7] ie browser, http://localhost/aaa
在mod_aaa.c中,aaa_register_hooks(apr_pool_t *p)注册apache模块。
static int aaa_handler(request_rec *r)中添加你要实现的代码。
可以参考:
http://yangzb.javaeye.com/blog/561357
http://andrew913.javaeye.com/blog/398648
apache图片操作
http://www.itqun.net/content-detail/105257.html
- apache 模块的编写
- apache 模块编写(c++)
- apache 模块编写(c++)
- apache 模块编写(c++)
- centos学习:凭什么PHP和apache能够"苟合",编写自己的apache模块
- 模块的编写
- 内核模块的编写
- apache模块编程学习:编写图片加载模块
- apache的deflate模块
- 使用C++编写Apache的模块 -- 命令表,保存配置信息
- 编写第一个Apache模块——mod_helloworld
- 用户登陆模块的编写
- 编写使用中断的模块
- 编写简单的内核模块
- 内核模块的Makefile编写
- linux中模块的编写
- 内核模块的编写1
- 模块的编写及其调用
- 循序渐进实现仿QQ界面(三):界面调色与控件自绘
- JAVA JMS 学习
- 循序渐进实现仿QQ界面(四):圆形按钮与工具栏自绘
- TIdHTTP 使用 编写秒杀
- 编译器错误:/tmp/ccyOgqYQ.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status
- apache 模块的编写
- VBScript学习笔记
- 追随智慧2
- auto dial issue
- php连接oracle百发百中问题解决秘籍
- Xen是什么
- 如何调试SQL Server存储过程
- 开源微博statusNET折腾——安装
- 什么是KVM