Yeah, for this setup it's recommended to use virtual hosts along with 
modrewrite

So for example you'd have your site like this defined in your 
apache.conf

<VirtualHost *:80>
  ServerName www.chalet-yeti.com
  RewriteEngine on
  RewriteRule ^(.*)$ http://localhost:3000/properties/1/$1 [R]
</VirtualHost>

<VirtualHost *:80>
  ServerName www.apartment-marie.com
  RewriteEngine on
  RewriteRule ^(.*)$ http://localhost:3000/properties/2/$1 [R]
</VirtualHost>

I didn't test if this will work but if it doesn't, it should be pretty 
close. The idea is to have anything that goes to chalet-yeti.com go to 
http://localhost:3000/properties/1 and anything that follows that url, 
will be appended to the redirect.

If this is a bit too complicated, I suggest you do your homework and 
read about modrewrite some more. 
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Luis

--
www.saffie.ca

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to