Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@kei0719
kei0719 / phpmyadmin_on_hhvm.conf
Last active December 11, 2015 13:27
Nginx config example on HHVM 3.0
## here is phpmyadmin nginx
## environment
## OS: ubuntu 12.04
## Nginx: 1.4.7
## hhvm 3.0
## phpMyAdmin: 4.1.12
## locale: /etc/nginx/sites-available/phpmyadmin
@kei0719
kei0719 / prevent.conf
Last active February 16, 2017 21:34
Nginx location block specific file #nginx
location = /publish/domain.io.php {
allow 127.0.0.1;
deny all; # Gives 403
}
# or
location = /publish/domain.io.php {
internal; # Gives 404
}