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 找到这个模块,把注释去掉,重启服务即可
阅读(934) | 评论(1) | 转发(0) |