I am trying to replicate the way WF handle wordpress installs on my own server: nginx front end an apache2 vhost running wordpress at the back, and route only a sub directory link to the wordpress instance, without success. Anyone know how to do this? e.g.: mysite.com -> some other apache vhost mysite.com/blog -> a apache vhost running wordpress at the "root directory" webfaction magically remove the "/blog/" to and from the vhost. I can't get that to work with my own config? (Why am I doing this? I need to setup a virtual server running something similar to my other webfaction apps on the shared plans). Thanks! P.K. asked 27 Oct '10, 10:37 pkshiu |
Here's what out configuration looks like to serve an app named 'wp3' for 'username' on 'domain.com/blog': Front-end nginx:
Back-end Apache on port 2480:
Hope that helps! answered 27 Oct '10, 11:00 seanf Sean, This is brilliant! I was attaching it from the wrong side trying to get nginx do the rewriting. Using "Alias" to map the sub directory was the "magic" that I was missing. Thank you so much ! P.K.
(27 Oct '10, 11:32)
pkshiu
You're very welcome! :)
(27 Oct '10, 11:52)
seanf
|