Answer the question
In order to leave comments, you need to log in
nginx and apache
Set up LAMP server, nginx as front, apache as backend. Did you set the settings in the nginx config? so that static content: jpg, gif, etc. he gave himself without using apache (in general, the standard configuration). Everything successfully earned, sites are displayed.
But decided to check? But is it really nginx that takes all the work of returning statics. Stopped apache and tried to get an image from the server using only nginx. But one nginx without apache gave an error instead of a picture. It turns out that my nginx config is not configured correctly? Or without apache, nginx cannot give statics?
Answer the question
In order to leave comments, you need to log in
“Did you set the settings in the nginx config?” What a subtle request of telepaths ...
It's very easy to check. Pull a specific link with a curl - it will send you headers, there will be a name of the server.
[email protected]:~$ curl debian.pro/favicon.ico 2>/dev/null | egrep '(apache|nginx)' -s
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question