Skip to content

Instantly share code, notes, and snippets.

Kei kei0719

  • Japan
Block or report user

Report or block kei0719

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kei0719
kei0719 / prevent.conf
Last active Feb 16, 2017
Nginx location block specific file #nginx
View prevent.conf
location = /publish/domain.io.php {
allow 127.0.0.1;
deny all; # Gives 403
}
# or
location = /publish/domain.io.php {
internal; # Gives 404
}
@kei0719
kei0719 / phpmyadmin_on_hhvm.conf
Last active Dec 11, 2015
Nginx config example on HHVM 3.0
View phpmyadmin_on_hhvm.conf
## 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
You can’t perform that action at this time.