feat: implement Nginx service management and dynamic configuration generation via IPC handlers
This commit is contained in:
@@ -35,10 +35,11 @@ http {
|
||||
}
|
||||
|
||||
location ~ \.php$ {
|
||||
# Use $request_filename for consistent behavior across global and project configs
|
||||
include "{{CONF_DIR}}/fastcgi_params";
|
||||
fastcgi_pass 127.0.0.1:{{PHP_PORT}};
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include "{{CONF_DIR}}/fastcgi_params";
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,12 +11,12 @@ location ^~ /{{HOST}}/ {
|
||||
fastcgi_pass 127.0.0.1:{{PHP_PORT}};
|
||||
fastcgi_index index.php;
|
||||
|
||||
# Correctly split path to get the relative script path
|
||||
fastcgi_split_path_info ^/{{HOST}}(.+\.php)(.*)$;
|
||||
fastcgi_param SCRIPT_FILENAME "{{PATH}}$fastcgi_script_name";
|
||||
fastcgi_param DOCUMENT_ROOT "{{PATH}}";
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
|
||||
# Correctly use $request_filename for alias compatibility
|
||||
include "{{CONF_DIR}}/fastcgi_params";
|
||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||
fastcgi_param DOCUMENT_ROOT $document_root;
|
||||
|
||||
# Optional parameters for frameworks
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user