Skip to content

Instantly share code, notes, and snippets.

@Thibaut-B
Forked from chanmix51/app.nginx.conf
Created October 23, 2013 07:41
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 Thibaut-B/7114158 to your computer and use it in GitHub Desktop.
Save Thibaut-B/7114158 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