atrandys / trojan

Apache License 2.0
1.06k stars 625 forks source link

trojan为什么不能与Nginx共存啊 #16

Open tujidelv opened 4 years ago

tujidelv commented 4 years ago

我用的宝塔面板,安装trojan之前就有Nginx了,我就把脚本的相关Nginx的路径都改成自己的了, trojan服务启动后,Nginx就起不来了,我其他的网站就没法用了,说是443端口占用, 要么是Nginx起来了,trojan就起不来了,说是443端口占用, 还是我的配置错了呢,请教大神

image image image

KevinZonda commented 4 years ago

Run the Trojan on another port and use NGINX to reverse it.

tujidelv commented 4 years ago

Run the Trojan on another port and use NGINX to reverse it.

感谢大佬解惑,trojan已经和nginx共存了,在不影响原先Nginx的功能下,trojan也能正常使用

xiaoy22 commented 4 years ago

请问具体怎么设置啊?谢谢!

JohnBro commented 4 years ago

请问具体怎么设置啊?谢谢!

I also want to know.

KevinZonda commented 4 years ago

@JohnBro @xiaoy22 Try to read https://trojan-tutor.github.io/2019/04/10/p41.html

jinwyp commented 4 years ago

推荐一个脚本 支持 trojan-go trojan v2ray 共存,升级和卸载,自动证书续签.可以修改root和ssh端口 支持WS+CDN https://github.com/jinwyp/one_click_script