S
S
Shing2021-12-10 13:28:24
htaccess
Shing, 2021-12-10 13:28:24

Why can't htaccess work?

I can not understand. Two servers.
On one htaccess it works fine, even with AllowOverride None.
On the other does not work with AllowOverride All.

htaccess redirects don't work I can't close files I can't block by ip.

Even at the apache2.conf level, closing .ht* files does not work for some reason, the file is quite available for download:

<FilesMatch "^\.ht">
Require all denied
</FilesMatch>


Where can you look?

Apache 2.4, Nginx, PHP-FPM.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sand, 2021-12-10
@Shing

When linking nginx - php-fpm, apache is not necessarily used at all, so the htaccess file is not processed. You need to look in the nginx config for the site

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question