README: shortened description.
This commit is contained in:
17
README.md
17
README.md
@@ -827,18 +827,11 @@ Example:
|
|||||||
|
|
||||||
Configure NGINX as a static web server and reverse proxy in front of Unit.
|
Configure NGINX as a static web server and reverse proxy in front of Unit.
|
||||||
|
|
||||||
NGINX serves static files directly from the filesystem, and the requests to the
|
NGINX serves static files directly from the filesystem, and the requests
|
||||||
applications are forwarded to Unit.
|
to the applications are forwarded to Unit.
|
||||||
|
|
||||||
Create an upstream block in `http` context of NGINX configuration:
|
Create an upstream block in `http` context of NGINX configuration and add
|
||||||
|
Unit server IP and port to the upstream block, for example:
|
||||||
```
|
|
||||||
upstream unit_backend {
|
|
||||||
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
Add Unit server IP and port to the upstream block, for example:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
upstream unit_backend {
|
upstream unit_backend {
|
||||||
@@ -857,9 +850,11 @@ to Unit. All other files will be served directly by NGINX:
|
|||||||
|
|
||||||
```
|
```
|
||||||
server {
|
server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /var/www/static-data;
|
root /var/www/static-data;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
proxy_pass http://unit_backend;
|
proxy_pass http://unit_backend;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|||||||
Reference in New Issue
Block a user