server { listen 80; server_name phpmyadmin.example.com; root /usr/share/phpMyAdmin; allow 127.0.0.1; allow 192.168.1.2; deny all; location / { index index.php; } location ~ \.php$ { include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; } }