trojan icon indicating copy to clipboard operation
trojan copied to clipboard

使用wiki中的修改网页端口的方法无效

Open Jerry-Young-23 opened this issue 2 years ago • 2 comments

我使用的命令: vim /etc/systemd/system/trojan-web.service 然后在/etc/systemd/system/trojan-web.service后面加上-p 12345后运行wiki上的两行命令 systemctl daemon-reload systemctl restart trojan-web 但是却无法通过网页https://domain.com:12345打开web管理界面

Jerry-Young-23 avatar Oct 17 '22 14:10 Jerry-Young-23

这样更改后仅可以使用 http(不加ssl)访问; 如果想要使用https访问,需要继续修改trojan配置文件: vi /usr/local/etc/trojan/config.json 更改 "remote_port": 80中的80端口为新设置的网页端口(你的例子中为12345),保存后重启trojan: trojan restart

freedgw avatar Oct 18 '22 14:10 freedgw

真不错啊 谢谢分享

akudamatata avatar May 22 '23 01:05 akudamatata