Lunarpages Web Hosting Forum

Author Topic: symlink to an ADD ON domain SOLVED.. read me if you are having trouble.  (Read 4891 times)

Offline superbnerb

  • Newbie
  • *
  • Posts: 2
hi all,

i have a symlink in my public_html/railsapp folder.

when i go to, i see the structure of railsapp (i.e. it shows parent directory at the top of the page, with 2 folders, one symlink'd to my rails app and another cgi, plus an index_old.html file.)

if i navigate to railsapp/public then my routes.rb file takes over and routes me to my dedicated index page. ( i changed it up so it didn't go to index but /controller/index.)

having not seen an answer other then change public_html (i have 6 other sites in that directory that shouldn't have to be effected).

i hope this thread doesn't dry up.  shared hosts and ruby are supposed to be easy!


From the 'gotta help myself cause no one else is gonna' dept.

  • Step one, make sure you are on a rails enabled server  with lunarpages.
    step two, ask them to setup your rails app on the server.  All this means is that you email and ask that they setup a rails app named "yourapp".  (you fill in yourapp with the name of your own, but for this demo, i'm using yourapp).
  • Step three, ftp all the files you need to your new "yourapp" folder.  If you are programming in rails, you  know how to do this or at least figure it out. you also know what files are important.  let's face it, i'm assuming some knowledge of rails and computers here.
  • Step four, delete the existing addon domain folder in /home/user/public_html/.  THIS IS THE PART THEY DON'T TELL YOU.  this part screwed me for 4 days.
  • Step five, symlink to yourapp/public with the following command
Code: [Select]
ln -s /home/user/yourapp/public /home/user/public_html/addondomainname/
    you can symlink in a cron job, just remember to delete it, especially if you are on my server... unnecessary running cron jobs slow us all down.[/li]
  • step six, go to your url and rejoice.

In a nutshell, if your addon name exists in public_html, either rename the folder, or if there isn't anything in there of value, delete it.
« Last Edit: October 27, 2007, 10:03:50 AM by superbnerb »

Offline polomasta

  • Newbie
  • *
  • Posts: 3
Re: symlink to an ADD ON domain SOLVED.. read me if you are having trouble.
« Reply #1 on: January 16, 2008, 06:43:27 AM »
I have been wondering about this also... thanks for the tip.

I am also coming up against a specific issue... I want to install the Typo blogging engine on one of my addon domains so that when I navigate to it brings me to the typo interface, while simply going to takes me to the regular index.html pages and the non-rails site.

Can anyone provide specific instructions on how to do this? Is it even possible? I am on azteca servers if that makes any difference. LP support won't help me out at all.

Offline thesuper

  • Trekkie
  • **
  • Posts: 16
Re: symlink to an ADD ON domain SOLVED.. read me if you are having trouble.
« Reply #2 on: January 02, 2017, 03:04:20 PM »
Did you ever get this working?  I've been struggling to get my Rails app ported over from another hosting company.  They created the folder for me and already created a sym link to it so I think I'm covered as to the original post.  When I go to http://www.mydomain/myapp/ it just gives an http 500 error.  Any help would be appreciated!