Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am setting up a new web server (ubuntu 10.04 LTS), I want to get run on production mode: PHP, Rails 2.3.X and Rails 3, and each one should be accessible from diferent path, ex:

http://localhost/rails2_project

http://localhost/rails3_project

http://localhost/php_project

running the three at the time.

I already have installed rvm (with ruby 1.8.7 and 1.9.2), Apache, PHP and MySQL (I use MySQL for Rails and PHP applications).

Some suggest, documentation, links?... are all welcome

share|improve this question

migrated from stackoverflow.com Dec 23 '11 at 17:50

This question came from our site for professional and enthusiast programmers.

    
Hello, I don't understand, which is the problem with my question? I do not expect you to do my job, it's just that I have looked online and there are many different documents, I would like you to recommend me a reliable documentation because I want to start right from the beginning. –  el_quick Dec 23 '11 at 17:44
    
@el_quik - as I said. There is nothing wrong with your question, it's just been asked on the wrong site. Your question is about setting up software. That sort of question is better put on ServerFault, instead of StackOverflow. –  Taryn East Dec 23 '11 at 17:46
    
Several of us have already voted for it to be moved over there by a moderator - so it should get moved there very soon now and then you'll get the help you need. –  Taryn East Dec 23 '11 at 17:47

1 Answer 1

I'd use apache2 mod_alias : http://httpd.apache.org/docs/2.0/mod/mod_alias.html

A better approach than using urls like http://localhost/somepath is : using virtualhosts you can define in your /etc/hosts file this entry

127.0.0.1  rails2 rails3 php

and then define name based virtualhosts for each project so that you can user urls like

http://rails2, http://rails3 and http://php

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.