Skip to content

Instantly share code, notes, and snippets.

@kylewm
Last active April 19, 2017 09:19
Show Gist options
  • Save kylewm/7d8cbc9a72984d67c646 to your computer and use it in GitHub Desktop.
Save kylewm/7d8cbc9a72984d67c646 to your computer and use it in GitHub Desktop.

Revisions

  1. Kyle Mahan revised this gist Jan 29, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions known-nginx-config
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,10 @@ server {
    root /home/vagrant/idno;
    index index.php;
    server_name vagrant.dev;

    location ~ (\.ini|known.php)$ {
    deny all;
    }

    location / {
    try_files $uri $uri/ /index.php?$query_string;
  2. Kyle Mahan revised this gist Aug 29, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions known-nginx-config
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,7 @@ server {
    }

    location ~ \.php$ {
    try_files $uri =404;
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
  3. kylewm created this gist Oct 13, 2014.
    20 changes: 20 additions & 0 deletions known-nginx-config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    server {
    listen 80;
    root /home/vagrant/idno;
    index index.php;
    server_name vagrant.dev;

    location / {
    try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }

    }