Using apache2 with mod_proxy, I achieved this by adding the line:
ProxyPass /public !
Before the other ProxyPass lines:
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
ProxyRequests Off
And also setting:
Alias /public /home/tracks/tracks/public
Hope that's useful to someone!
--
Orlando.
From: [email protected]
[mailto:[email protected]] On Behalf Of Eric
Allen
Sent: 20 January 2010 06:31
To: tracks-discuss
Subject: [Tracks-discuss] Re: passenger + tracks unusably slow?
Could this be related to #908
<http://www.assembla.com/spaces/tracks-tickets/tickets/908> ? I think our
subdir support is basically broken at this point.
On Tue, Jan 19, 2010 at 9:40 PM, Luis Villa <[email protected]> wrote:
On Tue, Jan 19, 2010 at 1:44 PM, Reinier Balt <[email protected]> wrote:
> Could be that your virtual host setting is not correct? This should
normally
> bypass rails for static content, i.e. stuff in /public
Good catch, something is screwy there- my css has /tracks/tracks/foo
instead of /tracks/foo. This happens whether or not subdir: "/tracks"
is set in site.yml. Any suggestions?
Luis
> Reinier
>
> -----Oorspronkelijk bericht-----
> Van: [email protected] [mailto:[email protected]] Namens Luis Villa
> Verzonden: dinsdag 19 januari 2010 20:20
> Aan: Reinier Balt
> CC: tracks-discuss
> Onderwerp: Re: [Tracks-discuss] passenger + tracks unusably slow?
>
> On Tue, Jan 19, 2010 at 1:22 AM, Reinier Balt <[email protected]> wrote:
>> I'm using passenger for a long time. No problems here.
>> I even saw some improvement over my mongrel setup. I have a pretty
>> default passenger setup for httpd
>>
>> Perhaps you have a very small timeout of the tracks worker that is
spawned
>> by passenger?
>
> I did fix that, which is helping some, but there must be other
> problems as well; I just noticed that the icons for notes are missing,
> for example. Hopefully tracking that down will help me track down the
> performance problem as well.
>
> Thanks-
> Luis
>
>
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
_______________________________________________
Tracks-discuss mailing list
[email protected]
http://lists.rousette.org.uk/mailman/listinfo/tracks-discuss