You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Owned a PHP-fpm container and another Nginx-proxy container.
For PHP-fpm to work, I include settings in /vhost.d/VIRTUAL_HOST and /vhost.d/VIRTUAL_HOST_location:
/vhost.d/VIRTUAL_HOST:
index index.php index.html;
root / var / www / html / public;
location ~ \ .php $ {
try_files $ uri = 404;
fastcgi_split_path_info^ (. + \. php) (/.+) $;
fastcgi_pass back-end: 9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME / var / www / html / public $ fastcgi_script_name;
fastcgi_param PATH_INFO $ fastcgi_path_info;
}
/vhost.d/VIRTUAL_HOST_location:
try_files $ uri $ uri / /index.php?$query_string;
gzip_static on;
Nginx-proxy automatically generates my location within defatul.conf as:
location/ {
root / var / www / html / public;
include fastcgi_params;
fastcgi_pass VIRTUAL_HOST;
include /etc/nginx/vhost.d/VIRTUAL_HOST_location;
}
For my PHP-fpm to work, I need to remove it from my location inside the default.conf:
root / var / www / html / public;
include fastcgi_params;
fastcgi_pass VIRTUAL_HOST;
The inclusion in location works, how do I remove these settings from the locatin automatically every time it is generated or does not allow the generation of these settings?
The text was updated successfully, but these errors were encountered:
Owned a PHP-fpm container and another Nginx-proxy container.
For PHP-fpm to work, I include settings in /vhost.d/VIRTUAL_HOST and /vhost.d/VIRTUAL_HOST_location:
/vhost.d/VIRTUAL_HOST:
/vhost.d/VIRTUAL_HOST_location:
Nginx-proxy automatically generates my location within defatul.conf as:
For my PHP-fpm to work, I need to remove it from my location inside the default.conf:
The inclusion in location works, how do I remove these settings from the locatin automatically every time it is generated or does not allow the generation of these settings?
The text was updated successfully, but these errors were encountered: