Browse Source

* correct pass to backend fpm socket

master
dimti 2 months ago
parent
commit
5a4ec54d3b
  1. 6
      playbooks/debops/nginx.yml

6
playbooks/debops/nginx.yml

@ -42,8 +42,10 @@
location_list: location_list:
- pattern: '/' - pattern: '/'
locations: locations:
- pattern: '~ ^/*.-backend/'
options: 'set $upstream unix:/run/{{ php__version_preference[0] }}-fpm-backend.sock;'
- pattern: '~ ^/.*-backend/'
options: |
try_files /index.html @october
set $upstream unix:/run/{{ php__version_preference[0] }}-fpm-backend.sock
options: try_files /index.html @october; options: try_files /index.html @october;
- pattern: '@october' - pattern: '@october'
options: rewrite ^/.*$ /index.php last; options: rewrite ^/.*$ /index.php last;

Loading…
Cancel
Save