K
K
Kirill Zhilyaev2017-05-06 16:05:02
Nginx
Kirill Zhilyaev, 2017-05-06 16:05:02

How to disable php in a directory?

I have php enabled throughout the server. You need to turn it off in the directory for the user with the file kio. How to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2017-05-06
@kirill_782

location /mypath/ {
    location ~ .*\.(php)?$ {
        deny all;
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question