Created
October 7, 2013 14:20
-
-
Save justindmartin/6868801 to your computer and use it in GitHub Desktop.
Getting started Nginx configuration for Ron.
This file contains 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; | |
root #replace this with the default full path to where all of your PHP files are; | |
index home; | |
server_name www.jumalabs.com #change to desired name, such as flipquiz.jumalabs.com; | |
location / { | |
rewrite ^/(.*)$ /index.php?url=$1 break; | |
# First attempt to serve request as file, then | |
# as directory, then fall back to index.html | |
try_files $uri $uri/ /index.html; | |
# With php5-cgi alone: | |
# With php5-fpm: | |
#the unix:/ part will be something different in Windows | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} | |
location /public { | |
root #replace this with the default full path to where all of your PHP files are; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment