T
T
Twelfth Doctor2017-04-17 14:36:13
Nginx
Twelfth Doctor, 2017-04-17 14:36:13

Do I need to write an error page in the configuration files of both servers if the web server is running in Apache + Nginx?

Hello! Such a question: I have Apache (Backend) + Nginx (Frontend). Setting up error pages. Do I need to write an error page in the virtual host configuration files in both Apache and Nginx? Or is it enough to write error_page only in the nginx config?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2017-04-17
@shambler81

well, it's your business,
I definitely cut off the access log in nginx because it's not very interesting to me.
And I cut the error log only when debugging.
For all not found pictures climb into it, etc.
Here you need to look at what you are pursuing
Less load - less logs
More debugging - more logs.

A
Andrey Mikhalev, 2017-04-18
@Endru9

Apache only handles php. And all errors are usually sent by the frontend. Therefore, it is enough to configure only nginx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question