Forum: Ruby on Rails Error when configuring rails to run in subdomain

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E3eb0d7da7c54e7c8f247167bf886719?d=identicon&s=25 Maciej Kolodziej (Guest)
on 2006-03-20 16:26
All,

I've a problem configuring rails app to run in a subdomain.

I've set up an application that runs on sth like:
http://mydomain.com/shop/public/admin

which points to /home/myhome/webroot/shop/public/admin

where "shop" is the rails app directory - and it works fine.

But when I use my ISP's web configuration utility to set a subdomain
like shop.mydomain.com to point to /home/myhome/webroot/shop/public then
when I go to http://sklep.klubwina.pl/admin I get:

Application error
Rails application failed to start properly

and in the apache error log I can see:

mod_rewrite: maximum number of internal redirects reached. Assuming
configuration error. Use 'RewriteOptions MaxRedirects' to increase the
limit if neccessary

Does anyone know how to correct this?

Thanks,
Maciej.
E3eb0d7da7c54e7c8f247167bf886719?d=identicon&s=25 Maciej Kolodziej (Guest)
on 2006-03-20 20:17
Nevermind!

Adding / before dispatch.cgi in .htaccess worked.

Maciej.
This topic is locked and can not be replied to.