|
@@ -8,15 +8,15 @@
|
|
|
<ol>
|
|
|
<li>The static content hosted should be just of this kind: html, css, js, png, jpg, jpeg, gif, mp3, wav, fonts, map, ico</li>
|
|
|
<li>Example of Nginx minimal configuration:
|
|
|
- <br><br>
|
|
|
- location ~* ^.+\.(php)$ {
|
|
|
- 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 "";
|
|
|
-
|
|
|
+ <br><br>
|
|
|
+ location ~* ^.+\.(php)$ {
|
|
|
+ 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://apache;
|
|
|
}
|
|
|
<br><br>
|