Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question