John Tsombakos
2006-Oct-07 01:32 UTC
Proxying Apache to Mongrel, not sure if Apache is serving up static files
Let''s try this one... I have Apache 2.0.55 set up and also have Mongrel set up. I have Radiant set up running under Mongrel, and have Apache proxying to the Mongrel instance. That all seems to be working fine. I thought I''d modify the settings a bit to let Apache serve up the static files - images, stylesheets, etc. I have it set up, and am not getting any errors. However. I''m not seeing any entries in the Apache access.log that indicate the files are being served. Here''s my Apache config: <VirtualHost *> ServerName radiant.myserver.com ErrorLog /var/log/apache2/error.log Alias /images /var/www/radiant/public/images Alias /stylesheets /var/www/radiant/public/stylesheets ProxyPass /images ! ProxyPass /stylesheets ! ProxyPass / http://10.1.1.104:3000/ ProxyPassReverse / http://10.1.1.104:3000 ProxyPreserveHost on </VirtualHost> Anyone see any problem with my configuration? Is there any way to tell/make sure that the Apache is handling the static files? Thanks, John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Philip Hallstrom
2006-Oct-07 02:24 UTC
Re: Proxying Apache to Mongrel, not sure if Apache is serving up static files
> I have Apache 2.0.55 set up and also have Mongrel set up. I have > Radiant set up running under Mongrel, and have Apache proxying to the > Mongrel instance. That all seems to be working fine. > > I thought I''d modify the settings a bit to let Apache serve up the > static files - images, stylesheets, etc. I have it set up, and am not > getting any errors. > > However. > > I''m not seeing any entries in the Apache access.log that indicate the > files are being served.Where are you specifying your apache log? Does anything show up in it when you make requests? What does the mongrel.log say? One of them should say something...> > Here''s my Apache config: > > <VirtualHost *> > > ServerName radiant.myserver.com > ErrorLog /var/log/apache2/error.log > > > Alias /images /var/www/radiant/public/images > Alias /stylesheets /var/www/radiant/public/stylesheets > > ProxyPass /images ! > ProxyPass /stylesheets ! > ProxyPass / http://10.1.1.104:3000/ > ProxyPassReverse / http://10.1.1.104:3000 > > > ProxyPreserveHost on > </VirtualHost> > > Anyone see any problem with my configuration? Is there any way to > tell/make sure that the Apache is handling the static files? > > Thanks, > > John > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
John Tsombakos
2006-Oct-07 13:48 UTC
Re: Proxying Apache to Mongrel, not sure if Apache is serving up static files
On 10/6/06, Philip Hallstrom <rails-SUcgGwS4C16SUMMaM/qcSw@public.gmane.org> wrote:> > Where are you specifying your apache log? Does anything show up in it > when you make requests?I figured it would use the configuration of the default site, but I guess it doesn''t. I added: LogLevel warn CustomLog /var/log/apache2/rad.log combined to the sites configuration, and that file is now being used.> What does the mongrel.log say? One of them should say something...The mongrel.log file just shows that mongrel started up and the location of it''s PID file. Nothing else. The production.log file is showing entries, which is fine. Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---