# Apache + RoR + subdomains

**URL:** <https://www.ruby-forum.com/t/apache-ror-subdomains/112675>\
**Category:** Rails\
**Created:** [August 22, 2007, 1:40am UTC](https://www.ruby-forum.com/t/apache-ror-subdomains/112675 "2007-08-22T01:40:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nextpulse](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/71c47a/32.png) [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Post date:** [August 22, 2007, 1:40am UTC](https://www.ruby-forum.com/t/apache-ror-subdomains/112675/1 "2007-08-22T01:40:10Z")

</div>

I have apache configured for mongrel cluster - usual port 80 going to  
8000+.  
Now I want to set up a subdomain that points to a non RoR app.  
any clues?

thanks.

---

<div class="post-metadata">

**Author:** ![nextpulse](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/71c47a/32.png) [@nextpulse](https://www.ruby-forum.com/u/nextpulse)\
**Post date:** [August 22, 2007, 2:07am UTC](https://www.ruby-forum.com/t/apache-ror-subdomains/112675/2 "2007-08-22T02:07:12Z")

</div>

I don’t know if this is the best approach, but it works for us. You  
can use a VirtualHost directive in your httpd.conf with a different  
doc root. For example: www.mydomain.tld proxies to mongrel (also  
done in a virtual host directive) and docs.mydomain.tld goes to a  
bunch of static documents.
