server { listen 80; server_name ~^(www\.)?(realcity\.com\.mx|cleanfy\.mx|agroform\.com\.mx)$; index index.php index.html; root /var/www/public; add_header X-Frame-Options "SAMEORIGIN"; add_header X-Content-Type-Options "nosniff"; add_header Referrer-Policy "strict-origin-when-cross-origin"; add_header Permissions-Policy "camera=(), microphone=(), geolocation=()"; if ($request_method !~ ^(GET|POST|HEAD)$ ) { return 405; } location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { fastcgi_pass realcity-app:9000; fastcgi_index index.php; include fastcgi_params; fastcgi_param SCRIPT_FILENAME /var/www/public$fastcgi_script_name; } location ~ /\.ht { deny all; } }