-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreact
More file actions
26 lines (21 loc) · 643 Bytes
/
react
File metadata and controls
26 lines (21 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
upstream backend {
server 127.0.0.1:5501;
server 127.0.0.1:5502;
server 127.0.0.1:5503;
server 127.0.0.1:5504;
}
server {
root /home/siarhei/www/test/php/symfony-react//php-pm/web/;
server_name fastapp.com;
error_log /home/siarhei/www/test/php/symfony-react/php-pm/logs/error.log
location / {
# try to serve file directly, fallback to rewrite
try_files $uri @rewriteapp;
}
location @rewriteapp {
if (!-f $request_filename) {
proxy_pass http://backend;
break;
}
}
}