Created
May 8, 2015 23:18
-
-
Save webinfinita/e94fdad46b675c18c287 to your computer and use it in GitHub Desktop.
Nginex for Wordpress inside Laravel 5 installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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