server {
    listen 443 ssl http2;
    server_name realtor.bh www.realtor.bh;
    root /var/www/realtorbh/current/public;
    index index.php;
    charset utf-8;
    client_max_body_size 10m;
    location / { try_files $uri $uri/ /index.php?$query_string; }
    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt { access_log off; log_not_found off; }
    location ~ \.php$ { include fastcgi_params; fastcgi_pass unix:/run/php/php8.2-fpm.sock; fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; fastcgi_param DOCUMENT_ROOT $realpath_root; fastcgi_hide_header X-Powered-By; }
    location ~ /\.(?!well-known).* { deny all; }
}
