** Using trojan+nginx reachs that pretending a normal website to be a proxy service **
first of all, we should know that the trojan forwards the all unknown packets to the remote port, the default remote port is 80. It’s a nice design for us to setting the environment.
if(packets is trojan)
{ do proxy service}
else
{ forwarding packets to port 80 }
so, it’s easy to achieve it that we just configure the web server.
My web server is using Nginx, the fllowing is configuration which I have configured.
configuration file:
1 | server { |
The first server is listening port 80 from all IP address. Its mission is redirecting all request to port 443(https).
1 | server { |
The second is listening localhost port 80, this server is accepting packets from trojan which is true https packets.