I have been running a proxied mongrel-hosted app behind apache 2.0 (don''t need clustering) for several months, and loving it. In that instance, I am proxying the root of the virtual host to mongrel. I am now in a situation where I need to proxy a directory name to mongrel for a new application, and not having any success. I saw Zed''s mention of the --prefix option in 0.3.13.4, so I have updated to that release. Is this what should work? In httpd.conf: ProxyPass /thisapp http://localhost:7000/ ProxyPassReverse /thisapp http://localhost:7000/ Mongrel startup cmd: /usr/local/bin/mongrel_rails start -d --prefix=/thisapp -p 7000 -a 127.0.0.1 -l log/mongrel.log -P log/mongrel.pid -n 200 --user myuser --group mygroup With this setup, apache is logging a 404, but the 404 page being returned to the client looks to be mongrel''s (simply says, "NOT FOUND"). Running `links http://localhost:7000/` from the colsole of the server gives me the default page for the rails app, so that piece is working. Am I just missing something that should be obvious? Thanks, Doug
On Wed, 2006-09-20 at 19:22 -0500, Doug Selph wrote:> I have been running a proxied mongrel-hosted app behind apache 2.0 > (don''t need clustering) for several months, and loving it. In that > instance, I am proxying the root of the virtual host to mongrel. > > I am now in a situation where I need to proxy a directory name to > mongrel for a new application, and not having any success. I saw Zed''s > mention of the --prefix option in 0.3.13.4, so I have updated to that > release.Run your mongrel with -B, hit it with a few requests, then go look at log/mongrel_debug/rails.log to see what is being passed to rails. Then look at mongrel.log (or the console) to see what request paths are coming in to mongrel from apache. It''s most likely just the wrong paths coming from apache. -- Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.
>>In httpd.conf: >>ProxyPass /thisapp http://localhost:7000/ >>ProxyPassReverse /thisapp http://localhost:7000/Needs to be In httpd.conf: ProxyPass /thisapp http://localhost:7000/thisapp ProxyPassReverse /thisapp http://localhost:7000/thisapp