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
    • 最新
    • 标签
主页 / server / 问题 / 744091
Accepted
a coder
a coder
Asked: 2015-12-19 13:06:35 +0800 CST2015-12-19 13:06:35 +0800 CST 2015-12-19 13:06:35 +0800 CST

从 Apache 2.2 迁移到 2.4,忽略 ssl.conf

  • 772

我正在使用 Apache 2.4 推出 EL7 的测试安装。我将现有的复制/etc/httpd/conf.d/ssl.conf到新系统,设置 selinux,验证所有证书路径都是 kosher 并systemctl httpd start启动服务。Apache 运行无错误。

问题是我的 ssl.conf 文件被忽略了。我正在使用默认的 Apache 页面

我尝试移动/etc/httpd/conf.d/ssl.conf到/etc/httpd/conf.modules.d/(首先删除现有的 00-ssl.conf 文件),结果相同。

我在哪里弄错了?

编辑 1 错误日志显示:

AH01630: client denied by server configuration: /www/virtualhosts/example.com

我的 ssl 配置有这个:

DocumentRoot /www/virtualhosts/example.com

和

ll /www/virtualhosts/example.com
total 4
-rw-r--r--. 1 apache apache 21 Dec 18 14:32 index.php

index.php 包括:

<p>Hello World

我不知所措。

apache-2.4
  • 1 1 个回答
  • 820 Views

1 个回答

  • Voted
  1. Best Answer
    a coder
    2015-12-19T13:35:40+08:002015-12-19T13:35:40+08:00

    知道了。Apache 2.4 具有额外的安全特性。我需要将其添加到 /etc/httpd/conf/http.conf并重新启动服务。

    <Directory "/www/virtualhosts/example.com">
            Options Indexes FollowSymLinks
            AllowOverride None
            Require all granted
    </Directory>
    

    我可以危害网站。

    此外,我将默认的 00-ssl.conf 文件移回原位 ( /etc/httpd/conf.modules.d/),并移ssl.conf回/etc/httpd/conf.d/ssl.conf.

    重新启动服务,一切都还好。

    • 2

相关问题

  • SELinux 阻止 Apache 写入文件

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