@@ -21,7 +21,7 @@ Automatically generates HAProxy `fcgi-app` configuration that defines required C
2121| Option | Description | Default |
2222| -------------------| -----------------------------------------| ------------------------------------|
2323| ` enabled ` | Enable/disable plugin | ` true ` |
24- | ` document_root ` | Document root path | ` /etc/easyhaproxy/ www ` |
24+ | ` document_root ` | Document root path | ` /var/ www/html ` |
2525| ` script_filename ` | Custom pattern for SCRIPT_FILENAME | ` %[path] ` (uses HAProxy's default) |
2626| ` index_file ` | Default index file | ` index.php ` |
2727| ` path_info ` | Enable PATH_INFO support | ` true ` |
@@ -41,10 +41,10 @@ services:
4141 easyhaproxy.http.localport : 9000
4242 easyhaproxy.http.proto : fcgi
4343 easyhaproxy.http.plugins : fastcgi
44- easyhaproxy.http.plugin.fastcgi.document_root : /etc/easyhaproxy/ www
44+ easyhaproxy.http.plugin.fastcgi.document_root : /var/ www/html
4545 easyhaproxy.http.plugin.fastcgi.index_file : index.php
4646 volumes :
47- - ./app:/etc/easyhaproxy/ www
47+ - ./app:/var/ www/html
4848` ` `
4949
5050### Docker/Docker Compose (Unix socket)
@@ -58,10 +58,10 @@ services:
5858 easyhaproxy.http.socket : /run/php/php-fpm.sock
5959 easyhaproxy.http.proto : fcgi
6060 easyhaproxy.http.plugins : fastcgi
61- easyhaproxy.http.plugin.fastcgi.document_root : /etc/easyhaproxy/ www
61+ easyhaproxy.http.plugin.fastcgi.document_root : /var/ www/html
6262 easyhaproxy.http.plugin.fastcgi.index_file : index.php
6363 volumes :
64- - ./app:/etc/easyhaproxy/ www
64+ - ./app:/var/ www/html
6565 - /run/php:/run/php
6666` ` `
6767
@@ -73,7 +73,7 @@ kind: Ingress
7373metadata :
7474 annotations :
7575 easyhaproxy.plugins : " fastcgi"
76- easyhaproxy.plugin.fastcgi.document_root : " /etc/easyhaproxy/ www"
76+ easyhaproxy.plugin.fastcgi.document_root : " /var/ www/html "
7777 easyhaproxy.plugin.fastcgi.index_file : " index.php"
7878spec :
7979 rules :
@@ -101,7 +101,7 @@ easymapping:
101101 - fastcgi
102102 plugin_config :
103103 fastcgi :
104- document_root : /etc/easyhaproxy/ www
104+ document_root : /var/ www/html
105105 index_file : index.php
106106 path_info : true
107107` ` `
@@ -111,7 +111,7 @@ easymapping:
111111| Environment Variable | Config Key | Type | Default | Description |
112112|----------------------------------------------|-------------------|----------|------------------------|---------------------------------------|
113113| ` EASYHAPROXY_PLUGIN_FASTCGI_ENABLED` | `enabled` | boolean | `true` | Enable/disable plugin for all domains |
114- | `EASYHAPROXY_PLUGIN_FASTCGI_DOCUMENT_ROOT` | `document_root` | string | `/etc/easyhaproxy/ www` | Document root path |
114+ | `EASYHAPROXY_PLUGIN_FASTCGI_DOCUMENT_ROOT` | `document_root` | string | `/var/ www/html ` | Document root path |
115115| `EASYHAPROXY_PLUGIN_FASTCGI_SCRIPT_FILENAME` | `script_filename` | string | `%[path]` | Custom pattern for SCRIPT_FILENAME |
116116| `EASYHAPROXY_PLUGIN_FASTCGI_INDEX_FILE` | `index_file` | string | `index.php` | Default index file |
117117| `EASYHAPROXY_PLUGIN_FASTCGI_PATH_INFO` | `path_info` | boolean | `true` | Enable PATH_INFO support |
@@ -121,7 +121,7 @@ easymapping:
121121` ` ` haproxy
122122# Top-level fcgi-app definition (added after defaults, before frontends/backends)
123123fcgi-app fcgi_phpapp_local
124- docroot /etc/easyhaproxy/ www
124+ docroot /var/ www/html
125125 index index.php
126126 path-info ^(/.+\. php)(/.*)?$
127127
0 commit comments