Opened 2 months ago

Closed 8 weeks ago

#13878 closed Task/To do item (fixed)

Setting up subdomains for the main site

Reported by: https://id.mayfirst.org/leftforum Owned by: https://id.mayfirst.org/jaimev
Priority: Urgent Component: Tech
Keywords: Subdomain Drupal Multisite Config Cc: gabriel_morales_96@…, marcusgraetsch@…, dazdndcunfusd@…, https://id.mayfirst.org/jamie
Sensitive: no

Description

Hello,

We've tried over the last 2-3 weeks to setup a Drupal multisite using the "Domain Access" (domain) module. We then used the control panel to add subdomains by adding a DNS record and by changing the web config info to register the subdomain as an alias to the same virtual host (the same Drupal installation). This worked when we set it up on our development site https://devd7.leftforum.org, where we added https://devd7.la.leftforum.org as a subdomain. However, when we tried to do the same for our live site, https://leftforum.org (conference.leftforum.org), adding https://la.leftforum.org as a subdomain did not seem to work as it did before. It redirects to another page, https://floriberto.mayfirst.org/. Is there a way to get this subdomain to work on our live site?

-Gabe M.

Change History (2)

comment:1 Changed 2 months ago by https://id.mayfirst.org/jaimev

  • Cc https://id.mayfirst.org/jamie added
  • Owner set to https://id.mayfirst.org/jaimev
  • Status changed from new to assigned

Ok, so there are a lot of moving parts to this site. We'd previously set the domains leftforum.org and www.leftforum.org along with conference.leftforum.org to point to the ip number of our nginx web cache to help speed up the site. Adding la.leftforum.org has to be done manually there. I've just done this and made sure the TLS cert was recreated to include this new domain both on the caching server (nginx) and the origin server (apache).

From your description above I am assuming la.leftforum.org will be a subsite provided by the same drupal instance. There were some rewrites added to the apache side that rewrote all requests into www.leftforum.org which I don't think will work for this setup so I've commented those out. Also since the extra layer of the cache might complicate things for a multi-domain site I'm going to point la.leftforum.org directly to the origin server for now until we are sure the subsite is working.

Requests to la.leftforum.org are now reaching the correct server and loading however it appears to just load the content of the main site for now.

comment:2 Changed 8 weeks ago by https://id.mayfirst.org/jaimev

  • Resolution set to fixed
  • Status changed from assigned to closed

Hi this appears to be working now. Let us know if you need anything else.

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.