summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-09-06 23:46:20 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-09-06 23:46:20 +0300
commitf08c68f232381a5f4f3f3a29ef9cf7a30606f7c1 (patch)
tree5b1a3388ef2313d7c34e9ba9ca4e89e76b96b2bf /README.md
parent4daf74d659b0394b086ada10fee8effa99a02f2b (diff)
downloadunit-f08c68f232381a5f4f3f3a29ef9cf7a30606f7c1.tar.gz
unit-f08c68f232381a5f4f3f3a29ef9cf7a30606f7c1.tar.bz2
README: shortened description.
Diffstat (limited to '')
-rw-r--r--README.md17
1 files changed, 6 insertions, 11 deletions
diff --git a/README.md b/README.md
index 3a22ad18..93002e05 100644
--- a/README.md
+++ b/README.md
@@ -827,18 +827,11 @@ Example:
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
-applications are forwarded to Unit.
+NGINX serves static files directly from the filesystem, and the requests
+to the applications are forwarded to Unit.
-Create an upstream block in `http` context of NGINX configuration:
-
-```
-upstream unit_backend {
-
-}
-```
-
-Add Unit server IP and port to the upstream block, for example:
+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 {
@@ -857,9 +850,11 @@ to Unit. All other files will be served directly by NGINX:
```
server {
+
location / {
root /var/www/static-data;
}
+
location ~ \.php$ {
proxy_pass http://unit_backend;
proxy_set_header Host $host;