编译添加Apache的rewrite模块
时间:2009-06-15 来源:wwyhy
1. ./configure --prefix=/usr/local/apache --enable-modules=so --enable-modules=rewrire --enable-shared=rewrite --enable-shared=max
2. make
3. make install
4. cd /root/web/httpd-2.2.11/modules/mappers
5. /usr/local/apache/bin/apxs -c mod_rewrite.c -lgdbm
6. /usr/local/apache/bin/apxs -i -A -n rewrite /usr/lib/httpd/modules/mod_rewrite.so 7. vi /usr/local/apache/conf/httpd.conf 找到这个模块,把注释去掉,重启服务即可
6. /usr/local/apache/bin/apxs -i -A -n rewrite /usr/lib/httpd/modules/mod_rewrite.so 7. vi /usr/local/apache/conf/httpd.conf 找到这个模块,把注释去掉,重启服务即可
相关阅读 更多 +