Displaying 20 results from an estimated 4000 matches similar to: "Pass env var from Apache to Mongrel?"
2006 Feb 22
1
Urgent help needed
Hi,
I''m on Apache 2.0.54, Linux Fedora Core 2 with Plesk.
I installed a Rails application previously on the box using SCGI and
it works fine; even now.
I''m trying to get a second app online and it fails. Same config,
except for the SCGI runner ports of course.
It looks like the error comes from the fact that the mod_rewrite
loops. WHY ???
BTW : I have to put this app
2006 Aug 04
0
Re: Passing env var from Apache to Mongrel
Hi Yan,
If you just need to access the env var which doesn''t change like
SERVER_NAME, you should be able to access it directly using "request".
However, if your env var is dynamicly set, you can try my way.
I use mod_rewrite to proxy to Mongrel. In your httpd.conf (you need mod_header)
RequestHeader set X_YOUR_ENV your_value
And in Rails access it by
2008 Sep 23
5
Problem getting Rails to emit the correct (proxy) domain in route urls
Behind the scenes my app runs like this:
http://myapp.mydomain.com/myapp and
and
https://myapp.mydomain.com/myapp
are Apache 2.2 virtual hosts proxy-balanced to a mongrel cluster
on the same machine.
But I need to make these available here:
https://www.mydomain.com/myapp
and
https://myapp.mydomain.com/myapp
are on a second server using ProxyPass and ProxyPassReverse to
2006 Feb 28
6
scgi+lighttpd+windows - why wont it work?
two problems, pls help...I''m under big pressure at work to fix this!
I''m having trouble getting scgi and lighttpd running on windows - here''s
what I did:
On Win XP, I installed ruby, rubygems, and setup my rails app. All works
fine with webrick.
I then did: gem install cmdparse and gem install highline (as required
for the scgi_rails gem according to
2006 May 19
12
Mongrel/Apache and static content
I''m looking for an easy way to have mongrel only serve dynamic railscontent, while letting Apache serve non-Rails content. Unfortunately,it seems that you have to segregate the static content in its ownfolder. That was also the case with the SCGI runner. I used thetrick outlined athttp://comments.gmane.org/gmane.comp.lang.ruby.rails/23347 to managethis. I was curious if a similar
2006 Jun 04
1
Problem with images on Apache and Lighttpd
Hello.
Since two days I am trying to set up two rails-apps on a vserver-host so
that I can access from work ;-)
I tried all I can imagine and what Google/MSN teached me: FastCGI, SCGI,
Lighttpd, Apache, Alias, Vhosts,....
But nothing really works. I am on Debian 3.1 with Ruby 1.8.4, Rails
1.1.2, FastCGI 2.4.0, mod_fastcgi 2.4.2, ruby_fcgi 0.8.6, ruby_gems
0.8.11, Apache 2.0.54, Lighttpd
2005 Oct 10
1
Need help from Apache mod_rewrite crew !
Hi !
Has anyone got any tips/tricks on running a Productized Rails app on
DreamHost ?
Specifically, I get this in my error.log:
-----------
[Mon Oct 10 11:39:46 2005] [error] [client 69.70.225.69]
mod_rewrite: maximum number of internal redirects reached. Assuming
configuration error. Use ''RewriteOptions MaxRedirects'' to increase the
limit if neccessary.
-----------
As
2007 Nov 23
2
Unable to read anything from request.remote_ip
For some users, request.remote_ip always return nil. According to the
RAILS''s help:
REMOTE_ADDR is the standard but will fail if the user is behind a proxy.
HTTP_CLIENT_IP and/or HTTP_X_FORWARDED_FOR are set by proxies so check
for these before falling back to REMOTE_ADDR. HTTP_X_FORWARDED_FOR may
be a comma- delimited list in the case of multiple chained proxies; the
first is the
2009 Sep 17
1
[PATCH server] oVirt server single network installer
Updates the installer to handle the scenario in which the guest and
admin networks are the same by using an alternative httpd conf.
Verified to work (eg oVirt managed vms are bootable) on the
oVirt appliance so far.
---
conf/ovirt-server.conf | 88 --------------------
installer/bin/ovirt-installer | 11 +--
2006 Mar 31
2
AAARGH! Need some fresh eyes to look at this pls
I just switched my rails app over to production mode, couldn''t get it
working, switched it back to development mode, and now nothing gets
outputted in the browser. I''m sure I''ve missed something in the configs.
Setup: Lighttpd/SCGI on WinXP, Rails 1.0.
Environment.rb:
ENV[''RAILS_ENV''] ||= ''development''
require
2008 Aug 20
4
mod_proxy, mongrel, redirect issue
Hello,
I am configuring apache 2.2 to serve my rails app through mongrel at
the root of my server. First, I redirect all http traffic to https
with the following:
ServerName emiliano
NameVirtualHost *:80
<VirtualHost *:80>
RedirectPermanent / https://emiliano #this server is only accessed internally
</VirtualHost>
Inside the <VirtualHost *:443> section, I have the following
2006 Oct 03
4
Apache Re-Write and Directories
Howdy,
I am using the ''default'' Apache 2.2 mod_rewrite rules suggested from the Web
site and they are working.
One thing related to static (non cluster directed) resources:
If I have a directory in public called ''static'', if I request it as follows:
http://www.domain.com/static/ - then it works
If I request it as:
http://www.domain.com/static - then it
2006 May 08
10
Apache 2.2, ProxyPass and HTTPS
Hi all,
I''m currently trying to get Mongrel running my app whilst fronted by
apache 2.2 in a sub-directory via https. A bit convoluted I''ll grant
you but necessitated by existing systems.
The pertinent parts of my httpd.conf:
<VirtualHost 123.123.123.123:12345> #historic choice of random port number
DocumentRoot /var/www/admin
ServerName admin.example.com:12345
2008 Mar 31
3
how to get mongrel to use maintenance.html file?
Does someone know how to tell mongrel_rails to read the
public/system/maintenance.html file?
--
Posted via http://www.ruby-forum.com/.
2006 Mar 16
0
RewriteRule with scgi on Apache 2
Hi.
I am trying to run RubyOnRails with scgi on RedHat ES4.
I want to direct all access of "/" to index.html
I do have DirectoryIndex in httpd.conf.
But after I run RubyOnRails, the configuration stopped working.
I tried many things, but it doesn''t work.
Like:
RewriteRule ^$ index.html [QSA]
RewriteRule ^/$ /var/www/public/index.html [R]
If I access /index.html, everything
2007 Jan 25
6
NOT FOUND error
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
2005 Dec 30
2
scgi apache routes help needed
I''m trying to get an application running in a sub directory of a site using
apache and scgi. The application runs fine with webrick.
I have a site. Let''s call it "mysite.org". There is a variety of content on
that site.
I would like to add a rails application to that site. Let''s call the
application "myapp".
So we will have urls of the form
2007 Dec 13
1
mod_proxy_balancer mod_rewrite permission issue
I started the mongrel_cluster and tried to use the RewriteRule to forward
the requests to proxy_balancer just as the
http://mongrel.rubyforge.org/docs/apache.html said.
When I visited my site from a remote computer, I always got the error
messages "Forbidden, You don''t have permission to access / on this server."
Finally, I added the "Allow from all" property (in the
2009 Jun 22
1
Action caching with multiple domains
I have recently setup some action caching in my Rails app and everything
seems to be working fine. I am using file store pointing at /tmp/cache. The
problem I am running into is that separate cache directories are being
created for different domain names that point at the same server. For
example mysite.com and www.mysite.com will have different cache directories.
It seems like it should be easy
2006 Sep 26
5
Expert feedback needed
Hello list,
Some time ago I was looking for apache (as non balanced proxy) +
mongrel configurations. Almost everybody seemed to use similar
approaches (one of these could be found @ mongrel.rubygorge.org docs)
with mod_rewrite. I don''t use proxy_balancer because I don''t need it
at the moment (my site has pretty low traffic). This is apache
configuration that I''m using