nginx: Added full paths to includes of snippets / fastcgi_params

To allow Ansible to validate the main config if placed on different
locations
dehydrated
Felix Stupp 5 years ago
parent ff7275cb60
commit 2dcfd1b09e
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -1,4 +1,4 @@
include snippets/global; include {{ nginx_snippets_directory }}/global;
index index.html index.htm; index index.html index.htm;

@ -18,7 +18,7 @@ server {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
try_files $uri =404; try_files $uri =404;
fastcgi_index index.php; fastcgi_index index.php;
include fastcgi_params; include {{ nginx_installation_directory }}/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on; fastcgi_param HTTPS on;

@ -54,7 +54,7 @@ dependencies:
# fastcgi_split_path_info ^(.+?\.php)(/.*)$; # fastcgi_split_path_info ^(.+?\.php)(/.*)$;
# try_files $uri =404; # try_files $uri =404;
# fastcgi_index index.php; # fastcgi_index index.php;
# include fastcgi_params; # include {{ nginx_installation_directory }}/fastcgi_params;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param PATH_INFO $fastcgi_path_info; # fastcgi_param PATH_INFO $fastcgi_path_info;
# fastcgi_param HTTPS on; # fastcgi_param HTTPS on;
@ -68,7 +68,7 @@ dependencies:
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
try_files $fastcgi_script_name =404; try_files $fastcgi_script_name =404;
fastcgi_index index.php; fastcgi_index index.php;
include fastcgi_params; include {{ nginx_installation_directory }}/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on; fastcgi_param HTTPS on;

Loading…
Cancel
Save