samwafgo / SamWaf

SamWaf开源轻量级网站防火墙,完全私有化部署 SamWaf is a lightweight, open-source web application firewall for small companies, studios, and personal websites. It supports fully private deployment, encrypts data stored locally, is easy to start, and supports Linux and Windows 64-bit.
https://doc.samwaf.com
Apache License 2.0
302 stars 47 forks source link

[Bug] https配置不生效 #11

Closed xieyuhua closed 4 weeks ago

xieyuhua commented 4 weeks ago

产品版本

20241011(v1.3.6)

版本类型

环境信息

宝塔 nginx 站点端口 http 80 , https 444 图片配置不生效,是什么原因呢

🐛 缺陷描述

1728952980455

期望结果

No response

补充信息

No response

welcome[bot] commented 4 weeks ago

Thanks for opening your first issue here! Be sure to follow the issue template!

samwafgo commented 4 weeks ago

SamWaf这边如果是443 ,而且配置证书, 后端的端口改成80

xieyuhua commented 4 weeks ago

我打错了,宝塔的nginx 的配置80端口改成81,443改成了444,然后后台配置https时候端口配置443,后端端口改成的444、81,请求不得行

samwafgo commented 4 weeks ago

我打错了,宝塔的nginx 的配置80端口改成81,443改成了444,然后后台配置https时候端口配置443,后端端口改成的444、81,请求不得行

SamWaf配置443和80,后端端口都配置成81就行

xieyuhua commented 4 weeks ago

image

[root@VM-16-5-centos go]# netstat -aonlp | grep 443 tcp6 0 0 :::443 :::* LISTEN 3271/SamWafLinux64 off (0.00/0/0)

xieyuhua commented 4 weeks ago

image

选了证书之后,这个样配置不行

samwafgo commented 4 weeks ago

看下 :系统设置->运行参数->当前web端口使用列表 这里面是什么了

xieyuhua commented 4 weeks ago

谢谢,可以了,是443被另外一个SamWaf占用,没有杀干净