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

German Online Publisher's questions

Martin Hope
German Online Publisher
Asked: 2023-10-25 01:17:45 +0800 CST

从 https-URL 请求重定向到 http-服务器 IP 不起作用

  • 5

在我的 Apache 2.4 服务器配置虚拟主机文件的第二次调用中,我有:

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName 51.89.98.21
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^http://51.89.98.21$1 [NC]
    RewriteRule ^(.*)$ http://51.89.98.21/ [R=permanent,END,QSA]            
</VirtualHost>

第三个配置虚拟主机是这个(部分):

<VirtualHost *:443>
   ServerAdmin  [email protected]
   ServerName   www.developmentscout.com
   ServerAlias  developmentscout.com   
   UseCanonicalName Off
   DocumentRoot "/var/www/vhosts/developmentscout.com/htdocs"
   
RewriteEngine On

RewriteCond %{REQUEST_URI} ^\.well\-known [NC,OR]
RewriteCond %{HTTP_HOST} ^developmentscout.com$ [NC]
RewriteRule ^ https://www.developmentscout.com%{REQUEST_URI} [END,QSA,R=permanent]

SSLEngine on
SSLCertificateKeyFile /etc/letsencrypt/live/developmentscout.com-0002/privkey.pem
SSLCertificateFile /etc/letsencrypt/live/developmentscout.com-0002/cert.pem
SSLCertificateChainFile /etc/letsencrypt/live/developmentscout.com-0002/chain.pem
...

https://51.89.98.21/industrie/automatisierung/ipc/11315-edge-computing的链接 应重定向到http://51.89.98.21但我重定向到:http://51.89.98.21/industrie/ automatisierung/ipc/11315-edge-computing,它向我显示“真实”页面的内容。

第二个虚拟主机永远无法到达,因为在日志中我有以下内容:

[Tue Oct 24 18:44:23.156932 2023] [ssl:debug] [pid 8958:tid 140379014039296] ssl_engine_kernel.c(383): [client 98.58.102.21:64004] AH02034: 后续 (No.3) HTTPS收到的请求子22272(服务器www.developmentscout.com:443),参考: https: //51.89.98.21/industrie/automatisierung/ipc/11315-edge-computing

显然,https 请求转到了错误的 URL,该 URL 调用了错误的 SSL 证书,然后使用了 http 连接并显示了内容。

我尝试使用 Letsencrypt 创建 SSL 证书,但这对于 IP 来说是不可能的。因此,任何如何解决这个问题的建议都会很棒。

更新:与此同时,我已经为 51.89.98.21 创建了一个自签名证书。(默认之后的第二个)虚拟主机是:

    <VirtualHost *:443>
        ServerAdmin [email protected]
        ServerName 51.89.98.21
        SSLEngine on
        SSLCertificateKeyFile /etc/ca-certificates/key.pem
        SSLCertificateFile /etc/ca-certificates/cert.pem
        RewriteEngine On
        RewriteCond %{HTTP_HOST} ^51.89.98.21/$ [NC]
        RewriteRule ^ https://51.89.98.21/ [END,QSA,R=permanent]
        DocumentRoot /var/www/server3           
    </VirtualHost>

当我调用此 URL:https://51.89.98.21/branche/automobil/11819-e-auto-laden-ladestecker-ladekabel时 ,我得到了 Not Found 404。

debian
  • 1 个回答
  • 52 Views
Martin Hope
German Online Publisher
Asked: 2023-10-23 06:50:34 +0800 CST

从自己的域创建的奇怪反向链接

  • 5

在 Ahrefs 中,我注意到,我的一个网页有奇怪的(数千个)反向链接,这些反向链接来自四个自己的域(以及来自我自己的专用服务器的一个 IP)。

例如:这个URL(这是可疑的)

https://florida-paintings.art/industrie/verbindungstechnik/kleben/10314-dosierung-von-1k-acrylatklebstoff-mit-komplexen-dichtraupengeometrien

是这个的反向链接:

https://www.developmentscout.com/industrie/messtechnik/11934-caq-system

另一个例子:这个 URL(这是可疑的)

https://51.89.98.21/branche/gebaeudetechnik/11720-smart-panel-okw-gehaeuse

是这个的反向链接:

https://www.developmentscout.com/branche/mobile-arbeitsmaschine/11919-profi-drohne

奇怪的是,所有可疑的 URL 都有一个规范标签,而不是“正确”的标签,而是一个对其自己的 URL 的自引用标签。

我的域名的管理是通过OVH的DNS服务器实现的。

我不知道“谁”(CMS Joomla、Debian、ISP 等)正在生成所有这些 URL。因此,如果有人有想法,我将非常感激!

谢谢詹斯

apache2
  • 2 个回答
  • 111 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