Welcome Guest | Login

Problems setting up multiple apps

I'm trying to set up the following domains:

app1.com - an HTML simple website
app2.com - a second simple html website
app3.com - a Rails fcgi

Setting up the first 2 was simple and they were both running fine. then I set up the rails app and that's when things went screwy.  

app1.com is still working fine.
app2.com - which used to work is now saying "Rails failed to start"?? It's not a rails app and WAS working before I tried to set up app3.com

app3.com is giving me Forbidden 403 errors, even though I went through and followed the permission setting instructions.  I'm pretty sure the problem is in the .htaccess files but I'm not really sure how to set them up since most of tutorials assume that your first app is a Rails app.

UPDATE**********************

Since posting this, I found another post with a similar problem to my app2.com domain and was able to fix it by placing an .htaccess file in the root with the lines...

RewriteEngine on
RewriteRule / /index.html

So now app1.com and app2.com are working fine, but I still can't get the rails app going

2007-08-29 08:25 AM

Adflex -

I've deleted the wrong symlink to your app2's public (The path isn't existing under your home directory)under your public_html. Also the site at app2.com which was showing "Application error" is now appearers fine. Please verify these changes. To deploy the multiple apps a careful reading through our tutorial links given below would do.
http://www.hostingrails.com/forums/wiki_thread/1http://www.hostingrails.com/forums/wiki_thread/6
passwor http://www.hostingrails.com/forums/wiki_thread/15http://www.hostingrails.com/forums/wiki_thread/9http://www.hostingrails.com/forums/deployment_troubleshooting_thread/91

2007-08-29 08:55 AM

app2 error
I suspect you wrongly setup domain2 instead of domain3

app3 erros/.htaccess

I suspect it is permissioning of dispatch.fcgi which is missing
you need to permission dispatch.fcgi to be executable you can do that with
chmod 755 dispatch.fcgi


.htaccess just says pass the web request to be processed by dispatch.fcgi(which is run via ruby), generally not much to be done with .htaccess permission

appliation load sequence
1) request recieved by apache from browser
2) apache sees .htaccess and loads it
3) .htaccess says load the dispatcher, dispatch.fcgi in our case
4) which loads the application via config/boot.rb, then environment, routes, then application controller
5) the output is sent back to apache which sends to browser back


and also dont forget to change .htaccess line which says
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
to
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] , else your app is going to reload the rails stack every time a request is made thats over 5mb of ruby files to process before first output comes

cheers
Jackson

2007-08-29 09:13 AM

Jackson - The mysql username you entered in your database.yml was wrong and I've corrected it now. Also your dispatch.fcgi was corrupted. I've replaced it with a new dispatch.fcgi. Now your site is loading fine. Please verify it at your end. If you've further issues you can post a ticket to the support team with the exact details of your issue.

2007-08-29 10:11 AM

It is all working fine now - thank you so much for your time and help!

2007-08-29 10:21 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.