Ubuntu下启动Apache对.htaccess 的支持

步骤:

1. 终端运行

sudo a2enmod

程序提示可供激活的模块名称,输入:

rewrite

2. 修改/etc/apache2/sites-enabled/000-default (该链接指向的是站点配置文件)
把(默认的www目录、或者需要应用.htaccess的目录)下的AllowOverride 属性改为All,保存。
3. 重新加载apache

sudo /etc/init.d/apache2 restart

收工。

Related posts:

  1. Debian/Ubuntu Apache Mod_Rewrite 安装
  2. Ubuntu Server apt-get install Apache2 & PHP5 & MySQL5
  3. Ubuntu Server Network Configuration
  4. htaccess 的一点用法
  5. Apache 通过 .htaccess 对目录加密
此条目发表在 Linux-Server 分类目录,贴了 , , 标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word