Welcome Guest | Login

subdomains & subfolders and stuff

I'm having trouble getting Rails, subfolders to work, basicaly some stuff appears on the webpage and some don't, all of this because I need to get my Rails app working in a subfolder not on the main site.
in other words, my app will need to stay in a sub-folder like:

www.cnap.pt/admin/

I've installed my app in my server's root folder, and I've created a link like this:

ln -s ~/cnap_bo/public ~/public_html/cnap/admin

but I'm not really sure what to add to my environment.rb and my .htaccess file in my cnap_bo/public/ folder to make it work. :<
thanks for all the advice I can get.



right now, my .htaccess has the following, I dont know if it's the right order:
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/admin.*
RewriteRule .* - [L]
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]







2007-08-02 04:51 PM

Psousa -  Please refer to the tutorial link given below which would walk you through the necessary modifications that needs to your dispatchers and .htaccess file.http://www.hostingrails.com/forums/wiki_thread/1
Also if you're trying to deploy multiple rails applications under your account the link given below would make enough sense.http://www.hostingrails.com/forums/wiki_thread/6
If you run into trouble, refer to our troubleshooting links given below.http://www.hostingrails.com/forums/wiki_thread/15http://www.hostingrails.com/forums/wiki_thread/9
http://www.hostingrails.com/forums/deployment_troubleshooting_thread/91

2007-08-02 06:21 PM


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