3

我想让 TURN 服务器在反向代理后面可访问,以便使用端口 443 来避免公共 wifi 网络上的端口被阻塞等问题。

coturn 是这样配置的:

listening-port=8443
listening-ip=127.0.0.1
relay-ip=<public-ip-of-the-turn-server>                                                        
lt-cred-mech
use-auth-secret
static-auth-secret="secret"
realm=myturnserver.org
total-quota=0
bps-capacity=0
log-file=/var/log/turn.log

并且 apache 服务器配置如下所示:

<VirtualHost *:443>

    ServerName myturnserver.org
ServerAdmin root@myturnserver.org
DocumentRoot /var/www/html                                                                                                                

ErrorLog ${APACHE_LOG_DIR}/myturnserver.org.error.log
CustomLog ${APACHE_LOG_DIR}/myturnserver.org.access.log combined

SSLCertificateFile /etc/letsencrypt/live/myturnserver.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/myturnserver.org/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf

ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8443/
ProxyPassReverse / http://127.0.0.1:8443/

</VirtualHost>

但我无法连接到转弯服务器。任何想法这里有什么问题?

4

0 回答 0