M
M
Maloy1232016-12-10 09:51:55
Apache HTTP Server
Maloy123, 2016-12-10 09:51:55

Why doesn't apache want to work with Directory in .htaccess (Directory not allowed here error)?

Hello! I ran into this problem: when specifying the "Directory" directive in .htaccess, apache gives a 500 error, and in the Directory not allowed here logs. If you transfer Directory to the apache config itself, then everything works as it should, but it doesn’t want to in .htaccess :(
AllowOverride is set to All

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
roswell, 2016-12-10
@Maloy123

Because Directory cannot be used in .htaccess (valid contexts are listed in the Context list on this page ).

A
Alexander Aksentiev, 2017-04-16
@Sanasol

proxy_pass

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question