Skip to content

Instantly share code, notes, and snippets.

@electronicbites
Last active December 17, 2015 06:28
Show Gist options
  • Save electronicbites/5565105 to your computer and use it in GitHub Desktop.
Save electronicbites/5565105 to your computer and use it in GitHub Desktop.
ngixn conf for prosper202
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