反向代理后面的TURN服务器

时间:2019-12-24 21:59:00

标签: apache reverse-proxy turn coturn

我想使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>

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

0 个答案:

没有答案