Answer the question
In order to leave comments, you need to log in
Do I need a web server besides Nginx for a simple site?
Hello!
Can you please tell me if an additional web server is needed for the operation of several simple sites consisting of static html files? All sites on one VPS.
I set up Nginx and everything works, but in the examples, there is almost always some other web server behind Nginx.
Why might this be needed in the case of static sites?
Answer the question
In order to leave comments, you need to log in
Nginx is like a "shield" for applications, it is made to work with network loads, filtering dos attacks, static caching, load balancing, etc!
Behind nginx is usually the application itself, for example in python wsgi, or for php - php-fpm. The applications themselves don't think about the network, dos attacks, etc. so they use nginx to protect them from such things.
If in your case there is no application in php or python, then using nginx for statics is the most correct solution!
Nginx is the best option for serving static content. Apache is placed behind it in order to process php.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question