• Hello,

    I’ve been trying to make a multisite with different domains for a while now with no luck. My multisite works fine with the domain I created it on, but refuses to work when I try to use a different domain instead of just a subdomain. So far what I have done is made a new site, changed the domain to the new domain in settings, and added the domain to my NGINX config file. I have also tried creating a second NGINX file with just the domain in it that is essentially a copy-paste of my original NGINX file but with SSL stuff for the specific domain. All I am getting is error 404 or too many redirect screens.

    Thank you for your time! -Seb ??

Viewing 1 replies (of 1 total)
  • and added the domain to my NGINX config file.

    Well, the devil is in the missing detail here.

    As a general rule, the secondary domain should forward to the primary domain. That is, BEFORE editing the subsite to add the secondary domain, when you open the secondary domain in the browser, it should load the primary domain/site.

    If you’re getting 404, 403, directory index page (if directory indexing is enabled) or even your webserver’s default page, you’re doing it wrong and your secondary domains (or subdomains will not work).

    You need to get this basic step to work before anything else.

    I personally prefer to add a CNAME record to map the secondary domain to the primary domain (instead of using A record to point to the server’s IP address). This way, I don’t have to fudge with the web server configuration at all: everything happens at the domain/DNS level.

Viewing 1 replies (of 1 total)
  • The topic ‘NGINX error 404 when trying to use difrent domain’ is closed to new replies.