Skip to content

Instantly share code, notes, and snippets.

@Soufien
Forked from chanmix51/app.nginx.conf
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Soufien/d4f1065a2e09c770d53e to your computer and use it in GitHub Desktop.
Save Soufien/d4f1065a2e09c770d53e to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name server.mydomain.net
root /var/www/app/web;
index index.php;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
location / {
if (-f $request_filename) {
expires max;
break;
}
rewrite ^(.*) /index.php last;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment