Skip to content

Instantly share code, notes, and snippets.

@hevertonfreitas
Created December 5, 2016 13:35
Show Gist options
  • Save hevertonfreitas/985cf7be6c515226c06ab5b988289cd8 to your computer and use it in GitHub Desktop.
Save hevertonfreitas/985cf7be6c515226c06ab5b988289cd8 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html/webroot;
index index.php;
location / {
autoindex on;
try_files $uri /index.php$is_args$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass phpfpm:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment