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-138346

Paolo Benvenuto's questions

Martin Hope
Paolo Benvenuto
Asked: 2022-02-18 19:05:40 +0800 CST

升级到 2.2 版时 haproxy 不工作(reqadd 不再存在)

  • 0

[我错误地在stackoverflow上发布了这个问题]

在我的 debian buster 服务器上,我有一个完美运行的 haproxy (v1.8),我用它来管理我的网站的证书。

haproxy 监听 443 端口,并将请求传递给 varnish+apache 系统。

升级到 debian Bullseye 时,haproxy (v2.2) 服务不再启动,并且日志显示:

haproxy[46308]: [ALERT] 048/004148 (46308) : parsing [/etc/haproxy/haproxy.cfg:46] : The 'reqadd' directive is not supported anymore since HAProxy 2.1. Use 'http-r
equest add-header' instead.

负责此行为的 haproxy.cfg 行是

frontend https
# Bind 443 with the generated letsencrypt cert.
        bind *:443 ssl crt /etc/letsencrypt/live/qumran2/haproxy.pem
        # set x-forward to https
        reqadd X-Forwarded-Proto:\ https                  <-----------|
        # set X-SSL in case of ssl_fc <- explained below
        http-request set-header X-SSL %[ssl_fc]
        # Select a Challenge
        acl letsencrypt-acl path_beg /.well-known/acme-challenge/
        # Use the challenge backend if the challenge is set
        default_backend www-backend

我知道我必须换reqadd X-Forwarded-Proto:\ https行,但是怎么做?

文档说:

http-request add-header <name> <fmt> [ { if | unless } <condition> ]
This appends an HTTP header field whose name is specified in <name> and
whose value is defined by <fmt> which follows the log-format rules (see
Custom Log Format in section 8.2.4). This is particularly useful to pass
connection-specific information to the server (e.g. the client's SSL
certificate), or to combine several headers into one. This rule is not
final, so it is possible to add other similar rules. Note that header
addition is performed immediately, so one rule might reuse the resulting
header from a previous rule.

我不明白我应该如何写等价的http-request add-header......

https haproxy
  • 1 个回答
  • 820 Views
Martin Hope
Paolo Benvenuto
Asked: 2019-12-13 05:48:01 +0800 CST

英镑的 Debian 破坏者

  • 0

我有一个 debian jessie 服务器,在那里我可以管理 https 请求并将它们转发到 varnish + apache。我将服务器升级到 buster,一切正常。

现在我正在将服务器迁移到更强大的新服务器,并且我正在安装所需的服务,但我看到英镑不在 debian buster 中。

我怎么解决这个问题?我可以从 debian sid 存储库安装磅吗?或者也许来自 jessie 存储库?

我可以尝试哪些其他解决方案?

pound
  • 1 个回答
  • 215 Views
Martin Hope
Paolo Benvenuto
Asked: 2015-07-25 12:47:23 +0800 CST

Apache 2.4 和 server-info 身份验证访问

  • 0

我想在我的 apache 2.4 (debian jessie) 安装上设置 /server-info。

我想通过身份验证过程授予对服务器信息的访问权限,就像我可以通过 .htaccess 文件定义的那样,但我找不到应该放置必要文件的目录。

是否可以通过用户名密码访问服务器信息?

apache-2.4
  • 1 个回答
  • 117 Views
Martin Hope
Paolo Benvenuto
Asked: 2015-05-28 01:16:49 +0800 CST

在 debian 服务器上的 php 中运行 unoconv 的最佳方法是什么?

  • 3

我有一个 php 脚本,我需要在其中将 doc 文档转换为 html 文件,以便在网页中显示它们。

我正在使用 php 命令进行转换:

exec ( $Command, $Output, $ReturnValue ) ;

在哪里

$Command = "/usr/bin/timeout -s 9 $TimeOut /usr/bin/unoconv -f html -o " . escapeshellarg($Dir) . " " . escapeshellarg($File) ;

显然一切运行良好,但有时该过程并没有结束,我仍然有数百个浪费内存并肯定会使服务器崩溃的进程soffice.bin。unoconvoosplash

我错过了什么吗?

有没有更好的调用方式unoconv?

我应该将unoconv服务器作为系统服务运行吗?

我正在使用:LibreOffice 3.5、Unoconv 0.5、apache 2.2.22-13+deb7u4

php
  • 2 个回答
  • 5842 Views
Martin Hope
Paolo Benvenuto
Asked: 2013-10-11 06:47:18 +0800 CST

双 debian 服务器

  • 3

我有两个 debian 服务器,第一个是运行的(主),后者是出于安全目的。

我想让第二台服务器像第一台的双胞胎一样,不断地同步它,以便在第一台出现任何故障时切换到它。

我正在考虑每天晚上同步它们,这样:

  • 同步包,如https://stackoverflow.com/questions/187629/how-do-i-preserve-installed-applications-when-migrating-ubuntu-to-another-platfo
  • rsync 所有 /var/www 的东西(不包括缓存目录)
  • rsync 所有 /etc/ 目录

在 rsync 脚本中,我对 IP 进行了控制,仅当我在主服务器上时才会激活脚本。

我的问题是在所有这些过程中我应该关心什么:

  • 也许某些 /etc/ 文件要从同步中排除?密码和影子?但我想让一些新用户从主服务器传播到从服务器
  • 也许其他一些目录要同步?

任何帮助表示赞赏!

debian
  • 3 个回答
  • 104 Views
Martin Hope
Paolo Benvenuto
Asked: 2012-09-26 03:07:14 +0800 CST

Windows 相当于 linux ssh -X 服务器命令

  • 4

我有一个 linux 服务器,我从我的 linux 客户端在服务器上运行一个图形应用程序,该应用程序在客户端上发布

ssh -X 服务器命令

命令是一个 gnome 应用程序

有没有办法从 Windows 客户端执行相同的操作?

谢谢您的帮助!

windows
  • 2 个回答
  • 841 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