Last active
December 25, 2015 12:19
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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