Skip to content

Instantly share code, notes, and snippets.

@elnur
Created April 20, 2014 16:08
Show Gist options
  • Select an option

  • Save elnur/11117766 to your computer and use it in GitHub Desktop.

Select an option

Save elnur/11117766 to your computer and use it in GitHub Desktop.
server {
listen 80;
listen 443 ssl;
server_name site.local;
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
root "/vagrant/web";
location / {
try_files $uri /app.php?$args;
}
location ~ \.php {
include fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/?.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment