Forum: Ruby on Rails Apache proxy + lighttpd + rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Michiel S. (Guest)
on 2006-01-13 01: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:

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

The first part works, the requests are successfully routed to for example. But the actual relative
urls are wrong in the rails app. They, for example, point to, instead of wich renders in a 404, because
apache of course doesn't know of the 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.