I want to ask you if there is a possibility to configure NginX as http proxy and stream proxy on the same NginX server? Or should it be splited on two machines, one as http proxy, another as stream proxy?
Do you have experience with that kind configuration?
Thanks in advance for any suggestions.
Related
I need http port forward proxy server golang
Be able to provide Rest http api
Kind of like
PortForward Traffic Forwarding
Please tell me the program that can be used directly.
thanks
I got a task to use Nginx as a reverse proxies to all requests, so if someone is going through the proxy and the SNI is www.google.com the Nginx will access www.google.com fetch the data and provide it to the user, but I need it to all domains and not just some.
Is it something Nginx can do?
Tnx,
Omer
I know it can go to a local port with proxy_pass, and there's also stuff like FastCGI and wsgi. Is there a list of these ways nginx can send requests to my server?
Let us suppose that on my machine it is configured a proxy server.
Let now suppose that I want to visit www.sitename.com, what happens?
In particular, I send an HTTP GET www.sitename.com request to the proxy server and it queries his own dns or, on the contrary, I query my dns and then I send an HTTP GET IPfromDNS to the proxy server?
With a HTTP proxy you send the URL to the proxy and the DNS lookup is done by the proxy. With a SOCKS4 proxy the client need to do the DNS lookup itself since this kind of proxy can only forward to IP addresses. SOCKS5 instead allows you again to forward by name so that the DNS lookup is done by the proxy.
I am not sure how to formulate my question but here we go:
I have 2 servers, one is the nginx reverse proxy and one is the app server.
In my app server, I am developing a simple http client using jerseyclient that will send a request to another server. I can do this now but the traffic goes from the app server and directly to the destination. Is it possible to it from the app server, passes through the reverse proxy server and goes to the destination?
And, is this design ok or is it an abomination?
nginx reverse proxy works only for requests outside your network.
To configure your system works as you described you have to configure firewall NAT or caching HTTP proxy like squid etc.
If you have no reasons why your servers should look as single computer - your configuration is OK.