Last active
December 17, 2015 06:28
-
-
Save electronicbites/5565105 to your computer and use it in GitHub Desktop.
ngixn conf for prosper202
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 { | |
#server_name example.com www.example.com; | |
# Make site accessible from http://localhost/ | |
server_name _; | |
access_log /var/log/nginx/example.com.access.log; | |
error_log /var/log/nginx/example.com.error.log; | |
root /vagrant/prosper202; | |
index index.php; | |
# Make site accessible from http://localhost/ | |
server_name localhost; | |
location / { | |
try_files $uri $uri/ /index.php?$args; | |
} | |
location ~ \.php$ { | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment