trojan
trojan copied to clipboard
使用wiki中的修改网页端口的方法无效
我使用的命令: 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管理界面
这样更改后仅可以使用 http(不加ssl)访问;
如果想要使用https访问,需要继续修改trojan配置文件:
vi /usr/local/etc/trojan/config.json
更改 "remote_port": 80
中的80端口为新设置的网页端口(你的例子中为12345),保存后重启trojan:
trojan restart
真不错啊 谢谢分享