M
M
msnyastar2020-02-05 16:11:10
Nginx
msnyastar, 2020-02-05 16:11:10

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

3 answer(s)
S
Sanes, 2020-02-05
@msnyastar

In your case, Nginx is sufficient.

M
marataziat, 2020-02-05
@marataziat

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!

A
Alexey Dmitriev, 2020-02-05
@SignFinder

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 question

Ask a Question

731 491 924 answers to any question