Created
July 26, 2014 21:55
-
-
Save luke10x/48efaa268eecb0d43ccd to your computer and use it in GitHub Desktop.
Wordpress site with separate directory for app related stuff
This file contains 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
server { | |
server_name tkbodycode.dev; | |
root /home/lape/workspace/tkbodycode/wordpress; | |
index index.php; | |
location / { | |
try_files $uri $uri/ /index.php; | |
} | |
location /wp-content/ { | |
root /home/lape/workspace/tkbodycode/app; | |
} | |
location ~ \.(hh|php)$ { | |
fastcgi_keep_conn on; | |
# fastcgi_pass unix:/var/run/hhvm/hhvm.sock; | |
fastcgi_pass unix:/var/run/php5-fpm.sock; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment