* using radosgw with mod_proxy_fcgi
@ 2015-02-12 0:21 Deneau, Tom
2015-02-12 1:10 ` Yehuda Sadeh-Weinraub
2015-02-12 18:07 ` Ken Dreyer
0 siblings, 2 replies; 5+ messages in thread
From: Deneau, Tom @ 2015-02-12 0:21 UTC (permalink / raw)
To: ceph-devel@vger.kernel.org
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.
-- Tom Deneau, AMD
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: using radosgw with mod_proxy_fcgi
2015-02-12 0:21 using radosgw with mod_proxy_fcgi Deneau, Tom
@ 2015-02-12 1:10 ` Yehuda Sadeh-Weinraub
2015-02-16 17:55 ` Deneau, Tom
2015-02-12 18:07 ` Ken Dreyer
1 sibling, 1 reply; 5+ messages in thread
From: Yehuda Sadeh-Weinraub @ 2015-02-12 1:10 UTC (permalink / raw)
To: Tom Deneau; +Cc: ceph-devel
----- 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
^ permalink raw reply [flat|nested] 5+ messages in thread* RE: using radosgw with mod_proxy_fcgi
2015-02-12 1:10 ` Yehuda Sadeh-Weinraub
@ 2015-02-16 17:55 ` Deneau, Tom
0 siblings, 0 replies; 5+ messages in thread
From: Deneau, Tom @ 2015-02-16 17:55 UTC (permalink / raw)
To: Yehuda Sadeh-Weinraub; +Cc: ceph-devel@vger.kernel.org
So if I have Apache 2.4.9+, would I use
ProxyPass / unix:///tmp/.radosgw.sock|fcgi://localhost:9000/
and in ceph.conf use
rgw socket path = /tmp/.radosgw.sock
If so, how does the radosgw process know about port 9000?
Or do I need a "rgw frontends" statement to specify that?
-- Tom
-----Original Message-----
From: Yehuda Sadeh-Weinraub [mailto:yehuda@redhat.com]
Sent: Wednesday, February 11, 2015 7:10 PM
To: Deneau, Tom
Cc: ceph-devel@vger.kernel.org
Subject: Re: using radosgw with mod_proxy_fcgi
----- 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: using radosgw with mod_proxy_fcgi
2015-02-12 0:21 using radosgw with mod_proxy_fcgi Deneau, Tom
2015-02-12 1:10 ` Yehuda Sadeh-Weinraub
@ 2015-02-12 18:07 ` Ken Dreyer
2015-02-12 18:21 ` Deneau, Tom
1 sibling, 1 reply; 5+ messages in thread
From: Ken Dreyer @ 2015-02-12 18:07 UTC (permalink / raw)
To: Deneau, Tom, ceph-devel@vger.kernel.org
On 02/11/2015 05:21 PM, Deneau, Tom wrote:
> 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.
Hi Tom,
The ceph-patched Apache had numerous outstanding CVEs, and I discourage
users from running it any more. The distro-supplied Apache should be
suitable. We're still working to update our docs regarding this.
What distribution are you running on aarch64, by the way? Dan or I are
probably the ones who are going to be packaging mod_proxy_fcgi for
Apache 2.2, so I'm curious to know what users are running.
- Ken
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: using radosgw with mod_proxy_fcgi
2015-02-12 18:07 ` Ken Dreyer
@ 2015-02-12 18:21 ` Deneau, Tom
0 siblings, 0 replies; 5+ messages in thread
From: Deneau, Tom @ 2015-02-12 18:21 UTC (permalink / raw)
To: Ken Dreyer, ceph-devel@vger.kernel.org
Ken --
I am running httpd-2.4.10-9
I was able to get a conf set up to do a ProxyPass to a PHP-FPM with this command
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/mysite/$1
and that worked. (executing a phpinfo() script showed the Fastcgi connection)
I'm still working on the radosgw setup.
By the way, the page that talked about setting things up for the PHP-FPM
also had this Directory record in the conf file. Do we need anything of that
sort for radosgw?
<Directory "/var/www/mysite">
Order allow,deny
Allow from all
AllowOverride FileInfo All
# New directive needed in Apache 2.4.3:
Require all granted
</Directory>
-- Tom
-----Original Message-----
From: Ken Dreyer [mailto:kdreyer@redhat.com]
Sent: Thursday, February 12, 2015 12:08 PM
To: Deneau, Tom; ceph-devel@vger.kernel.org
Subject: Re: using radosgw with mod_proxy_fcgi
On 02/11/2015 05:21 PM, Deneau, Tom wrote:
> 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.
Hi Tom,
The ceph-patched Apache had numerous outstanding CVEs, and I discourage users from running it any more. The distro-supplied Apache should be suitable. We're still working to update our docs regarding this.
What distribution are you running on aarch64, by the way? Dan or I are probably the ones who are going to be packaging mod_proxy_fcgi for Apache 2.2, so I'm curious to know what users are running.
- Ken
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-02-16 17:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-12 0:21 using radosgw with mod_proxy_fcgi Deneau, Tom
2015-02-12 1:10 ` Yehuda Sadeh-Weinraub
2015-02-16 17:55 ` Deneau, Tom
2015-02-12 18:07 ` Ken Dreyer
2015-02-12 18:21 ` Deneau, Tom
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.