[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Rails application failed to start properly

misiek

2/16/2006 10:13:00 PM

my settings
OS: gentoo
net-www/apache-2.0.54-r31
net-www/mod_fastcgi-2.4.2-r1


NameVirtualHost 111.111.11.111:80
<VirtualHost www.domain.com:80>
ServerAdmin webmaster@localhost
Servername www.domain.com
ServerAlias domain.com
ErrorLog /home/ftp/workspace/domain.com/log/apache.log

DocumentRoot /home/ftp/workspace/domain.com/public
<Directory "/home/ftp/workspace/domain.com/public/">
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Allow from all
</Directory>
</VirtualHost>


..httaccess
RewriteRule ^(.*)$ dispatch.fcgi?$1 [QSA,L]

/etc/conf/apache2
APACHE2_OPTS="-D DEFAULT_VHOST -D FASTCGI -D SSL -D PHP4"


on localhost works good when I copy on server with real domain does not
work the message like in subject.

in apache.log i got
[Thu Feb 16 16:11:51 2006] [error] [client 192.168.10.101] mod_rewrite:
maximum number of internal redirects reached. Assuming configuration
error. Use 'RewriteOptions MaxRedirects' to increase the limit if
neccessary.

but what it does mean ?

what is wrong ?
3 Answers

misiek

2/16/2006 10:17:00 PM

0


> .httaccess
> RewriteRule ^(.*)$ dispatch.fcgi?$1 [QSA,L]
>
> /etc/conf/apache2
> APACHE2_OPTS="-D DEFAULT_VHOST -D FASTCGI -D SSL -D PHP4"
>
>
> on localhost works good when I copy on server with real domain does not
> work the message like in subject.
>
> in apache.log i got
> [Thu Feb 16 16:11:51 2006] [error] [client 192.168.10.101] mod_rewrite:
> maximum number of internal redirects reached. Assuming configuration
> error. Use 'RewriteOptions MaxRedirects' to increase the limit if
> neccessary.
>
> but what it does mean ?
>
> what is wrong ?

ok I del $1 option from .htaccess
RewriteRule ^(.*)$ dispatch.fcgi?$1 [QSA,L]
^

no when I start the web site I got with my browser that message


#!/usr/bin/ruby18
#
# You may specify the path to the FastCGI crash log (a log of unhandled
# exceptions which forced the FastCGI instance to exit, great for debugging)
# and the number of requests to process before running garbage collection.
#
# By default, the FastCGI crash log is RAILS_ROOT/log/fastcgi.crash.log
# and the GC period is nil (turned off). A reasonable number of requests
# could range from 10-100 depending on the memory footprint of your app.
#
# Example:
# # Default log path, normal GC behavior.
# RailsFCGIHandler.process!
#
# # Default log path, 50 requests between GC.
# RailsFCGIHandler.process! nil, 50
#
# # Custom log path, normal GC behavior.
# RailsFCGIHandler.process! '/var/log/myapp_fcgi_crash.log'
#
require File.dirname(__FILE__) + "/../config/environment"
require 'fcgi_handler'

RailsFCGIHandler.process!

Austin Ziegler

2/16/2006 10:38:00 PM

0

On 2/16/06, misiek <michaelaugustyniak@gazeta.pl> wrote:You will probably get a faster and better response from: http://lists.rubyonrails.org/mailman/listinfo/rails-aust... Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca

misiek

2/16/2006 11:47:00 PM

0

Austin Ziegler wrote:
> On 2/16/06, misiek <michaelaugustyniak@gazeta.pl> wrote:
>
> You will probably get a faster and better response from:
>
> http://lists.rubyonrails.org/mailman/list...
>
> -austin
> --
> Austin Ziegler * halostatue@gmail.com
> * Alternate: austin@halostatue.ca

yeah never mind it works
thanks