# Sym linking problem

**URL:** <https://www.ruby-forum.com/t/sym-linking-problem/125798>\
**Category:** Rails\
**Created:** [January 12, 2008, 3:58am UTC](https://www.ruby-forum.com/t/sym-linking-problem/125798 "2008-01-12T03:58:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stranger](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8edcca/32.png) [@stranger](https://www.ruby-forum.com/u/stranger)\
**Post date:** [January 12, 2008, 3:58am UTC](https://www.ruby-forum.com/t/sym-linking-problem/125798/1 "2008-01-12T03:58:27Z")

</div>

Hi everyone,

```
          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.

removed\_email\_address@domain.invalid [~/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://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/8edcca/32.png) [@stranger](https://www.ruby-forum.com/u/stranger)\
**Post date:** [January 13, 2008, 2:59am UTC](https://www.ruby-forum.com/t/sym-linking-problem/125798/2 "2008-01-13T02:59:23Z")

</div>

Can some one please help in this problem… please
