I have a site that has multi-contexts. They are working great and as they should be. I have recently added a domain and pointed it to the modxcloud location. I setup another context and added the information needed with the http_host being that domains host. Is there anything additional I need to do? I assumed a domain would work right away, haven’t really had issues before with subdomains.
All I get is “Page Not Found”. And it’s not my 404 page I have setup on the other hosts, it’s the default standard message.
Yeah, cache seems to be the cause of a lot of my issues, just when you think you have it.
But yeah I have cleared cache, even reinstalled the plugin and tried ContextRouter. Surprisingly enough ContextRouter caused all my other subdomains not to work.
If that seems correct I will keep looking into it, maybe my domain is wrong, then again, I have issued an SSL cert for them and it recognized them as pointed to the right direction.
In your cloud dashboard: did you add the domain to the cloud account under the Domains tab? And since you’re using ssl, did you reissue the cert so that it covers the new domain (under Add-ons > SSL)?
Hey, thanks for replying. Yeah all the domains resolve as they should. Even ran a test page in the home directory and used the secondary domain to access it with no issues. and ALL certs work as they should.
What do you have in your nginx rules? Might be something like the redirect to https that is specific to the original domain that needs to be rewritten to include the new domain?
When I try to load that url (https://www.osvrpaas.com/) I get a 403 Forbidden page. I say this only because you said you are seeing a 404 page…
Is the start page for the new context published?
Anything in the page template? … Hard-coded base URL for some other domain? (Now I’m just grasping.)
Edit: Also have you submitted a ticket to MODX Cloud support? Even though it doesn’t seem like a cloud issue per se, they are just so smart and helpful.
Aaaa! You did say that, and I read it and assumed you meant the start page wasn’t published. Wish I’d been paying better attention. But YAY - it’s fixed now!
Thanks for this thread. I can’t seem to get multi-sites going on MODX. I want to host a completely different URL on my installation of MODX. I have created a context, set the settings http_host, setting_ste_start and site_url. I then installed xRouting.
I also pointed my 2nd domain to the same IP as the main domain where MODX is installed.
I think we will need some more info in order to help.
What version of MODX?
What server is your site on, Apache or Nginx?
Is it a MODX Cloud site?
Can you post screen shots of your context settings for each context?
I’m not familiar with the setting setting_ste_start . Is that really what you have or is it a typo?
The context settings I use are base_url, http_host, site_start, site_url. Do you have those set for each context including web (but NOT mgr)?