feat: add server configuration templates and custom error/index assets
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user