Displaying 20 results from an estimated 3000 matches similar to: "Running apps in subdirectories using lighty/scgi"
2006 Feb 23
5
Help with SCGI please :(
Hi,
While learning Ruby and Rails, I decided I just as well learn Linux
along the way... It''s been fun, but I''m stuck at one of those
exasperating moments... I hope someone can help me :)
I installed Ruby 1.8.4 on Fedora Core 4, then Rails, then lighty, and
then SCGI.
I used yum to install lighty... and it already comes with mod_scgi.
I created my first application in
2006 Mar 07
13
hosting multiple rails apps in one webroot?
It''s actually REALLY easy with lighttpd on linux.
Two apps...
Myserver.com/code/ => /apps/code/
Myserver.com/test/ +> /apps/test/
Each application needs this in the environment.rb
/apps/code/config/environment.rb
ActionController::AbstractRequest.relative_url_root = "/code"
/apps/test/config/environment.rb
ActionController::AbstractRequest.relative_url_root
2006 Feb 15
0
Lighty/SCGI: not found: /dispatch.scgi
I have a ton of these in my Lighty error log:
2006-02-15 15:55:53: (connections.c.1383) Warning: Either the
error-handler returned status 404 or the error-handler itself was not
found: /dispatch.scgi
2006-02-15 15:55:53: (connections.c.1385) returning the original status
404
2006-02-15 15:55:53: (connections.c.1387) If this is a rails app: check
your production.log
And I guess it''s
2005 Dec 01
12
Difficult process of restarting SCGI, Lighttpd, Apache, sessions
I''ve managed to get Rails working using Apache->Lighttpd->SCGI. Restarting everything is really
difficult. This appears to be the process:
- stop apache
- stop lighttpd
- stop scgi
- make sure scgi still isn''t running (it sometimes does) - if it is, kill it
- delete all session files (they often cause permission errors)
- start scgi
- start apache
- start lighttpd
- cross
2008 Jan 31
2
Facebooker and file_column
Facebooker URL Rewriter stuff overloads ActionController::AbstractRequest.relative_url_root, causing a conflict with the plugin file_column and possibly other utilities. file_column constructs image URLs using the server host and relative_url_root
This is not related to the sandbox patch I added to the rewriter. Facebooker overloaded relative_url_root before I touched it.
I''ve
2006 Mar 06
7
Set base url?
I have an application running on a Lighttpd instance which is proxied by an
Apache server. It seems to work fine but my urls are incorrect: all urls
reference / which is not where my application runs at the Apache server.
How do I set the base url of a Rails application?
My Apache has the following proxy rules:
ProxyPass /hieraki http://localhost:3001
ProxyPassReverse /hieraki
2006 Mar 04
5
Correcting Bent Records: Mongrel is not SCGI
Hi,
I kept getting a very weird question about Mongrel
(http://mongrel.rubyforge.org) and SCGI that I think really needs to be
cleared up:
** Mongrel is not SCGI and will never need, use, require, or interact with
SCGI (unless someone wants to write the handler for it). **
For some reason people have been under the impression that Mongrel actually
uses or interacts with my other project SCGI
2007 Oct 11
2
relative_url_root and javascript_include_tag
Hi. In my environment.rb, I have:
ActionController::AbstractRequest.relative_url_root = "/foobar"
In my layout, I have:
<%= javascript_include_tag :defaults %>
Question 1:
I am getting an error:
ActionController::RoutingError (no route found to match
"/javascripts/prototype.js" with {:method=>:get}):
When I remove the relative_url_root, everything works great.
2006 Jan 27
5
Multiple Apps running under Lighttpd with scgi on a Windows Box ... possible?
I''ve run into a problem on one of my development machines. I''m trying to
run multiple rails apps on one dev machine that runs Windows. Problem is
that is seems that I can only run one scgi_service at a time, meaning
that only one of my apps will function at a time. Anyone know how I can
get around this, other than getting a *nix box (which I should have
soon, hopefully) ?
2006 Apr 03
12
scgi?? do i need it for ruby?
This might be obvious to everyone but it is something that i haven''t
been able to find an answer to. Do I need to have either
scgi/fastcgi/cgi running on either lighttpd/apache for ruby scripts to
work? If yes, why? I have installed the scgi server and i can get the
service to run, i have also installed the following mod_fastcgi/2.4.2
mod_ruby/1.2.4 Ruby/1.8.2(2004-12-25) mod_scgi,
2006 Mar 21
2
Lighty+Mongrel unresponsive after so many requests
I transferred a site from Lighty+SCGI to Lighty+Mongrel, and now I''m
having problems with it becoming unresponsive. It works fine for about
10-15 minutes, but then attempts to access the site just stall forever.
Nothing is written in any of lighty''s or mongrel''s logs. Here''s my
lighty config:
$HTTP["host"] =~ "www.xyz.com" {
2009 Jun 25
8
Mongrel service keeps re-starting ruby
On Thu, Jun 25, 2009 at 2:07 AM, Michael Pliskin<mike at comapping.com> wrote:
> Hi all,
>
>
>
> Some disclaimer first: I am a complete newbie in mongrel and this list, so
> please forgive me if I say something weird. I have a problem, I?ve googled
> for a solution for quite a while and failed so far, so decided to ask here.
>
>
>
> I am trying to set up my
2006 Jun 21
3
multiple apps one virtual host one domain
I''m trying to achieve the following:
Having a development server that runs multiple rails apps running wihout
creating a different virtual host for each apps.
my documentRoot is therefore /var/rails for my whole config
http://myserver/app1/controller/action -> (/var/rails/app1/...)
http://myserver/app2/controller/action -> (/var/rails/app2/...)
I''m under apache 1.3
mod
2006 Jun 22
2
[PLUGIN] url_for_with_prefix - allowing you to modify/remove prefixes easily
Here''s the readme. I think it''s okay to post this kind of thing to
the mailing list. Anyway, hopefully someone else finds this useful.
UrlForWithPrefix
================
By Pat Maddox
Very simple plugin, adds the :prefix option to url_for.
Say in your environment.rb file you''ve got
ActionController::AbstractRequest.relative_url_root = "/super"
Any time
2005 Dec 04
3
Relative URL
I''m trying to use a non default webserver with Rails and succesfully
does this by calling the disptacher directly, by setting the environment
variables: REQUEST_URI and SCRIPT_NAME
My problem is that the relative path is incorrect when I identify myself
as anything else than apache. In request.rb the @@relative_url_root is
only set when the webserver is apache. Is this default wanted
2005 Dec 04
10
web server q -- playing nice w/ PHP
I have a webserver that''s happily running apache2 and PHP. I''d like to
deploy a site that I wrote using RoR on that same server but read that
there might be some conflicts with PHP and RoR trying to access the same
MySQL database.
How real are those conflicts? Could I mess up my running PHP site if I
install mod_ruby and try to use Apache2?
Would I be better off
2005 Oct 19
35
Why you MUST use SCGI for Rails development
Hello happy Railers,
I used to develop with a local out-of-the-box Apache and load times were
pretty slow (like a few seconds each page). "Well, it''s the price to
pay for no compile / cache / etc..." I thought. Nonsense. Yesterday I
installed SCGI, and now I''ve got the best of both worlds: rails
development env uses my very latest modifications, while SCGI ensures I
2006 Jul 10
7
Rails app in a subdirectory via Mongrel
I''m trying to make Mongrel the default web server for Typo, but I''m running
into a problem. Is there an easy way to run a Rails app in a subdirectory (
http://foo/blog instead of http://foo/) with Mongrel? For most apps, I''d
just change routes.rb to include the prefix that I wanted, but that won''t
really work with Typo--I''d rather not require a few
2006 May 24
1
Rails App in Subfolder = Routing Error Recognition Failed
Zed / List,
On my workstation I''m running lighttpd 1.4.11 and mongrel 0.3.12.4. Here are
my proxy settings:
proxy.debug = 0
proxy.balance = "fair"
proxy.server = (
"/RailsAppSample" => ((
"host" => "127.0.0.1",
"port" => 1337
)))
I can access http://localhost/ (default lighty welcome page) and
http://localhost:1337/
2005 Dec 30
6
call a method once per page request
Hi,
I''m wondering if there is a simple solution to call a method once per
page request.
I tried to place my call in a before_filter in ApplicationController but
it''d called a second time if I use render_component from a view.
Seems to me that a hook should be added in Dispatcher#prepare_application.
Context: working on i18n, I''m trying to check lang either from uri,