B4J Question Server & reverse proxy - wl    
Jun 1, 2021Hi,
I'm trying to implement a basic reverse proxy in jServer, by implementing a (Servlet) handler.
So: client (browser) -> jetty server (A) -> external server (B)
Problem is that I can't seem to get the body of the HTTP request to B and pass it (from A) to the browser using...", Me)
j.Download(proxyURL)
Wait For (j) JobDone (j As HttpJob)
If j.Success Then...
link: Resumable Subs (wait for / sleep) in server handlers...
B4J Question B4J Web Apps: Apache2 Reverse Proxy - LWGShane    
Jan 18, 2020.leftwinggamers.com
ServerAlias www.gmu.leftwinggamers.com
ProxyPreserveHost On
RewriteEngine On
ProxyPass / http://127.0.0.1:25115/
</VirtualHost>
Any ideas as to why I'm...
link: Check this: https://www.b4x.com/android/forum/threads/abmaterial-several-abmaterial-servers-on-one-i...
link: Are you able to access the non-websocket servlets?...
link: strange. and you're sure that the A record points to the same IP address?
do you need the apach...
B4J Question Apache2 Reverse Proxy - LWGShane    
Dec 23, 2019I'm trying to get the ABMaterial demo app running on my VPS via reverse proxy. Everytime I try to go to the URL, I get an "Internal Server Error" message. It works fine when I access it via IP
My vHost file:
<VirtualHost *:80>
ServerName abm.leftwinggamers.com
Redirect / https://abm.leftwinggamers.com
</VirtualHost>
<VirtualHost *:443>
ServerName abm...
<Location />
ProxyPass ws://127.0.0.1:51042
</Location>
<...
B4J Question HTTP reverse proxy - wl    
Apr 2, 2018Hi,
I'm trying to implement a HTTP reverse proxy in B4J.
The implementation is simple:
- the application is listing on port 80 (serversocket)
- when a connection is made a (client) socket...
link: You can make http requests from the server handler and return the result....
link: thank you Erel, but as I do not have control on the websites it proxies it seem a jServer...
link: I guess it has to do with multi threading functionality in B4J ?
No. It is most probably a problem i...
B4J Question Apache reverse proxy to jetty - wl    
Apr 2, 2017Hi,
On my VPS (which has a single IP) I need to use apache2 as a webserver.
Fortunately I succeeded in having it reverse proxy a subdomain (redirecting to a Jetty /B4J webserver running on port 8080) through https:// with a Let's encrypt certificate
However, It won't work with websockets.../mydomain/chain.pem
ProxyPreserveHost On
ProxyPass / ws://127.0.0.1:8080/
ProxyPassReverse / ws...
link: Solved it somehow: the above configuration is correct.
However b4j_ws needs to be modified as the port when connecting is not correct: this causes a problem on Edge/IE...
B4J Question Websocket & Caddy reverse proxy problem - wl    
Nov 13, 2016Hi,
I have a test websocket application (websocket class called /connector) that works when connected directly.
Now I put a caddy webserver as a reverse proxy in between:
caddyfile:
mydomain.com {
proxy / http://192.168.0.2:8080 {
websocket
}
}
The B4J server is running on 192.168.0.2 port 80
When I connect using this caddyfile my B4J server crashes:
at org.eclipse.jetty.server...
link: the proxy issue.
WebSocket proxy is more complicated than regular http proxy.
When I connect using...
B4J Question [Server] Chatroom app behind reverse proxy - wl    
Jun 28, 2014 perfectly.
Then I installed nginx to act as a reverse proxy.
Traffic comming to port 80 (nginx) is to...
proxy_set_header Host $host:$server_port;
in the proxy.conf, but it does not seem to help...
link: My guess is that there is already another server listening on port 80....
link: Internet explorer still behaves strangely, but this has nothing to do with the reverse proxy....
link: The server can run on any port you set it. You should make sure that your reverse proxy server...
German B4J WebApp auf Port 80: IIS Reverse Proxy oder URL-Rewrite? - Kiffi    
Jul 24, 2018, weil ich ja den Port 51234 verwende.
Aus diesem Grund habe ich einen Proxy in Form eines URL...://myadventuresincoding.wordpress.com/2015/01/11/iis-setup-iis-as-a-proxy-to-jetty/...
B4J Tutorial [ABMaterial] Several ABMaterial servers on one IP - MichalK73    
Apr 24, 2023   
(19 reactions)
reverse_proxy localhost:81
}
page1.mydomain.com:80 {
# Set this path to your site's directory... common task is to set up a reverse proxy:
reverse_proxy localhost:8083
# Or serve a PHP site....
# file_server
# Another common task is to set up a reverse proxy:
reverse_proxy localhost:8080... the static file server.
# file_server
# Another common task is to set up a reverse proxy:
reverse_proxy localhost:8888
# Or serve a PHP site through php-fpm:
# php_fastcgi...
B4J Question Jetty behind reverse proxy - Erel (first post)    
Jan 19, 2016   
(1 reaction)Check the X-Forward-For header: http://stackoverflow.com/questions/760283/apache-proxypass-how-to-preserve-original-ip-address
Can I use Jetty server in production to serve as http server ?
Yes. Ther...
link: Hi,
How can I get the client IP address when using Jetty behind Apache reverse proxy ?
(I'm...
Page: 1  
2  
3  
4  
5  
6  
7