doc: Updates radosgw man page.

Signed-off-by: Nilamdyuti Goswami <ngoswami@redhat.com>
This commit is contained in:
Nilamdyuti Goswami 2015-01-20 21:56:14 +05:30
parent db80e45df0
commit e5bc64bfa6

View File

@ -67,7 +67,7 @@ Options
Configuration
=============
Earlier RADOS Gateway had to configured with ``Apache`` and ``mod_fastcgi``.
Earlier RADOS Gateway had to be configured with ``Apache`` and ``mod_fastcgi``.
Now, ``mod_proxy_fcgi`` module is used instead of ``mod_fastcgi`` as the later
doesn't come under a free license. ``mod_proxy_fcgi`` works differently than a
traditional FastCGI module. This module requires the service of ``mod_proxy``
@ -96,14 +96,37 @@ Apache 2.4, needs to be configured for use with localhost tcp.
rgw frontends = fastcgi socket_port=9000 socket_host=0.0.0.0
#. Modify Apache's configuration file so that ``mod_proxy_fcgi`` can be used
with localhost tcp. ::
with localhost tcp.
Debian/Ubuntu::
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
LogLevel debug
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
SetEnv proxy-nokeepalive 1
ProxyPass / fcgi://127.0.01:9000/
</VirtualHost>
CentOS/RHEL::
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
LogLevel debug
@ -118,14 +141,35 @@ Apache 2.4, needs to be configured for use with localhost tcp.
</VirtualHost>
#. Modify Apache's configuration file so that ``mod_proxy_fcgi`` can be used
through unix domain socket. ::
through unix domain socket.
Debian/Ubuntu::
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
LogLevel debug
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
ProxyPass / unix:///tmp/.radosgw.sock|fcgi://localhost:9000/ disablereuse=On
</VirtualHost>
CentOS/RHEL::
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/error.log
CustomLog /var/log/httpd/access.log combined
LogLevel debug
@ -146,10 +190,17 @@ Apache 2.4, needs to be configured for use with localhost tcp.
ceph auth add client.radosgw.gateway --in-file=keyring.radosgw.gateway
#. Start Apache and radosgw. ::
#. Start Apache and radosgw.
/etc/init.d/apache2 start
/etc/init.d/radosgw start
Debian/Ubuntu::
sudo /etc/init.d/apache2 start
sudo /etc/init.d/radosgw start
CentOS/RHEL::
sudo apachectl start
sudo /etc/init.d/ceph-radosgw start
Usage Logging
=============