Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use tenine/nginx to replace apache2 to realize rgw Front end

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use tenine/nginx to replace apache2 to achieve rgw front-end, the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.

Nginx configuration

Root@demo:~# cat / usr/local/nginx/conf/nginx.conf worker_processes 1; events {worker_connections 1024;} http {include mime.types; default_type application/octet-stream; client_max_body_size 0; sendfile on; keepalive_timeout 65; # gzip on Server {listen 80; server_name demo.ceph.work; # access_log logs/host.access.log main; location / {fastcgi_pass_header Authorization; fastcgi_pass_request_headers on; fastcgi_param QUERY_STRING $query_string Fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param CONTENT_TYPE $content_type; if ($request_method = PUT) {rewrite ^ / PUT$request_uri;} include fastcgi_params Fastcgi_pass unix:/var/run/ceph/ceph-client.radosgw.sock;} location / PUT/ {internal; fastcgi_pass_header Authorization; fastcgi_pass_request_headers on; include fastcgi_params Fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param CONTENT_TYPE $content_type; fastcgi_pass unix:/var/run/ceph/ceph-client.radosgw.sock;}}

Ceph configuration

[client.radosgw.cn-master-1] rgw dns name = demo.ceph.work rgw frontends = fastcgi host = demo keyring = / etc/ceph/ceph.client.radosgw.keyring rgw socket path = / var/run/ceph/ceph-client.radosgw.sock log file = / var/log/ceph/radosgw.log rgw print continue = false rgw content length compat = true

On how to use tenine/nginx to replace apache2 to achieve rgw front-end sharing here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report