# Sym linking problem

**URL:** <https://discuss.rubyonrails.org/t/sym-linking-problem/23067>\
**Category:** rubyonrails-talk\
**Created:** [January 12, 2008, 2:57am UTC](https://discuss.rubyonrails.org/t/sym-linking-problem/23067 "2008-01-12T02:57:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stranger](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@stranger](https://discuss.rubyonrails.org/u/stranger)\
**Post date:** [January 12, 2008, 2:57am UTC](https://discuss.rubyonrails.org/t/sym-linking-problem/23067/1 "2008-01-12T02:57:40Z")

</div>

Hi everyone,

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I am hosting with hostmonster.com. As per their tutorials I have created a Rails folder in my root directory and created apps in it. Now I need to create a sub domain and sym link the public/ folder of my Rails app to my sub domain/

I use.

username@mydomain.com [~/public\_html/mydomain]$ ln -s /home/ myusername/rails/appname/public/ subdomain

Now by using the above sym link I am linking the public/ folder to my subdomain/. But the problem is I am getting the public/ folder inside my subdomain/ directory.

I just want the files inside the public/ to be symlinked to subdomain/.

Due to this my [http://subdomain.mydomain.com/public/](http://subdomain.mydomain.com/public/)

is showing the index. Any help in this regard is much appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![stranger](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@stranger](https://discuss.rubyonrails.org/u/stranger)\
**Post date:** [January 13, 2008, 1:58am UTC](https://discuss.rubyonrails.org/t/sym-linking-problem/23067/2 "2008-01-13T01:58:27Z")

</div>

Can some one please help in this problem...... please
