问题描述
我正在尝试设置使用HTTP端口8008的Synapse服务器。对于使用TLS加密的连接,建议使用反向代理。我决定选择Apache,并按照Synapse's install-guide within its GitHub repo中的说明进行了所有操作。
但是,当启用稍后在Apache中显示的配置并重新加载systemctl时,代理将无法正常工作。搜索my.matrix.server:8008时,我得到了Synapse服务器的静态状态页面。仅搜索https://my.matrix.server时,会得到默认的Ubuntu Apache页面。
我禁用了000个默认站点,唯一启用的站点是我的synapse.config。
启用的(和相关的)a2mod是ssl和proxy。
我想念的是什么?既然在这里所有类似的问题中都可以找到该配置文件,所以我要打开另一个。感谢您的支持!
<VirtualHost *:443>
SSLEngine On
ServerName my.matrix.server
AllowEncodedSlashes NoDecode
ProxyPass /_matrix http://127.0.0.1:8008/_matrix nocanon
ProxyPassReverse /_matrix http://127.0.0.1:8008/_matrix
ProxyPass /_synapse/client http://127.0.0.1:8008/_synapse/client nocanon
ProxyPassReverse /_synapse/client http://127.0.0.1:8008/_synapse/client
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/my.matrix.server/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/my.matrix.server/privkey.pem
</VirtualHost>
<VirtualHost *:8448>
SSLEngine On
ServerName my.matrix.server
AllowEncodedSlashes NoDecode
ProxyPass /_matrix http://127.0.0.1:8008/_matrix nocanon
ProxyPassReverse /_matrix http://127.0.0.1:8008/_matrix
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/my.matrix.server/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/my.matrix.server/privkey.pem
</VirtualHost>
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)