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):

  1. site-1.com (wordpress)
  2. site-2.com (thinkphp)

and 2 vhosts files:

  1. site-1.com.conf
  2. 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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -