Skip to content

Instantly share code, notes, and snippets.

@webinfinita
Created May 8, 2015 23:18
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 webinfinita/e94fdad46b675c18c287 to your computer and use it in GitHub Desktop.
Save webinfinita/e94fdad46b675c18c287 to your computer and use it in GitHub Desktop.
Nginex for Wordpress inside Laravel 5 installation
location @wp {
rewrite ^/blog(.*) /blog/index.php?q=$1;
}
location ^~ /blog {
root /home/vagrant/Code/site;
index index.php index.html index.htm;
try_files $uri $uri/ @wp;
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass 127.0.0.1:9000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment