On Dec 13, 1:54 pm, “Dave Stevenson” [email protected] wrote:
- connect to mongrel directly and see if everything is working (lynx
localhost:3000 for example). If everything is loading fine hitting
mongrel directly, then chances are it’s in your apache config.
I don’t have lynx installed, but I did use curl and they load up just
fine. Like so:
$ curl -I http://localhost:8001/images/rails.png
HTTP/1.1 200 OK
Connection: close
Date: Thu, 13 Dec 2007 20:14:08 GMT
ETag: “47571126-6fb-f80655”
Last-Modified: Wed, 05 Dec 2007 20:59:18 GMT
Content-Type: image/png
Content-Length: 1787
- Check apache config - I looked over yours and it appears to be the same
setup I use. You do have it using port 8080, which is interesting.
I’m running two separate instances of apache. First one uses port 80
and that’s being used actively as a production server. The second is
to test deployment and get things working before rolling it out onto
the first server.
- View source of your pages, and make sure the references are pointing to
the right files, and that the url it generated is correct. Try and hit
those pages directly in the browser (copy and paste into your address bar)
Had tried this already, and this definitely isn’t working.
Here’s what my rewrite log shows when trying to load rails.png (while
loading the standard rails welcome page):
[rid#825d910/initial] (2) init rewrite engine with requested uri /
images/rails.png
[rid#825d910/initial] (3) applying pattern ‘^.$’ to uri ‘/images/
rails.png’
[rid#825d910/initial] (4) RewriteCond: input=’/srv/www/htdocs/webapp/
current/public/system/maintenance.html’ pattern=’-f’ => not-matched
[rid#825d910/initial] (3) applying pattern ‘^/$’ to uri ‘/images/
rails.png’
[rid#825d910/initial] (3) applying pattern ‘^([^.]+)$’ to uri ‘/images/
rails.png’
[rid#825d910/initial] (3) applying pattern '^/(.)$’ to uri ‘/images/
rails.png’
[rid#825d910/initial] (4) RewriteCond: input=’/srv/www/htdocs/webapp/
current/public//images/rails.png’ pattern=’!-f’ => not-matched
[rid#825d910/initial] (1) pass through /images/rails.png
[rid#8261970/initial/redir#1] (2) init rewrite engine with requested
uri /error/HTTP_FORBIDDEN.html.var
[rid#8261970/initial/redir#1] (3) applying pattern ‘^.$’ to uri ‘/
error/HTTP_FORBIDDEN.html.var’
[rid#8261970/initial/redir#1] (4) RewriteCond: input=’/srv/www/htdocs/
webapp/current/public/system/maintenance.html’ pattern=’-f’ => not-
matched
[rid#8261970/initial/redir#1] (3) applying pattern ‘^/$’ to uri ‘/
error/HTTP_FORBIDDEN.html.var’
[rid#8261970/initial/redir#1] (3) applying pattern ‘^([^.]+)$’ to uri
‘/error/HTTP_FORBIDDEN.html.var’
[rid#8261970/initial/redir#1] (3) applying pattern '^/(.)$’ to uri ‘/
error/HTTP_FORBIDDEN.html.var’
[rid#8261970/initial/redir#1] (4) RewriteCond: input=’/srv/www/htdocs/
webapp/current/public//error/HTTP_FORBIDDEN.html.var’ pattern=’!-f’ =>
matched
[rid#8261970/initial/redir#1] (2) rewrite ‘/error/
HTTP_FORBIDDEN.html.var’ -> ‘balancer://mongrel_cluster_for_webapp/
error/HTTP_FORBIDDEN.html.var’
[rid#8261970/initial/redir#1] (2) forcing proxy-throughput with
balancer://mongrel_cluster_for_webapp/error/HTTP_FORBIDDEN.html.var
[rid#8261970/initial/redir#1] (1) go-ahead with proxy request
proxy:balancer://mongrel_cluster_for_webapp/error/
HTTP_FORBIDDEN.html.var [OK]