gpt4 book ai didi

php - 从 apache 服务器的 SSL 中排除/var/www/html 中的文件

转载 作者:太空宇宙 更新时间:2023-11-03 13:37:40 25 4
gpt4 key购买 nike

我在 /var/www/html 上有一个在 apache 上运行的家庭服务器,我还在 DocumentRoot/var/www/html 中创建了一个自签名 SSL /etc/apache2/sites-available/default-ssl.conf

如何从 SSL 中排除 html 中的文件,例如,我当前的服务器是 https://myserver.com,但我想使用 http://myserver.com/nossl/api.php

我应该在 nossl 文件夹的 .htaccess 中添加什么?

这是我当前用于排除身份验证的 .htaccess

<Files main.php>
AuthType none
Satisfy any

Order Allow,Deny
Allow from all
</Files>

最佳答案

因为我找不到任何直接的解决方案,我确实找到了一种使用 letsencrypt 的免费 SSL 方法。

在多台服务器上表现出色

关于php - 从 apache 服务器的 SSL 中排除/var/www/html 中的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34427248/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com