# Subdirectory Alias for {{HOST}}
Alias /{{HOST}} "{{PATH}}"
Options Indexes FollowSymLinks ExecCGI
AllowOverride All
Require all granted
# --- KRİTİK EKLEME BURASI ---
# PHP'ye php.ini dosyasını {{PHP_DIR}} klasöründe aramasını söyler
SetEnv PHPRC "{{PHP_INI_DIR}}"
# ----------------------------
# Passing Authorization header to PHP
CGIPassAuth On
# Directory index handling
DirectoryIndex index.php index.html
# PHP Handling via mod_actions and CGI
SetHandler application/x-httpd-php-alias-{{HOST}}
# Action maps the handler to the binary via the ScriptAlias URL
Action application/x-httpd-php-alias-{{HOST}} "{{PHP_BIN_URL}}/php-cgi.exe"
# ScriptAlias definition for the project's PHP CGI binary
ScriptAlias {{PHP_BIN_URL}}/ "{{PHP_DIR}}/"
AllowOverride None
Options None
Require all granted