Friday, 15 March 2013

wordpress - Different web server on one domain -



wordpress - Different web server on one domain -

i have 2 web sites:

(a) built yesod web framework (and running on port a) (b) built wordpress (and running on port b)

i want publish these sites following:

foo.com/wp refers (b) other pages on foo.com refers (a)

is possible?

you can utilize (a) , (b) behind proxy (c) -- nginx personal preferred server purpose because insanely fast , on resources.

http://nginx.org/en/docs/beginners_guide.html#proxy

you'd this:

server { location / { proxy_pass http://localhost:{port a}/; } location /wp { proxy_pass http://localhost:{port b}/; } }

** note {b} know @ /wp. if need backend server think it's @ root (/), can rewrite (also in nginx docs)

wordpress yesod subdirectory

No comments:

Post a Comment