Replace legacy /var/run with /run, remove hardcoded php version
This commit is contained in:
parent
f183e4cd51
commit
b183ddb51c
|
@ -47,7 +47,7 @@ server {
|
|||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $path_info;
|
||||
fastcgi_param PATH_TRANSLATED $document_root$path_info;
|
||||
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
||||
fastcgi_pass unix:/run/php/php{{ php['version'] }}-fpm.sock;
|
||||
fastcgi_param SERVER_NAME $http_host;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Multi-Proces qgis
|
||||
upstream qgis-server_backend {
|
||||
{% for item in range(1, qgis_server['count'] + 1, 1) %}
|
||||
server unix:/var/run/qgis-server-{{ item }}.sock;
|
||||
server unix:/run/qgis-server-{{ item }}.sock;
|
||||
{% endfor %}
|
||||
}
|
||||
server {
|
||||
|
@ -27,7 +27,7 @@ server {
|
|||
include snippets/fastcgi-php.conf;
|
||||
#
|
||||
# # With php-fpm (or other unix sockets):
|
||||
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
|
||||
fastcgi_pass unix:/run/php/php{{ php['version'] }}-fpm.sock;
|
||||
# # With php-cgi (or other tcp sockets):
|
||||
# fastcgi_pass 127.0.0.1:9000;
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ server {
|
|||
#location /qgis-server {
|
||||
# gzip off;
|
||||
# include fastcgi_params;
|
||||
# fastcgi_pass unix:/var/run/qgisserver.socket;
|
||||
# fastcgi_pass unix:/run/qgisserver.socket;
|
||||
#}
|
||||
|
||||
# Multi-Process qgis
|
||||
|
|
|
@ -5,7 +5,7 @@ Description=QGIS Server Listen Socket (instance %i)
|
|||
|
||||
[Socket]
|
||||
Accept=false
|
||||
ListenStream=/var/run/qgis-server-%i.sock
|
||||
ListenStream=/run/qgis-server-%i.sock
|
||||
SocketUser={{ qgis_server['user'] }}
|
||||
SocketGroup={{ qgis_server['group'] }}
|
||||
SocketMode=0600
|
||||
|
|
Loading…
Reference in New Issue