Ticket 102 (Open)

Created: by Isaac Foraker Mar 13, 2007
Severity: Enhancement Request (1 of 5)
Priority: Low (1 of 4)
Attached: Plus Nothing
Assigned: to no one

Host name based projects

Host name based projects

I would like to add the ability to have host name based projects instead of directory based projects. E.g., instead of using software.pmade.com/develot, I would like the option to use devalot.software.pmade.com.

Anticipating your response, I’m trying to figure out how to implement this myself. :-)

Tags:

This ticket hasn't been tagged yet.

Comments:

Bubble

Peter Jones, Mar 13, 2007
Level 5 (Governator with 10,067 points)


Actually, this should be pretty easy:

  1. Add a new system policy where you set the base host name, e.g. software.pmade.com
  2. In app/contollers/application.rb in the project lookup code, use the request object to compare the host name to the base host name

How do you setup Apache to use wild card host names? Does this work?

ServerAlias *.software.pmade.com
Bubble

Isaac Foraker, Mar 14, 2007
Level 5 (Governator with 12,347 points)


Maybe there’s a rewrite rule?

Have something to say? Login to post a comment.