Apache and subdomains


#1

Hi,

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?

scott.


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