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
+32
View File
@@ -0,0 +1,32 @@
# Subdirectory Alias for {{HOST}}
Alias /{{HOST}} "{{PATH}}"
<Directory "{{PATH}}">
Options Indexes FollowSymLinks ExecCGI
AllowOverride All
Require all granted
# Passing Authorization header to PHP
CGIPassAuth On
# Directory index handling
DirectoryIndex index.php index.html
# PHP Handling via mod_actions and CGI
<FilesMatch "\.php$">
SetHandler application/x-httpd-php-alias-{{HOST}}
</FilesMatch>
# Action maps the handler to the binary via the ScriptAlias URL
# We use a unique handler name to avoid conflict with VirtualHost config
Action application/x-httpd-php-alias-{{HOST}} "{{PHP_BIN_URL}}/php-cgi.exe"
</Directory>
# ScriptAlias definition for the project's PHP CGI binary
ScriptAlias {{PHP_BIN_URL}}/ "{{PHP_DIR}}/"
<Directory "{{PHP_DIR}}">
AllowOverride None
Options None
Require all granted
</Directory>