Skip to content

Instantly share code, notes, and snippets.

View rafaga's full-sized avatar

Rafael rafaga

View GitHub Profile
@rafaga
rafaga / default
Last active August 30, 2016 16:29
Nginx PHP configuration with two diferent location to serve PHP files ( one with root privileges the other with userland privileges)
server {
listen 80;
server_name localhost;
rewrite_log on;
access_log /path/to/nginx/logs/default.access.log main;
access_log /path/to/nginx/logs/default.scripts.log scripts;
root /var/www/;
location ^~ /portal/v3 {
index index.php;