Monday, January 4, 2021

Configure to load the content of https://domain1.com on https://ift.tt/3ogobKA

Hello,

Hopefully, this still falls under 'networking'. I'm facing some challenge in setting up a cname 'redirect'.

I'm trying to set up a configuration where https://domain1.com is shown when going to https://about.domain2.com

The browser url should remain about.domain2.com (so no 301 redirect)

The first thing I did was create a CNAME record for 'about' that points to domain1.com - this works, but it shows just the PLESK default page of my server.

How do I inform the webserver to accept about.domain2.com and serve the content?

I've tried adding a 'server_name' value in the nginx.conf of the domain1.com website, but it's not working. I'm using PLESK.

So in Plesk on the account for domain1.com, going to NGINX & apache settings, it shows that nginx proxies requests to apache.

There are fields for apache:

Additional directives for HTTP Additional directives for HTTPS

And fields for NGINX: Additional nginx directives

What do I need to add here in order for it to load the content of https://domain1.com on that external subdomain (https://about.domain2.com) ?

Thanks



No comments:

Post a Comment