Hi,
i have problem with css, js and images.
i put the confs:
<VirtualHost *:
80>
ServerName
www.proalmat.facual.org.br
DocumentRoot /home/www/ruby/proalmatfacual/
public
<Directory "/home/www/ruby/proalmatfacual/
public">
Options
FollowSymLinks
AllowOverride
None
Order
allow,deny
Allow from
all
</
Directory>
RailsBaseURI /
</VirtualHost>
but don't works for me, see logs:
ActionController::RoutingError (No route matches "/stylesheets/
defaults.css" with {:method=>:get}):
/vendor/rails/actionpack/lib/action_controller/routing.rb:1441:in
`recognize_path'
/vendor/rails/actionpack/lib/action_controller/routing.rb:1424:in
`recognize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
170:in `handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
115:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
126:in `dispatch_cgi
ActionController::RoutingError (No route matches "/images/
menu_oproalmat.jpg" with {:method=>:get}):
/vendor/rails/actionpack/lib/action_controller/routing.rb:1441:in
`recognize_path'
/vendor/rails/actionpack/lib/action_controller/routing.rb:1424:in
`recognize'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
170:in `handle_request'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
115:in `dispatch'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:
126:in `dispatch_cgi'
/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:9:in
`dispatch'
httpd log:
[0x3368:StandardApplicationPool.h:0xf9] Cleaning idle app /home/www/
ruby/proalmatfacual (PID 0x33e8)
[0x3368:Application.h:0x112] Application 0x847cb00: destroyed.
[0x33cc:Hooks.cpp:0x172] Processing HTTP request: /
[0x3368:ApplicationPoolClientServer.h:0x1aa] Client 0x842a600:
received message: ['get', '/home/www/ruby/proalmatfacual', 'true',
'nobody']
[0x3368:Application.h:0x108] Application 0x847c860: created.
[0x3368:ApplicationPoolClientServer.h:0x1aa] Client 0x842a600:
received message: ['close', '13']
[13255:Hooks.cpp:370] Processing HTTP request: /images/menu_home.jpg
[0x3368:ApplicationPoolClientServer.h:0x1aa] Client 0x842a600:
received message: ['get', '/home/www/ruby/proalmatfacual', 'true',
'nobody']
[0x3368:ApplicationPoolClientServer.h:0x1aa] Client 0x842a600:
received message: ['close', '11']
[13254:Hooks.cpp:370] Processing HTTP request: /images/
menu_oproalmat.jpg
[0x3368:ApplicationPoolClientServer.h:0x1aa] Client 0x842a600:
received message: ['get', '/home/www/ruby/proalmatfacual', 'true',
'nobody']
[0x3368:ApplicationPoolClientServer.h:0x1aa] Client 0x842a600:
received message: ['close', '11']
[13253:Hooks.cpp:370] Processing HTTP request: /stylesheets/
defaults.css
[0x3368:ApplicationPoolClientServer.h:0x1aa] Client 0x842a600:
received message: ['get', '/home/www/ruby/proalmatfacual', 'true',
'nobody']
[0x3368:ApplicationPoolClientServer.h:0x1aa] Client 0x842a600:
received message: ['close', '4']
[0x33cd:Hooks.cpp:0x172] Processing HTTP request: /images/
transparente.gif
[0x3368:ApplicationPoolClientServer.h:0x1aa] Client 0x842a600:
received message: ['get', '/home/www/ruby/proalmatfacual', 'true',
'nobody']
[0x3368:ApplicationPoolClientServer.h:0x1aa] Client 0x842a600:
received message: ['close', '3']
i have other 3 app rails runing just with:
<VirtualHost *:
80>
ServerName
estoque.facual.org.br
DocumentRoot /home/www/ruby/intranetfacual/
public
</VirtualHost>
and i don't have problem, just the app above don't work.
PS: sorry for my bad english, i'm from brazil and i'm learning :)
On 13 abr, 07:23, Hongli Lai <
hon...@phusion.nl> wrote:
> ChrisR wrote:
> > Thanks Tomasz, it might have taken me a while to figure out this
> > obvious solution.
>
> > I agree with you Jared, the docs should make note of it.
>
> > Thanks
> > Chris
>
> Thanks for the feedback. I've updated the users guide accordingly.
>
> --
> Phusion | The Computer Science Company
>
> Web:
http://www.phusion.nl/
> E-mail:
i...@phusion.nl