Re: Nginx TCP/UDP Load Balancer

2020-09-01 Thread Dr_tux
When I add the proxy_bind parameter, requests are never forwarded to the server behind. If I do not add it, the output on the turn server is as follows. Output: 96: handle_udp_packet: New UDP endpoint: local addr Turn_Server_IP:3478, remote addr NGINX_IP:59902 stream { upstream stream_backe

Re: Rewrite .htaccess on nginx

2020-09-01 Thread Francis Daly
On Tue, Sep 01, 2020 at 03:34:33PM -0400, Jorge Enrique Diaz wrote: Hi there, > i want to do this in nginx > > Options All -Indexes > RewriteEngine on > > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME} !-f > RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] That is approxima

Re: Nginx TCP/UDP Load Balancer

2020-09-01 Thread Francis Daly
On Tue, Sep 01, 2020 at 04:47:55PM -0400, Dr_tux wrote: Hi there, > Thank you very much for your answer, but I tried it :) did not work. I would > like to forward client IP address directly to turn servers. But I always see > Nginx Ip on Turn Servers. Fair enough. If you can show the config th

Re: Nginx TCP/UDP Load Balancer

2020-09-01 Thread Dr_tux
Thank you very much for your answer, but I tried it :) did not work. I would like to forward client IP address directly to turn servers. But I always see Nginx Ip on Turn Servers. Best. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,289231,289277#msg-289277 _

Rewrite .htaccess on nginx

2020-09-01 Thread Jorge Enrique Diaz
i want to do this in nginx Options All -Indexes RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] when converting it as it appears in several forums it gives me this script user nobody; worker_processes 1;

Re: How do I add text to a response from a remote URL in NGINX?

2020-09-01 Thread Francis Daly
On Tue, Sep 01, 2020 at 08:40:02AM -0400, moyamos wrote: > Francis Daly Wrote: > > On Tue, Sep 01, 2020 at 01:12:03AM -0400, moyamos wrote: Hi there, > location / { > try_files $uri $uri/ =404; > add_before_body /src/before_body.txt; > add_after_body /src/after_body.txt; >

RE: How do I add text to a response from a remote URL in NGINX?

2020-09-01 Thread Reinis Rozitis
> > Now instead you want the content of the url > > http://externalserver.com/before_body.txt? > > Yes, that's right. Can you actually open the file on the external server - http://externalserver.com/src/before_body.txt and does it have the content you expect (without redirects)? Note that si

Re: Connection timeout on SSL with shared hosting

2020-09-01 Thread nathanpgibson
> (I guess you either removed the INPUT DROP rule; or added an explicit > "allow 443" beside the "allow 80" rule that was already there. > Whichever > it was, it was "make the local firewall allow the traffic get to > nginx".) Right, the allow 443 actually existed but there was a rule above it tha

Re: How do I add text to a response from a remote URL in NGINX?

2020-09-01 Thread moyamos
Francis Daly Wrote: --- > On Tue, Sep 01, 2020 at 01:12:03AM -0400, moyamos wrote: > > Hi there, Thanks Francis for your reply. :-) > It looks like you had: > >location /src/ { >alias /storage/path/content/; >} > and the url /s

Re: Nginx TCP/UDP Load Balancer

2020-09-01 Thread Francis Daly
On Mon, Aug 31, 2020 at 06:15:00AM -0400, Dr_tux wrote: Hi there, > Hi, I have 2 turn server. I would like to use Nginx for load balancer them. > But I have a problem. When I use the AWS ELB it works perfectly. If I try > with Nginx, I got an error. > > Remote addr should be client_ip. Nginx, s

Re: transforming static files

2020-09-01 Thread Francis Daly
On Mon, Aug 31, 2020 at 01:38:28PM -0400, Mark Lybarger wrote: Hi there, > i also have some .bin files that can be converted using a custom java api. > how can i easily hook the bin files to processed through a command on the > system? > > java -jar MyTranscoder.jar myInputFile.bin The easy way

Re: How do I add text to a response from a remote URL in NGINX?

2020-09-01 Thread Francis Daly
On Tue, Sep 01, 2020 at 01:12:03AM -0400, moyamos wrote: Hi there, It looks like you had: location /src/ { alias /storage/path/content/; } and the url /src/before_body.txt would provide the content of the local file /storage/path/content/before_body.txt. Now instead you want the c