N
N
Nikita Neskuchaev2018-04-17 17:13:47
Nginx
Nikita Neskuchaev, 2018-04-17 17:13:47

How to "give" the client static using nginx?

How is the "static" of official sites returned using nginx?
Usually this means just configuring the web server to give the default index.html(.php, .js) ?
What is usually done when the frontend is written in webpack vue/react js?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Korobkov, 2018-04-17
@iamnikas

Files are called static if nginx serves them by itself without other processes. Usually these are all files, except for explicitly specified extensions like ".php"

O
Oleg, 2018-04-17
@402d

In the simplest case, the site has one location and a falback. Files with allowed extensions are given by nginx itself if the file is not physically present, the request is passed to the backend

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question