Welcome Guest | Login

.htaccess in PHP application

Hi.
I've just uploaded my php application. It works nice, but when i want to add Apache Authentication, it asks me for my name and password, but hangs with:
"Application error - Rails application failed to start properly".

My .htaccess look:
AuthUserFile /home/***/rails/.htpasswd
AuthGroupFile /dev/null
AuthType Basic

require valid-user

Anobody seen this before ?
Thanks a lot.

BTW: There are no messages in any of my RoR application's log files

2008-07-05 05:56 PM

engeneer & development@comz
Hi Comz,

If you are running a php application as a sub domain of the rails application make sure to add the following lines to your main domain's .htaccess.

===
RewriteCond %{REQUEST_URI} ^/sub.*
RewriteRule .* - [L]
===

The given wiki link will guide you to set up a sub domain for a rails application

http://www.hostingrails.com/forums/wiki_thread/6

2008-07-05 06:30 PM

I've done this for a subdomain dev.*.com, but for sub.dev.*.com not .. Is it needed ?

2008-07-05 06:35 PM

engeneer & development@comz
Hi Comz,

Could you please make sure that the " AuthUserFile " location given in the  ~/public_html/dev/svn/.htaccess file is the correct one. It seems like the "/home/***/rails/.htpasswd" file is missing.

2008-07-05 07:21 PM


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