FastCGI

Matthew Weier O'Phinney wrote:
-- alesl <[EMAIL PROTECTED]> wrote
(on Thursday, 21 June 2007, 10:10 AM -0700):
When testing a Zend Framework application at Dreamhost hosting, I discovered
a problem with the routing system in my particular configuration. At home everything works perfectly (tested on windows and linux -
apache_mod), but routing does not work correctly in environmet with Apache,
suexec and mod_rewrite (Dreamhost).

This is my .htaccess
RewriteEngine on

RewriteBase /

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*\.)(js|css)$ index.php [L,NC]

The second conditon rewrites js and css files to index.php where front
controller takes action with defined route:
routes.jscss.type                          = 
"Zend_Controller_Router_Route_Regex"
routes.jscss.route                         = "(.+)\.(css|js)"
routes.jscss.defaults.module           = "jscss"
routes.jscss.defaults.controller        = "index"
routes.jscss.defaults.action            = "index"
routes.jscss.map.1 = "file" routes.jscss.map.2 = "type"
Ass i said on local machines js, css files are minimized and send back to
browser. On Dreamhost nothing hapens -> routing is ignored ?!?!

Is your host using mod_php, CGI, or FastCGI?

Reply via email to