Skip to content

Instantly share code, notes, and snippets.

@emmanuelbarturen
Last active April 30, 2016 14:29
Show Gist options
  • Save emmanuelbarturen/2789ca8224d2cf31bbcc to your computer and use it in GitHub Desktop.
Save emmanuelbarturen/2789ca8224d2cf31bbcc to your computer and use it in GitHub Desktop.
Pass uri and parameters in nginx
#in /etc/nginx/sites-available/sample.dev
#replace or add these lines
location / {
index index.php index.html;
try_files $uri $uri/ /index.php?url=$uri&$args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment