- 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
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
- I have tried
proxy_passetc but didn't worked any.
site1.com/site2redirection is working with several techniques but I dont need that as I need
site2.comlanded with same url on top but
nginx version: nginx/1.14.2
- OS -
Debian GNU/Linux 10 (buster)
- If there are other ways (non-nginx), still acceptable.
Thanks in advance.