LINUX.ORG.RU
ФорумAdmin

mod_rewrite - странная штука в Kubuntu 8.04


0

0

Есть apache2, с установленным mod_rewrite.

В конфиге apache.conf:

# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

vir@home:/etc/apache2/mods-available$ ls *rewrite*
rewrite.load
vir@home:/etc/apache2/mods-available$ cat rewrite.load
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

Как только в .htaccess пишу RewriteEngine on, вижу следующее:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, mail@vir.uz and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

Что это может быть?

★★★

Re: mod_rewrite - странная штука в Kubuntu 8.04

в логах apache:

[Fri Jun 27 22:10:49 2008] [alert] [client 127.0.0.1] /var/www/home.vir.uz/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

VirRaa ★★★ ()
Ответ на: Re: mod_rewrite - странная штука в Kubuntu 8.04 от VirRaa

Re: mod_rewrite - странная штука в Kubuntu 8.04

Тупая убунту. Разобрался. Оказывается подключаются модули из директории с симлинками. Там нужно были симлинк для модреврайта сделать.

VirRaa ★★★ ()
Ответ на: Re: mod_rewrite - странная штука в Kubuntu 8.04 от VirRaa

Re: mod_rewrite - странная штука в Kubuntu 8.04

> Тупая убунту.

Да нет, это просто ты - дебил, который не читает дкументацию.

Кури man a2enmod, идиот.

anonymous ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.