Topic: Plesk 8.0 + Apache --> setting up the httpd.conf files with Vhosts


This may be trivial, but I've been reading so much info on installing RoR, that I think I'm going blind.

I have a VPS solution that uses FC4, Apache 2, and Plesk 8

I have installed FCGI, ruby, gems, etc.

The only thing that I don't understand is setting up where to install my Rails app, and how to link it on a per domain basis.

I'm almost certain that I've seen this described on the web numerous times in the last 24 hours, but I can't for the life of me find it again.

I think I just need to install my Rails app in my /home/<username> directory and link the public directory to my /var/www/vhosts/<domain>/httdocs/public directory,  and then make some modifications in my /var/www/vhosts/<domain>/conf/vhosts.conf file, but I don't know for sure.

Pointers, tips, and all other forms of genuine help are much appreciated!

Thanks and have a Fantastic Day!!


Re: Plesk 8.0 + Apache --> setting up the httpd.conf files with Vhosts

Is this the vhost.conf file or the /etc/httpd/httpd.conf file?

I'm needing to set this on a per domain basis.  Also, I have an existing site that I'm trying to work around, so I don't want to wipe it out in the process.  Is there a way for them to co-exist?

my fear/thinking is that if I set the Document root in the vhost.conf file that it will wipe out the settings that Plesk had set up, giving me a one or the other only option.  This is where most of my confusion comes in.

This will be for production use, so webrick isn't really on option for me.

I hate making too many changes, as this is a live, production machine with several other domains on it.  I had set this up on a separate box a few months back, but I could never duplicate the environment exactly, and then the box died.  Now I've forgotten what I was doing, and record to reference.  Go figure.

Thanks for the help, and have  a Happy Halloween!


Re: Plesk 8.0 + Apache --> setting up the httpd.conf files with Vhosts

After reading my last 2 posts, I think I need to clarify....

BTW: there was a post inbetween my 2 posts, but it seems to have disappeared, so I wasn't just answering my own thoughts (that I'm aware of)


I'm needing to add a Rails application to an existing web-site.  Specifically, I'm adding RForum to my site, but I need it to work around my existing structure.

So, what I'm needing are:

1. Keep existing website intact
2. Add a Rails (RForum) application to my existing site
3. What files need to be modified, and with what info?

Items 1 & 2 are really conditions for getting #3 figured out.

I've something about routes, and something about symlinks, and a little bit about my vhost.conf, with a dash of httpd.conf, but I still don't have a clear picture of what needs to happen. 

If it would please the community, I'd be willing to formalize the results and submit them to any and all of the RoR forums/wikis/sites, etc.

Thank you all for your time, and I hope that you had an Excellant Halloween!


Re: Plesk 8.0 + Apache --> setting up the httpd.conf files with Vhosts

Sorry for the confusion. I posted earlier but deleted it because I wasn't sure of the answer. Seems I wasn't fast enough. wink

Anyway, have you considered using a subdomain for this? The normal site is at and the forum is at This way the Rails site can stay separate from the rest of the site. I think this can be done with virtual domains in the apache config file.

Railscasts - Free Ruby on Rails Screencasts

Re: Plesk 8.0 + Apache --> setting up the httpd.conf files with Vhosts

Well, thanks for clearing that up.  It's always comforting to know that I'm not publicly acknowledging the voices in my head :)

Re: Plesk 8.0 + Apache --> setting up the httpd.conf files with Vhosts

Oops hit enter before I was ready to submit.

I think that the subdomain concept is the right way to go, but I've been playing heck in getting apache configured .

The httpd.include file that Plesk produces, doesn't seem to look for a vhost.conf file in subdomains ( I could be wrong, but I didn't see it explicitly) and I wasn't quite sure of what I need to put in it, if anything. 

Am I assuming that I need to create a symlink from my railsApp/public to my httpdocs/ directory?  and would that be just a symlink, or is there a config issue as well.

I'm a bit stemyied at this point, because the code isn't mine (it's RForum-0.2) so I don't really have a firm grasp of what to look for, debugging wise.

I think that I have everything setup right at this point, other than pointing Apache to my Rails App.

Thanks and Have a Great All Saints Day!! (or Day of the Dead, take your pick)