Skip to content

Instantly share code, notes, and snippets.

@daronwolff
Created January 28, 2017 18:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daronwolff/66abb36f3a5b59c6df0dbfaf260f99e0 to your computer and use it in GitHub Desktop.
Save daronwolff/66abb36f3a5b59c6df0dbfaf260f99e0 to your computer and use it in GitHub Desktop.
Nginx config lumen php
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /home/javier/sites/sitename/public;
index index.php index.html index.htm;
server_name server_domain_or_IP;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_param APPLICATION_ENV development;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment