Re: using radosgw with mod_proxy_fcgi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message -----
> From: "Tom Deneau" <tom.deneau@xxxxxxx>
> To: ceph-devel@xxxxxxxxxxxxxxx
> 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


--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux