H
H
HDefalt2019-04-24 14:29:59
Apache HTTP Server
HDefalt, 2019-04-24 14:29:59

How to set up htaccess in case of a PHP crash?

Hello, I read that if PHP crashes on the server, then the user will simply download the source code of the page. Question. Is it possible to configure htaccess so that when PHP crashes, it just gives 500.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2019-04-24
@HDefalt

If php crashes then the user will get a 500 error. You can download the source code if your php is not processed by anything, i.e. nginx or apache is not configured to return php or there is no such php on the server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question