feat: implement Nginx project configuration generation and service management IPC handlers
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
location /{{HOST}}/ {
|
||||
alias "{{PATH}}/";
|
||||
index index.php index.html;
|
||||
|
||||
# Try the literal URI, then directory, then fallback to index.php
|
||||
try_files $uri $uri/ /{{HOST}}/index.php?$query_string;
|
||||
|
||||
# PHP handling nested INSIDE the alias location to maintain context
|
||||
location ~ \.php$ {
|
||||
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;
|
||||
|
||||
include "{{CONF_DIR}}/fastcgi_params";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user