logo       

Re: NOT FOUND error: msg#00168

lang.ruby.mongrel.general

Subject: Re: NOT FOUND error

prefix is not what you think it is.

remove that line and it should work.

prefix is for hosting a rails app at: http://server/prefix



On 1/24/07, Chuck Vose <vosechu-Tuc0G0OkQPOaMJb+Lgu22Q@xxxxxxxxxxxxxxxx> wrote:
> I've been hunting the web and reading the mailing lists all day but
> I'm not finding any guidance on this problem. When I try to talk to my
> mongrel it simply responds with NOT FOUND and nothing else. I can't
> find anything on google because this has to be the second most commond
> phrase in existence.
>
> Any help or guidance would be greatly appreciated.
>
> Sincerely,
> Chuck Vose
>
> ---
>
> mosaic.common:
>
> ServerName myapp.tld
> ServerAlias www.myapp.tld
> DocumentRoot /var/www/apps/myapp/current/public
>
> <Directory "/var/www/apps/myapp/current/public">
> Options FollowSymLinks
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> RewriteEngine On
>
> # Uncomment for rewrite debugging
> #RewriteLog logs/myapp_rewrite_log
> #RewriteLogLevel 9
>
> # Check for maintenance file and redirect all requests
> RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
> RewriteCond %{SCRIPT_FILENAME} !maintenance.html
> RewriteRule ^.*$ /system/maintenance.html [L]
>
> # Rewrite index to check for static
> RewriteRule ^/$ /index.html [QSA]
>
> # Rewrite to check for Rails cached page
> RewriteRule ^([^.]+)$ $1.html [QSA]
>
> # Redirect all non-static requests to cluster
> RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
> RewriteRule ^/(.*)$ balancer://myapp_mongrel_cluster%{REQUEST_URI} [P,QSA,L]
>
> # Deflate
> AddOutputFilterByType DEFLATE text/html text/plain text/xml
> application/xml application/xhtml+xml text/javascript text/css
> BrowserMatch ^Mozilla/4 gzip-only-text/html
> BrowserMatch ^Mozilla/4.0[678] no-gzip
> BrowserMatch bMSIE !no-gzip !gzip-only-text/html
>
> # Uncomment for deflate debugging
> #DeflateFilterNote Input input_info
> #DeflateFilterNote Output output_info
> #DeflateFilterNote Ratio ratio_info
> #LogFormat '"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)' deflate
> #CustomLog logs/mosaic_deflate_log deflate
>
> -----
>
> myapp.conf:
>
> <VirtualHost myapp.tld:80>
> Include /etc/rails/myapp.common
>
> # This is required to convince Rails (via mod_proxy_balancer) that we're
> # actually using HTTPS.
> RequestHeader set X_FORWARDED_PROTO 'https'
>
> ErrorLog /usr/local/apache2/logs/myapp_errors_log
> CustomLog /usr/local/apache2/logs/myapp_log combined
> </VirtualHost>
>
> <Proxy balancer://myapp_mongrel_cluster>
> BalancerMember http://127.0.0.1:8000
> BalancerMember http://127.0.0.1:8001
> </Proxy>
>
> ------
>
> mosaic_cluster.yml:
>
> ---
> cwd: /var/www/apps/myapp/current
> port: "8000"
> environment: production
> #address: 127.0.0.1
> pid_file: /var/www/apps/myapp/current/log/mongrel.pid
> log_file: /var/www/apps/myapp/current/log/mongrel.log
> servers: 2
> prefix: /usr/local/bin
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users-GrnCvJ7WPxnNLxjTenLetw@xxxxxxxxxxxxxxxx
> http://rubyforge.org/mailman/listinfo/mongrel-users
>


--
Charles Brian Quinn
self-promotion: www.seebq.com
highgroove studios: www.highgroove.com
slingshot hosting: www.slingshothosting.com
main: 678.389.9462 fax: 678.826.0969

Ruby on Rails Bootcamp at the Big Nerd Ranch
Intensive Ruby on Rails Training:
http://www.bignerdranch.com/classes/ruby.shtml


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise