feat: implement project management system with Nginx configuration templates and automated host file updates

This commit is contained in:
Ümit Tunç
2026-04-02 20:31:22 +03:00
parent ac30e71672
commit 4184d137e6
17 changed files with 2181 additions and 176 deletions
@@ -0,0 +1,17 @@
location ^~ /{{HOST}}/ {
alias "{{PATH}}";
index index.php index.html;
autoindex on;
if (!-e $request_filename) {
rewrite ^/{{HOST}}/(.*)$ /{{HOST}}/index.php?$1 last;
}
location ~ \.php$ {
# Using $request_filename to match the alias path correctly
fastcgi_pass 127.0.0.1:{{PHP_PORT}};
fastcgi_index index.php;
include "{{CONF_DIR}}/fastcgi_params";
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}