vhosts - Nginx: How to pointing part of one website to another websites with different domain? -
the problem:
i need point first website's 1 part of url second website's. , keep these 2 sites working normally.
there 2 websites in 1 server(lnmp):
- site-1.com (wordpress)
- site-2.com (thinkphp)
and 2 vhosts files:
site-1.com.conf
site-2.com.conf
what need:
when users accessing site-1.com/site2/v/*****
route to(show content of) : site-2.com/v/*****
;
if cannot access site-2.com/v/*****
route 404 page of site-1.com
;
eg., when accessing site-1.com/site2/v/abcdef
server send request site-2.com/v/abcdef
is possible implement only
configuring vhosts in nginx?
Comments
Post a Comment