Hi, I''m attempting to migrate an app from Apache+FCGI to Apache+Mongrel. I''m using Apache 2.0 with the latest Mongrel release. I''m having an issue with the Mint stats package and Mongrel not picking up the following url: /mint/?js Basically inside the /mint folder there is an index.php, so the url /mint/?js should really be going to /mint/index.php?js When I had my Apache+FCGI setup I had to add the following code to the .htaccess file under my Rails public directory to get it to work: RewriteEngine On RewriteCond %{REQUEST_URI} ^/mint.* RewriteRule .* - [L] Is somehow the translation being lost in the proxying of the requests from Apache to Mongrel? Here is my virtual host I have setup in Apache: <VirtualHost 10.0.0.1:80> ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/ ServerName beta.perficient.com ServerAdmin "support at perficient.com" CustomLog "/u/apps/snippets/current/log/access_log" "combined" ErrorLog "/u/apps/snippets/current/log/error_log" </VirtualHost> Any ideas? Thanks in advance. ---------------------------------------------------------------------------------------------------- What''s an Intel chip doing in a Mac? A whole lor more that it''s ever done in a PC. My Digital Life - http://scottwalter.com/blog Pro:Blog - http://scottwalter.com/problog Snippets - http://snippets.scottwalter.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060619/657cf4c5/attachment.htm
On Mon, 2006-06-19 at 18:30 -0700, Scott Walter wrote:> Hi,> Basically inside the /mint folder there is an index.php, so the > url /mint/?js should really be going to /mint/index.php?js >I''d first see if there''s a way to stop doing that. That''s just nasty looking and in general bad form since it isn''t identifying a specific resource to accept the query parameters (and that parameter smells bogus too).> When I had my Apache+FCGI setup I had to add the following code to > the .htaccess file under my Rails public directory to get it to work: > > RewriteEngine On > RewriteCond %{REQUEST_URI} ^/mint.* > RewriteRule .* - [L] >This should work, but double check that you put this in with the mongrel rewrite rules and that these are first. Also, turn on your rewrite logs extra high so you can trace what apache thinks the request is. This helps a lot. -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/