roles/nginx: Use correct php-fpm socket on Ubuntu 18.04
This commit is contained in:
parent
3396a98aad
commit
ed607aab68
@ -66,6 +66,8 @@ server {
|
|||||||
{# As of Ubuntu 16.04 and Debian 9, the PHP-FPM configs are the same #}
|
{# As of Ubuntu 16.04 and Debian 9, the PHP-FPM configs are the same #}
|
||||||
{% if (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version_compare('16.04', '==')) or (ansible_distribution == 'Debian' and ansible_distribution_major_version is version_compare('9', '==')) %}
|
{% if (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version_compare('16.04', '==')) or (ansible_distribution == 'Debian' and ansible_distribution_major_version is version_compare('9', '==')) %}
|
||||||
fastcgi_pass unix:/run/php/php7.0-fpm-{{ domain_name }}.sock;
|
fastcgi_pass unix:/run/php/php7.0-fpm-{{ domain_name }}.sock;
|
||||||
|
{% elif ansible_distribution == 'Ubuntu' and ansible_distribution_version | version_compare('18.04', '==') %}
|
||||||
|
fastcgi_pass unix:/run/php/php7.2-fpm-{{ domain_name }}.sock;
|
||||||
{% else %}
|
{% else %}
|
||||||
fastcgi_pass unix:/var/run/php5-fpm-{{ domain_name }}.sock;
|
fastcgi_pass unix:/var/run/php5-fpm-{{ domain_name }}.sock;
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user