Commit ed8b6de9 authored by nimrod's avatar nimrod
Browse files

- Use path relative to chroot for fastcgi_pass in OpenBSD.

parent ac2c8b89
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,6 +5,6 @@ server {
    root /var/www/html;
    location ~ [^/]\.php(/|$) {
        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]) }};
    }
}
+3 −0
Original line number Diff line number Diff line
@@ -21,6 +21,9 @@ php_fpm_listen_socket:
    OpenBSD: /var/www/run/php-fpm.sock
    Debian: /var/run/php5-fpm.sock

php_fpm_listen_socket_chrooted:
    OpenBSD: run/php-fpm.sock

php_fpm_validate_config:
    OpenBSD: php-fpm-5.6 -t
    Debian: php5-fpm -t