Y
Y
yitzhakv2012-01-17 18:18:51
Nginx
yitzhakv, 2012-01-17 18:18:51

Nginx 500-504 errors?

Can Nginx return 500-504 errors if it is used without PHP and serves only static (html)?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
BasilioCat, 2012-01-18
@yitzhakv

If nginx is used only for distributing statics, and there are no connections to backends (http, fastcgi), then except for cases with return 500 and possibly some very exotic situations, such as lack of file descriptors, it will not return a 500 error.

A
Alexey Sundukov, 2012-01-17
@alekciy

Of course it can. At a minimum, you can write in the config what statuses to return.

V
Vlad Zhivotnev, 2012-01-17
@inkvizitor68sl

Maybe.
location / {
# get the hell out of here!
return 500;
}
=)

A
Anatoly, 2012-01-17
@taliban

500 error can be returned if you mess up the config =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question