php - How do you modify the apache 403 error displayed when a directory is forbidden

131

Say you deny access to certain folders or files and you want to serve your custom error messages instead of something like this

You don't have permission to access /classes/classname.php on this server.

Apache/2.2.22 (Ubuntu) Server at webdev Port 8080.

People are also looking for solutions to the problem: php - Change the number of displayed products in Prestashop

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.