Skip to content

Instantly share code, notes, and snippets.

@luke10x
Created July 26, 2014 21:55
Show Gist options
  • Save luke10x/48efaa268eecb0d43ccd to your computer and use it in GitHub Desktop.
Save luke10x/48efaa268eecb0d43ccd to your computer and use it in GitHub Desktop.
Wordpress site with separate directory for app related stuff
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