feat: add server configuration templates and custom error/index assets

This commit is contained in:
Ümit Tunç
2026-04-01 22:12:32 +03:00
parent 3164b66f23
commit 6d14569ec6
11 changed files with 403 additions and 3 deletions
+19 -3
View File
@@ -1,10 +1,26 @@
# 1. PHP-FPM bağlantısını temiz ve stabil bir Proxy bloğu olarak tanımlayın
<Proxy "fcgi://127.0.0.1:{{PHP_PORT}}">
ProxySet timeout=600 connectiontimeout=600
</Proxy>
# 2. Alias tanımı (Sonunda ASLA eğik çizgi '/' olmamalı)
Alias /{{HOST}} "{{PATH}}"
<Directory "{{PATH}}">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
<FilesMatch \.php$>
# 3. Windows Path Sorununu Çözen Komut (Sadece bu klasöre özel zorluyoruz)
<IfModule proxy_fcgi_module>
ProxyFCGIBackendType GENERIC
</IfModule>
# 4. Klasör direkt çağrıldığında index.php'yi bulmasını garanti edin
DirectoryIndex index.php index.html
# 5. PHP Dosyalarını Yönlendirme
<FilesMatch "\.php$">
SetHandler "proxy:fcgi://127.0.0.1:{{PHP_PORT}}/"
</FilesMatch>
</Directory>
</Directory>