Files
multiphp/config/apache_project.conf.template
T

26 lines
822 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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
# 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>