Peter Fitzgibbons
2005-Nov-08 17:55 UTC
SCGI / Apache 2 / Win32 not working / no output / help?
Hello all, I''m trying to use SCGI on Apache2/Win32. I followed your apache2 wiki links as far as possible... but I only "connection refused" on http://127.0.0.1:82/ or http://localhost:82. Do you have any other resources for Apache/Win32/SCGI config ? This is the end of my ./conf/httpd.conf SCGIMount / 127.0.0.1:9999 <http://127.0.0.1:9999> <VirtualHost 127.0.0.1:82 <http://127.0.0.1:82>> AddDefaultCharset utf-8 ServerName www.yourdomain DocumentRoot C:/ruby/dev/buildview2/public ErrorDocument 500 /500.html ErrorDocument 404 /404.html # handle all requests throug SCGI SCGIMount / 127.0.0.1:9999 <http://127.0.0.1:9999> # matches locations with a dot following at least one more characters, that is, things like *,html, *.css, *.js, which should be delivered directly from the filesystem <LocationMatch \..+$> # don''t handle those with SCGI SCGIHandler Off </LocationMatch> <Directory C:/ruby/dev/buildview2/public/> Options +FollowSymLinks Order allow,deny allow from all </Directory> </VirtualHost> -- Peter Fitzgibbons _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I have a httpd.conf similar to yours, and don''t have the problems you described. Did you configure your scgi correctly using scgi_ctrl and run scgi_service? Jin On 11/8/05, Peter Fitzgibbons <peter.fitzgibbons-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hello all, > > I''m trying to use SCGI on Apache2/Win32. I followed your apache2 wiki > links as far as possible... but I only "connection refused" on > http://127.0.0.1:82/ or http://localhost:82. > > Do you have any other resources for Apache/Win32/SCGI config ? > > This is the end of my ./conf/httpd.conf > > SCGIMount / 127.0.0.1:9999 <http://127.0.0.1:9999> > > <VirtualHost 127.0.0.1:82 <http://127.0.0.1:82>> > AddDefaultCharset utf-8 > ServerName www.yourdomain > DocumentRoot C:/ruby/dev/buildview2/public > ErrorDocument 500 /500.html > ErrorDocument 404 /404.html > # handle all requests throug SCGI > SCGIMount / 127.0.0.1:9999 <http://127.0.0.1:9999> > # matches locations with a dot following at least one more characters, > that is, things like *,html, *.css, *.js, which should be delivered directly > from the filesystem > <LocationMatch \..+$> > # don''t handle those with SCGI > SCGIHandler Off > </LocationMatch> > <Directory C:/ruby/dev/buildview2/public/> > Options +FollowSymLinks > Order allow,deny > allow from all > </Directory> > </VirtualHost> > > > -- > Peter Fitzgibbons > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Rowan Hick
2005-Nov-08 19:39 UTC
RE: SCGI / Apache 2 / Win32 not working / no output / help?
You probably did what I did and not realise you have to install scgi_rails.
You have to have the scgi_rails deal started and running as a service before
the mod_scgi deal will work.
Look at the readme on HYPERLINK
"http://www.zedshaw.com/projects/scgi_rails/rdoc/index.html"http://www.zedsh
aw.com/projects/scgi_rails/rdoc/index.html.
If again like me you get errors when trying to run scgi_ctrl (from memory),
you’ll need to use gem install <missing dependency> . you’ll get the
missing
dependency name when you try starting scgi_ctrl. There was about 3 or 4 of
them I had to install.
Kind Regards,
Rowan
_____
From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On
Behalf Of Peter Fitzgibbons
Sent: Wednesday, November 09, 2005 6:55 AM
To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: [Rails] SCGI / Apache 2 / Win32 not working / no output / help?
Hello all,
I''m trying to use SCGI on Apache2/Win32. I followed your apache2 wiki
links
as far as possible... but I only "connection refused" on HYPERLINK
"http://127.0.0.1:82/"http://127.0.0.1:82/ or HYPERLINK
"http://localhost:82"http://localhost:82.
Do you have any other resources for Apache/Win32/SCGI config ?
This is the end of my ./conf/httpd.conf
SCGIMount / HYPERLINK "http://127.0.0.1:9999"127.0.0.1:9999
<VirtualHost HYPERLINK "http://127.0.0.1:82"127.0.0.1:82>
AddDefaultCharset utf-8
ServerName www.yourdomain
DocumentRoot C:/ruby/dev/buildview2/public
ErrorDocument 500 /500.html
ErrorDocument 404 /404.html
# handle all requests throug SCGI
SCGIMount / HYPERLINK "http://127.0.0.1:9999"127.0.0.1:9999
# matches locations with a dot following at least one more characters,
that is, things like *,html, *.css, *.js, which should be delivered
directly from the filesystem
<LocationMatch \..+$>
# don''t handle those with SCGI
SCGIHandler Off
</LocationMatch>
<Directory C:/ruby/dev/buildview2/public/>
Options +FollowSymLinks
Order allow,deny
allow from all
</Directory>
</VirtualHost>
--
Peter Fitzgibbons
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/162 - Release Date: 11/5/2005
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/163 - Release Date: 11/8/2005
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails
Peter Fitzgibbons
2005-Nov-09 15:25 UTC
Re: SCGI / Apache 2 / Win32 not working / no output / help?
> > One thing I noticed is that when I run scgi_service the cmd session loses > all input control. scgi_ctrl monitor produces the periodic feedback, which I > believe is telling me that scgi is actually running. > > Alas, I am still getting "connection refused" on http://localhost:82 > > TRAC is installed and running correctly on 8080, so I have proof that > Apache is accepting the http.conf and running. > > Here''s my http.conf in its entirety :http://rafb.net/paste/results/ZLxdVH19.html -- Peter Fitzgibbons _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Rowan Hick
2005-Nov-10 00:37 UTC
RE: SCGI / Apache 2 / Win32 not working / no output / help?
Here’s my conf entries that I’ve added to get it running (almost verbatim
from a list post somewhere) Maybe you need the scgimount within your virtual
host entry ?
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule scgi_module modules/mod_scgi.so
<VirtualHost *:801>
ServerName localhost
DocumentRoot D:/minihaus.serv/testnerd/public
SCGIMount / 127.0.0.1:9999
<LocationMatch \..+$>
# don''t handle those with SCGI
SCGIHandler Off
</LocationMatch>
<Directory D:/minihaus.serv/testnerd/public>
Options +FollowSymLinks
Order allow,deny
allow from all
</Directory>
</VirtualHost>
_____
From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On
Behalf Of Peter Fitzgibbons
Sent: Thursday, November 10, 2005 4:25 AM
To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: Re: [Rails] SCGI / Apache 2 / Win32 not working / no output / help?
One thing I noticed is that when I run scgi_service the cmd session loses
all input control. scgi_ctrl monitor produces the periodic feedback, which
I believe is telling me that scgi is actually running.
Alas, I am still getting "connection refused" on HYPERLINK
"http://localhost:82" \nhttp://localhost:82
TRAC is installed and running correctly on 8080, so I have proof that Apache
is accepting the http.conf and running.
Here''s my http.conf in its entirety :
HYPERLINK
"http://rafb.net/paste/results/ZLxdVH19.html"http://rafb.net/paste/results/Z
LxdVH19.html
--
Peter Fitzgibbons
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/163 - Release Date: 11/8/2005
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.8/164 - Release Date: 11/9/2005
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails