Apache and subdomains


I’m trying to get a subdomain to map to a controller. For example:

blog.domain.com to point to /list

so in my virtual host I tried:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^blog.localhost$
RewriteCond %{REQUEST_URI} !^/blog/
RewriteRule ^(.*)$ /blog/$1

but it just goes to the root of my rails app. any ideas?


What’s an Intel chip doing in a Mac? A whole lor more that it’s ever
done in a PC.

My Digital Life - http://scottwalter.com/blog
Pro:Blog - http://scottwalter.com/problog

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs