running dancer under apache (as cgi or fastcgi)
~/domains/test-dancer-app/www$ cat .htaccess Options +ExecCGI DirectoryIndex index.htm /dispatch.cgi RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !\.(swf)|(jpg)|(png)|(gif)$ RewriteRule ^(.+)$ /dispatch.fcgi$1 [L] ~/domains/test-dancer-app/www is alias for `.../public` # in hook `before` if ( !session('uid') && request->path_info !~ m{^/login} ) { return redirect '/login/'; } This gets redirect to `/dispatch.fcgi/login/` instead of /login/. When manually getting /login/ it gets internal server error with this text in log: "Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace." Additionally, it seems `params` is always empty when url is `/dispatch.fcgi/...` The same app works perfect when run under Starman + nginx. But we are still trying to make good shared hosting for dancer, so the question is how to run this under Apache + mod_cgi/mod_fastcgi. -- Best Regards, Nick Knutov http://knutov.com ICQ: 272873706 Voice: +7-904-84-23-130
participants (1)
-
Nick Knutov