Forum: Ruby on Rails Apache proxy + lighttpd + rails

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.
Fb613ae74d247c05eba250f575e2c9b0?d=identicon&s=25 Michiel Sikkes (Guest)
on 2006-01-13 00:26
(Received via mailing list)
Hi list,

I'm having another problem deploying my Rails application. I set up
the servers and apache2 configuration using the excellent essay by
Duncan Davidson:
http://duncandavidson.com/essay/2006/01/railsonapache

However, he describes proxying using a subdomain. What if I want to
proxy the requests of www.domain.com/railsapp/<url> to
www.domain.com:8888/<url> and reverse it back the correct way?

The first part works, the requests are successfully routed to
www.domain.com:8888/admin/login for example. But the actual relative
urls are wrong in the rails app. They, for example, point to
www.domain.com/admin/login, instead of
www.domain.com/railsapp/admin/login wich renders in a 404, because
apache of course doesn't know of the www.domain.com/admin url

Is there an easy way to do this correctly trough apache2? Or should I
set some var in my Rails app to append /railsapp/ to every
link/uri/stylesheet_link etc.

Many thanks in advance,
This topic is locked and can not be replied to.