Web Proxy는 Client가 방화벽 안쪽의 서버에 접근을 할 수 있도록 관문을 제공하는 역활을 한다.
프록시의 동작방식에 따라 두가지의 두가지로 구분지을 수 있다.
Forward Proxy
- Client가 방화벽 안쪽에 있는 서버의 정체를 알고 있다. 요청시에 접속하자고 하는 서버의 정보를(Configuration)를 같이 보내주게 되면 Proxy는 해당 서버로 요청을 중개(intermediate)한다.
- 사내와 외부 인터넷 망을 분리하고 사내에서 인터넷을 사용할때 요청을 중계해는 방식으로, 주로 사용자의 인터넷 사용을 제한하거나 감시하려는 목적(보안)으로 사용하고 있다.
- 아파치에서는 다음과 같이 설정한다. ( httpd.conf)
ProxyRequests On
ProxyVia On
<Proxy *>
Order deny,allow
Deny from all
Allow from internal.example.com
</Proxy>
Reverse Proxy
- 이 방식은 주로 Load Balancing을 위해 사용한다. Client에서는 Proxy가 자신이 접속할 서버로 알고 있으며(실 서버의 정보를 알고있지 않음), Proxy에서는 요청을 받아 정해진 정책(Round Robbin, Hasing 등)에 따라 실 서버에 요청을 중개(Intermediate)하게 된다.
- 아파치에서는 다음과 같이 설정한다.(httpd.conf)
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /foo http://foo.example.com/bar
ProxyPassReverse /foo http://foo.example.com/bar
Hello,
Can you hide the URL in the previous post ?
Yes it's work, I can connect to Traccar.
But now, after connection I have this error : Web socket connection error
And many errors about API in the developper console :
Errors developper console
I have change the config like this :
ProxyPass /traccar/api/socket/ ws://192.168.1.103:8082/api/socket/
ProxyPassReverse /traccar/api/socket/ ws:///192.168.1.103:8082/api/socket/
ProxyPass /traccar/ http://192.168.1.103:8082/
ProxyPassReverse /traccar/ http://192.168.1.103:8082/
But no work...
I have also test with one virtual machine with Traccar + Apache2 : it's the same, no work and same errors...
Thank you
Adrien