[英]Exclude a file in /var/www/html from SSL in apache server
I have a home server running on apache at /var/www/html
, I also created a self signed SSL at DocumentRoot /var/www/html
in /etc/apache2/sites-available/default-ssl.conf
我在
/var/www/html
apache上运行了家庭服务器,还在/etc/apache2/sites-available/default-ssl.conf
DocumentRoot /var/www/html
处创建了自签名SSL。
How can I exclude a file within html
from SSL, for example, my current server is https://myserver.com
, but I want to use http://myserver.com/nossl/api.php
如何从SSL排除
html
的文件,例如,我当前的服务器是https://myserver.com
,但是我想使用http://myserver.com/nossl/api.php
What should I add in .htaccess of that nossl
folder? 我应该在该
nossl
文件夹的.htaccess中添加什么?
This is my current .htaccess to exclude authentication 这是我当前的.htaccess排除身份验证
<Files main.php>
AuthType none
Satisfy any
Order Allow,Deny
Allow from all
</Files>
Since I can't find any direct solution to this, I did find a way of free SSL using letsencrypt 由于找不到任何直接的解决方案,所以我确实找到了使用letencrypt的免费SSL的方法
Working great on multiple servers 在多台服务器上都能正常工作
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.