Flarum 2.0'ı Nginx ve PHP-FPM ile çalıştırmak için temel sunucu bloğu:
server {
listen 443 ssl http2;
server_name ornek.com;
root /var/www/flarum/public;
index index.php;
include /var/www/flarum/.nginx.conf;
location ~ \.php$ {
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
include snippets/fastcgi-php.conf;
}
}
Önemli noktalar
root mutlaka public klasörünü göstermeli.
- Sitemap kullanıyorsan
/sitemap.xml isteklerini index.php'ye yönlendirmeyi unutma.
- Değişiklikten sonra
nginx -t && systemctl reload nginx.