From: Yehuda Sadeh-Weinraub <yehuda@redhat.com>
To: Tom Deneau <tom.deneau@amd.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: using radosgw with mod_proxy_fcgi
Date: Wed, 11 Feb 2015 20:10:28 -0500 (EST) [thread overview]
Message-ID: <211191187.4180548.1423703428235.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <BC97738F8E7C8742BABED7F06FB9DF915554B70A@SATLEXDAG01.amd.com>
----- Original Message -----
> From: "Tom Deneau" <tom.deneau@amd.com>
> To: ceph-devel@vger.kernel.org
> Sent: Wednesday, February 11, 2015 4:21:46 PM
> Subject: using radosgw with mod_proxy_fcgi
>
> I am a Ceph novice and have the rados and rbd setups working and would like
> to use the radosgw stack.
>
> I am running on a platform (aarch64) for which there are no pre-built
> binaries of the ceph patched apache and the ceph patched mod_fastcgi. But
> since I gather from the mail lists that the future is just to use
> mod_proxy_fcgi and since my apache install has mod_proxy_fcgi build in
> already that seems like the way to go.
>
> I realize the documentation to explain exactly how to set things up with
> mod_proxy_fcgi is still in the works but if there is any preliminary
> documentation on this, I'd be glad to try it out.
>
That's the apache site config that I was using:
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
LogLevel debug
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
# RewriteRule ^/(.*) /?%{QUERY_STRING} [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
SetEnv proxy-nokeepalive 1
ProxyPass / fcgi://127.0.01:9000/
#ProxyPass / unix:///tmp/.radosgw.sock|fcgi://localhost:9000/
</VirtualHost>
Note that there are two options here, and it really depends your apache version. For vanilla apache 2.4.8+ (or maybe 2.4.7+) you can use the regular unix domain socket setup (as described in the docs), just modify the path appropriately. For older apaches (2.4.0+) you need to use tcp for fastcgi, and that requires somewhat different rgw configuration, e.g. have the following in your ceph.conf:
rgw frontends = fastcgi socket_port=9000 socket_host=0.0.0.0
For apache 2.2 there's no mod-proxy-fcgi out of the box. I did backport that module, and you can find it here: https://github.com/ceph/mod-proxy-fcgi, but you'll need to compile it yourself at this point.
Note that mod-proxy-fcgi does not support 100-continue, so you'll need to add the following to your ceph.conf:
rgw print continue = false
Yehuda
next prev parent reply other threads:[~2015-02-12 1:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-12 0:21 using radosgw with mod_proxy_fcgi Deneau, Tom
2015-02-12 1:10 ` Yehuda Sadeh-Weinraub [this message]
2015-02-16 17:55 ` Deneau, Tom
2015-02-12 18:07 ` Ken Dreyer
2015-02-12 18:21 ` Deneau, Tom
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=211191187.4180548.1423703428235.JavaMail.zimbra@redhat.com \
--to=yehuda@redhat.com \
--cc=ceph-devel@vger.kernel.org \
--cc=tom.deneau@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.