- I have 1st domain name site1.com - self-hosted wordpress and contains posts and pages. (everything good, no issue at all)
- I have 2nd domain name site2.com - nothing hosted (dns pointing to same server as
site1.com
domain)
I need to configure the nginx server in such a way that, when users access site2.com
, they should get the content of site1.com/site2
wordpress page. (Then the others pages links inside that page are fine as site2.com
is considered part of site1.com
and users can click the load content with site1.com
links)
Details
- I have tried
proxy_pass
etc but didn't worked any. site2.com
->site1.com/site2
redirection is working with several techniques but I dont need that as I needsite2.com
landed with same url on top butsite1.com/site2
content.nginx version: nginx/1.14.2
- OS -
Debian GNU/Linux 10 (buster)
- If there are other ways (non-nginx), still acceptable.
Thanks in advance.