How to write a proxy pass in Grizzly Server without using apache or nginx - reverse-proxy

I have two Grizzly servers running my environment.
1. Grizzly server (A) private(internal) with Web socket.
2. Grizzly server (B) public server.
web socket client should access the web socket server via the server B .
Does anyone knows , is it there any configuration can be done in Grizzly (look like proxypass in apache) or how to write a Proxypass Http Handler in Grizzly.
Currently I'm using grizzly-http-2.2.16

Related

Using Apache to route gRPC calls to gRPC server

I am having trouble connecting to my gRPC server through anything but the port its running on. I am using Apache/2.4.54.
In my Apache config I have the following lines:
Protocols h2 http/1.1
ProxyPass /rpc h2://127.0.0.1:5051
ProxyPassReverse /rpc https://127.0.0.1:5051
Any time I try to connect my client to the server at example.com/rpc, I get code 14 DNS resolution failed. I can connect and run a method just fine when I use example.com:5051. Any insight as to whats going wrong here?

SSL Apache HTTPD to SSL Weblogic Managed Servers Call

I want to setup SSL Apache HTTPD -> SSL Weblogic Managed Server.
While opening UI via https Apache HTTPD, getting backend server not available.
Note :
I have ssl module and related modules enabled on httpd end. Weblogic Managed Server SSL is also working because we deployed a middleware component and able to fetch the data from postman/soap UI/curl using https Weblogic Managed server IP and port with API of middleware.
I am able to implement SSL Apache HTTPD -> Non SSL Weblogic Managed Server and can able to open UI with https Apache HTTPD.

How to configure Apache 2 to use a proxy server for external HTTPS request?

My requirement is to hit external HTTPS REST API from application server.i don`t have internet access in application server(JBOSS). so,i forwarded my request to web server(Apache24) and from web server i am calling HTTPS REST API services.
Public Rest URL-: https://publicdomain.com/tracking_number
I made below configuration on Apache server.
ProxyPass /tracking_number https://publicdomain.com/tracking_number
ProxyPassReverse /tracking_number https://publicdomain.com/tracking_number
With above configuration,following URL from application server https://WEBSERVER_IP:PORT/tracking_number, responding 503 proxy error.
Because in web server, internet can be access only through proxy server.
(For example, In IE browsers,if i configure proxy ip and host in LAN settings mean, URL is accessible from browser).
So, i need to configure similar configuration in Apache also. I tried with some configurations with help of http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxyremote. But nothing worked out.
How to configure proxy server(host and ip) for external HTTPS request in Apache.
Apache Version -: 2.4.29
Operating System -: Windows

How to use Apache to redirect requests for Node-Red?

I'm running in AWS a Ubuntu with a docker server (managed by Portainer) with this two running containers:
1 - NodeRed (Serving my APIs)
2 - Apache (Hosts the site that consumes the APIs from NodeRed above)
I've configured a domain to this server and setted apache to work with SSL. The apache is running ok with my site through HTTPS, but the problem is that the NodeRed (that runs in port 1080) is not configured to run in SSL. This causes a malfunction in my website since that my API endpoints are being running under HTTP and being blocked by the browser due security reasons.
The question is: is there a way to create some kind of "mapping" in apache that receives the request from HTTPS and redirect to the NodeRed in HTTP (the two are running in same server)?
My idea is to create a subdomain like https://api.mysite.com that sends the request for apache and then apache redirects it to my NodeRed. Is that possible?
There is no need to expose the API to the outside world if you don't want to. Since your apache is running correctly and both containers are running on the same host, just use proxy to forward API requests to the API container.
You can achive this by add two lines to your apache config i.e.
ProxyPass /api/ http://127.0.0.1:1080/
ProxyPassReverse /api/ http://127.0.0.1:1080/

Running Apache HTTP on SSL with

I have successfully implemented the two different jboss 5 instaces with Apache HTTP Server and can access the application through the HTTP server (i.e. http://localhost:8089) where my http server is listening on port 8089 This was the smooth case. But when talking about HTTP Secured layer have enabled the Apache HTTP SSL by following the steps provided on this page and on default secure port (i.e. 443) now i can access the HTTP Server from secure layer by url: https://localhost/. But when i hit my jboss application, I ended up with following error in browser:
Not Found
The requested URL /myApp was not found on this server.
can anyone let me know how to deal with this?
Thanks