Opened 5 years ago

Last modified 5 years ago

#8610 assigned Question/How do I...?

Pointing homesforall.org to /home/members/rttc/sites/righttothecity.org/web/homesforall

Reported by: josh@… Owned by: https://id.mayfirst.org/ross
Priority: Urgent Component: Tech
Keywords: DNS Cc:
Sensitive: no

Description

Hi Good Folks,

I need some quick help.

I need to point the URL homesforall.org (which is already pointing to the Chavez server to this folder, which is going to act as the root directory for this site: /home/members/rttc/sites/righttothecity.org/web/homesforall

How can I go about doing this? Its a bit of a rush.

Thanks so much! Josh Warren-White Design Action Collective

Change History (10)

comment:1 Changed 5 years ago by https://id.mayfirst.org/rttc

A couple clarifications:

  1. I know y'all are having a separate conversation with Lenina and Jonathan about the cantwaitlist.org site. The launch of this site (homesforall.org) is a different project, but is timed to launch at the same time. Hence the urgency.
  1. I see from y'all's conversation with Jonathan at WebSkillet that you don't want folks adding new websites to existing hosting orders. That makes sense, and we will move the site to another server over the next couple of weeks, but in the meantime we really need homesforall.org to point to /home/members/rttc/sites/righttothecity.org/web/homesforall on the Chavez server so that it can be live for a launch later today. Post-launch we will move the site.

Can y'all help?

Thanks! Josh Warren-White Design Action Collective

comment:2 Changed 5 years ago by https://id.mayfirst.org/dskallman

  • Keywords DNS added
  • Owner set to https://id.mayfirst.org/ross
  • Status changed from new to assigned

Looping Ross is to share how this can be done now, I think it's in the web config settings.

comment:3 Changed 5 years ago by https://id.mayfirst.org/rttc

Also, I will need to know the same for the CWL site, except in this case cantwaitlist.org needs to point to /home/members/rttc/sites/righttothecity.org/web/cwl2014. I'm working with the A and NS records to get the domain to point to the server, but it's not immediately apparent how to get it to map to the folder. -Jonathan

comment:4 Changed 5 years ago by https://id.mayfirst.org/rttc

I see that its done in the "Web Configuration", but when I try and add a new web configuration item to point homesforall.org to /home/members/rttc/sites/righttothecity.org/web/homesforall the system tells me that I can't add a new one because you're only allowed one web configuration item per hosting order and we're already using one to point righttothecity.org to /home/members/rttc/sites/righttothecity.org/web

Arrgh. We need to launch really quickly.

Any help you can provide Ross?

Thanks so much! Josh

comment:5 Changed 5 years ago by https://id.mayfirst.org/rttc

Yeah, and I had a similar problem because I set up cantwaitlist.org as a separate hosting order, but it wouldn't allow me to change the web configuration to /home/members/rttc/sites/righttothecity.org/web/cwl2014 because it had to have cantwaitlist.org in the path (and/or couldn't have righttothecity.org in the path)

Jonathan

comment:6 Changed 5 years ago by https://id.mayfirst.org/ross

Hi Josh,

Yeah you can only have one web configuration, you'll need to add apache redirects to the correct sites. I don't know the exact syntax you'll need to use. I think something like

RewriteEngine On
RewriteCond %{HTTP_HOST} ^cantwaitlist\.org$ [NC]
RewriteRule ^/(.*) http://cantwaitlist.org/cwl2014/$1 [L,R]

I don't know if this is exactly correct, but it should be something like that. Fighting with apache will probably take you longer than just moving code and databases, but maybe the above will work.

Good luck,

~/ross

comment:7 Changed 5 years ago by https://id.mayfirst.org/rttc

My understanding is that htaccess redirect will redirect to the right folder, but the URL won't remain intact. So we'd end up with something like homesforall.org redirecting to righttothecity.org/homesforall and we'd lose the homesforall.org domain name once it redirects. Is that your understanding as well?

That won't work for us.

Damn it. We don't have time to move to another server, but if that's the only way I don't see another option. Shit.

comment:8 Changed 5 years ago by https://id.mayfirst.org/ross

Hi Josh,

I'm not suggesting using htaccess for this, but instead use the virtual host web configuration. The url will, in fact, remain intact if you tell apache to always serve that path on that particular domain. It's not ideal as obviously having a different virtual host for each domain resolver is what you should do.

However, the above should work so long as you don't have any other rewrite rules that interfere with it. I suspect there are other rules you should have in place to ensure that homesforall.org does not resolve to that domain, but the above should work. If you would like, I can attempt to get the redirection working correctly for you.

~/ross

comment:9 Changed 5 years ago by https://id.mayfirst.org/rttc

Hey, so we just mucked around with .htaccess to do a rewrite that way, but do you mean we can add those lines into the web config file for righttothecity.org?

Can't Wait List is less important, because we're using both cantwaitlist.org and homesforall.org/cantwaitlist in different media, so I'm just going to forward that domain.

comment:10 Changed 5 years ago by https://id.mayfirst.org/ross

Sorry, yes I was suggesting that you can do this in the righttothecity.org web configuration section of the hosting order. This way gives you the most control over the rewrite process.

Please login to add comments to this ticket.

Note: See TracTickets for help on using tickets.