Page 1 of 1
mod_rewrite and AllowOverride
Posted: 20 Feb 2010, 15:42
by zander
hi,
is mod_rewrite available and enabled on bubba 2?
also is AllowOverride enabled by default?
where/how do i change/check these things?
/etc/apache2/httpd.conf is empty.
(i am trying to get pretty permalinks working in wordpress)
thank you.
Re: mod_rewrite and AllowOverride
Posted: 20 Feb 2010, 16:51
by Kiff
Hi, enabled mods are found in /etc/apache2/mods-enabled (available mods are in mods-available). To enable a mod use the command
and then restart apache with
(mod_rewrite is enabled by default)
Edit: also, apache2.conf is used instead of httpd.conf
Re: mod_rewrite and AllowOverride
Posted: 20 Feb 2010, 17:15
by zander
ty kiff,
after looking through apache2.conf i noticed the only instance of "AllowOverride None" is commented out.
is "AllowOverride All" default or should i add this to apache2.conf?
thank you.
Re: mod_rewrite and AllowOverride
Posted: 20 Feb 2010, 17:39
by Kiff
I think it has to be enabled within a directory directive; (in apache2.conf or the virtual hosts files)
<Directory /path/to/files>
AllowOverride all
</Directory>
Re: mod_rewrite and AllowOverride
Posted: 20 Feb 2010, 23:22
by zander
okay.
so with bubba 2 i should add...
<Directory /home/web>
AllowOverride all
</Directory>
or
<Directory /home/web/wordpress>
AllowOverride all
</Directory>
i will try these in apache2.conf
and restart the server.
it did not resolve the wordpress issue.