Skip to content

Instantly share code, notes, and snippets.

@andrewwheal
Last active December 25, 2015 12:19
Show Gist options
  • Save andrewwheal/6975728 to your computer and use it in GitHub Desktop.
Save andrewwheal/6975728 to your computer and use it in GitHub Desktop.
Nginx vhost conf snippet for FuelPHP Example only, not guaranteed to work exactly as is.
server {
listen 80;
server_name example.com;
root /path/to/public;
location / {
try_files $uri /index.php?uri=$uri;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9123;
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