Rewrite
Apache 1.3 启用 Mod_Rewrite
八 17th
1. 编译:
./configure –prefix=/home/apache \
–enable-module=so \
–enable-module=rewrite \
–activate-module=src/modules/fastcgi/libfastcgi.a
2. 配置:
vi /home/apache/conf/httpd.conf
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory><IfModule mod_rewrite.c>
RewriteEngine On
RewriteLog /home/apache/logs/rewrite_log
RewriteLogLevel 0</IfModule>
3. 测试:
# 重新启动Apache
/etc/init.d/httpd restart
# 检查Apache静态编译模块
/home/apache/bin/httpd -l
Ubuntu Server 启用 Apache Mod_Rewrite
十一 13th
sudo a2enmod rewrite
Enabling module rewrite.
Run ‘/etc/init.d/apache2 restart’ to activate new configuration!sudo vim /etc/apache2/sites-enabled/default
AllowOverride All