F
F
Finom2013-01-19 22:51:45
linux
Finom, 2013-01-19 22:51:45

How to enable .htaccess?

I am installing a web server for the first time and stalled at this stage.
I register in apache2.conf

<Directory /var/www/>
AllowOverride All
</Directory>

But it doesn't work. I entered root ( ) as a directory &lt;Directory /&gt;, but even that does not work. What am I doing wrong?
Just in case, the OS is Debian (Raspbian).

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
Ilya Plotnikov, 2013-01-19
@Finom

hmm... Isn't /etc/apache2/sites-enabled set to Directory?

F
finalsoft, 2013-01-19
@finalsoft

Maybe you meant that you need the rewrite_module module, it is just disabled by default ...
Uncomment the line:
LoadModule rewrite_module modules/mod_rewrite.so
and restart Apache.

M
Marcuzy, 2015-02-26
@Marcuzy

In console:

a2enmod rewrite
service apache2 restart

I
Ingtar, 2013-01-19
@Ingtar

And what works? What is currently working and what is not?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question