|
@@ -23,6 +23,17 @@
|
|
|
root /var/www/YourHomomm/Public/static;
|
|
|
index index.php;
|
|
|
|
|
|
+ location / {
|
|
|
+ proxy_set_header Host $host;
|
|
|
+ proxy_set_header X-Real_IP $remote_addr;
|
|
|
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
+
|
|
|
+ proxy_http_version 1.1;
|
|
|
+ proxy_set_header Connection "";
|
|
|
+
|
|
|
+ proxy_pass http://127.0.0.1:8081;
|
|
|
+ }
|
|
|
+
|
|
|
location ~* ^.+\.(php)$ {
|
|
|
proxy_set_header Host $host;
|
|
|
proxy_set_header X-Real_IP $remote_addr;
|