server {
listen 80;
server_name myadmin.unixlab.com;
#charset koi8-r;
#
location / {
root /data/phpMyAdmin;
index index.php;
#proxy_pass http://192.168.30.2;
#proxy_set_header Host $host;
#proxy_set_header X-Real-IP $remote_addr;
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
allow 119.145.230.34;
deny all;
}
location ~ \.php$ {
root /data/phpMyAdmin;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
allow 11.145.23.34;
deny all;
}
access_log logs/myadmin_access.log main;
}