在apache中添加rewrite功能,操作方法:
cd /usr/local/src/httpd-2.2.9/modules/mappers
/usr/local/apache2/bin/apxs -c mod_rewrite.c /usr/local/apache2/bin/apxs -i -a -n rewrite mod_rewrite.la
安装过程中,报错。
解决方法:
build_libtool_libs=no
↓ build_libtool_libs=yes fast_install=neel*** ↓ fast_install=yes dlopen_support=unknown ↓ dlopen_support=yes dlopen_self=unknown ↓ dlopen_self=yes dlopen_self_static=unknown ↓ dlopen_self_static=yes host_alias= ↓ host_alias=i686-pc-linux-gnu 如上修改后,重新安装rewrite模块即可成功。 (责任编辑:IT) |