Linux下Apache安装/增加mod_rewrite模块
2013-08-13 22:45
627 查看
如果你的服务器apache还没有安装,那很简单,在编译apache时将mod_rewrite模块编译进去就可以,相关文档可以在http://man.chinaunix.net/newsoft ... ew/mod/mod_rewrite. html中找到。如果你的apache已经安装好了,现在只想编译出mod_rewrite.so模块,在apache中进行加载,下面我们就介绍这个方法。 以Fedora操作系统进行举例: 1)首次安装apache,在编译时增加--enable-rewrite选项。 如./configure --prefix=/usr/local/apachel --enable-so --enable-mods-shared=all --enable-rewrite --enable-cache 2)增加mod_rewrite模块 # find . -name mod_rewrite.c //在apache的源码安装目录中寻找mod_rewrite.c文件 # cd PATH/to/mod_rewrite.c //进入包含mod_rewrite.c文件的目录 # /usr/local/apache/bin/apxs -c mod_rewrite.c //apxs应指定绝对路径,在你当前正在使用apache的bin目录里 # /usr/local/apache/bin/apxs -i -a -n mod_rewrite mod_rewrite.la 如果没有什么错误的话,应该在你的apache的modules目录中编译出一个mod_rewrite.so文件。 编辑httpd.conf文件,确认httpd.conf中已经包含mod_rewrite.so的加载语句,如下: LoadModule rewrite_module modules/mod_rewrite.so 这时,你的apache应该已经支持rewrite了。 vicos注:完成之后,记得重启服务器apache。
相关文章推荐
- Linux下Apache安装/增加mod_rewrite模块
- Linux下Apache安装/增加mod_rewrite模块的方法
- Linux下Apache安装/增加mod_rewrite模块以启用rewrite功能
- Linux下Apache增加mod_rewrite模块
- Linux下Apache安装/增加mod_rewrite模块的方法
- 转-Linux下Apache增加mod_rewrite模块
- Linux apache 添加 mod_rewrite模块
- 最新版 linux Fedora 下apache2.2 +mysql5.1.5 +php5.12 +GD +mod_limitipconn... 安装指南
- Linux下安装Apache并以mod_wsgi方式部署django站点
- linux 给没有Rewrite模块的Apache增加Rewrite模块
- apache,python,mod_wsgi,django,mysql在linux下的安装
- linux下安装mod_bw和mod_limitipconn限制apache并发连接和下载速度
- linux apache安装mod_cband限制虚拟主机带宽
- Linux下安装配置 Jdk1.6+Tomcat6.0.x+MySql5.x+Apache2.2.x+jk_mod1.2+PHP5.x 详解
- Linux下安装Apache并以mod_wsgi方式部署django站点
- apache安装/编译mod_rewrite模块
- Linux下安装Apache并以mod_wsgi方式部署django站点
- linux+apache+php+fastcgi+mod_python安装流水帐
- 给apache安装mod_rewrite模块
- Linux安装apache源码包报错:mod_deflate has been requested but can not be built due to prerequisite failures