AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-56218

Jack Slingerland's questions

Martin Hope
Jack Slingerland
Asked: 2021-10-03 17:05:44 +0800 CST

Ceph 连接到本地节点

  • 0

我对要构建的应用程序有一个想法,其中一个要求是全局复制的文件系统。存在像 Ceph 和 GlusterFS 这样的东西,但我不确定它们是否符合我的特定用例。

  • 假设我在 3 个不同的地区 [美国、欧洲、亚洲] 有 3 个应用服务器
  • 然后我有一个 3 节点 Ceph 设置,在每个区域 [美国、欧洲、亚洲] 有 1 个节点
  • 我可以让每个应用服务器直接连接到他们所在区域的 Ceph 节点,还是必须通过一些集中的编排节点?

我问是因为我想将文件系统延迟保持在最低限度,并且只使用 Ceph 来同步所有节点之间的更改。如果我不能直接连接到“本地”节点,我认为延迟会非常高。

任何帮助理解这一点将不胜感激!

ceph
  • 1 个回答
  • 60 Views
Martin Hope
Jack Slingerland
Asked: 2014-10-09 04:02:14 +0800 CST

Nginx HTTPS www 到非 www 重定向问题

  • 2

我在使用我的 nginx 配置从 HTTPS www 重定向到 HTTPS 非 www 时遇到了一些问题。我正在按照(删除“www”并使用 nginx 重定向到“https”)提供的说明进行操作。

现在进行以下工作:

  • http://www.redemfit.com -> https://redemfit.com
  • http://redemfit.com -> https://redemfit.com
  • https://redemfit.com

但这不会:

  • https://www.redemfit.com -> https://redemfit.com

我最终得到“欢迎使用 nginx!” 页。我也没有任何其他 nginx 配置文件/sites-enabled。任何想法为什么它可能会这样做?

我的配置文件如下。

upstream redemfit {
    server unix:/srv/redemfit/run/gunicorn.sock fail_timeout=0;
}

server {
    listen         80;
    server_name    www.redemfit.com redemfit.com;
    rewrite        ^ https://redemfit.com$request_uri? permanent;
}

server {
    listen 443;
    ssl on;
    ssl_certificate /etc/ssl/private/redemfit-bundle.crt;
    ssl_certificate_key /etc/ssl/private/redemfit.key;
    ssl_protocols SSLv3 TLSv1;
    ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;
    server_name www.redemfit.com
    rewrite ^ https://redemfit.com$request_uri? permanent;
}

server {
    listen   443;

    ssl on;
    ssl_certificate /etc/ssl/private/redemfit-bundle.crt;
    ssl_certificate_key /etc/ssl/private/redemfit.key;
    ssl_protocols SSLv3 TLSv1;
    ssl_ciphers ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM;

    server_name redemfit.com;

    client_max_body_size 4G;

    access_log /srv/redemfit/logs/nginx-access.log;
    error_log /srv/redemfit/logs/nginx-error.log;

    gzip on;
    gzip_disable "msie6";

    gzip_vary on;
    gzip_proxied any;
    gzip_comp_level 6;
    gzip_buffers 16 8k;
    gzip_http_version 1.1;
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

    location /static {
        auth_basic off;
        root /srv/redemfit/static_collected;
    }

    location / {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_redirect off;

        if (!-f $request_filename) {
            proxy_pass http://redemfit;
            break;
        }
    }
}
nginx
  • 1 个回答
  • 3533 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve