Skip to content
Snippets Groups Projects
Commit ed8b6de9 authored by nimrod's avatar nimrod
Browse files

- Use path relative to chroot for fastcgi_pass in OpenBSD.

parent ac2c8b89
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,6 @@ server { ...@@ -5,6 +5,6 @@ server {
root /var/www/html; root /var/www/html;
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
include fastcgi_params; include fastcgi_params;
fastcgi_pass unix:{{ php_fpm_listen_socket[ansible_os_family] }}; fastcgi_pass unix:{{ php_fpm_listen_socket_chrooted[ansible_os_family]|default(php_fpm_listen_socket[ansible_os_family]) }};
} }
} }
...@@ -21,6 +21,9 @@ php_fpm_listen_socket: ...@@ -21,6 +21,9 @@ php_fpm_listen_socket:
OpenBSD: /var/www/run/php-fpm.sock OpenBSD: /var/www/run/php-fpm.sock
Debian: /var/run/php5-fpm.sock Debian: /var/run/php5-fpm.sock
php_fpm_listen_socket_chrooted:
OpenBSD: run/php-fpm.sock
php_fpm_validate_config: php_fpm_validate_config:
OpenBSD: php-fpm-5.6 -t OpenBSD: php-fpm-5.6 -t
Debian: php5-fpm -t Debian: php5-fpm -t
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment