NGINX to support websocket client on the same port

2016-08-30 Thread jebina
A quick question, Does Nginx support websocket client. I have a webserver that uses NGINX and i use a websocket server for which NGINX acts as proxy. In the same port , can i use websocket client to initiate a connection with the external websocket server? config is here worker_processes 1; #

Nginx multiple upstream map conditions

2016-08-30 Thread c0nw0nk
So this is a fun one. As allot of people probably already know you can't use "IF" on upstream values since if conditions are executed before any "$upstream_" conditions. But with a map directive it might just be possible to combine 2 upstream maps together and have a output based on the condition

Re: disable .php files uploads using php (php-fpm)

2016-08-30 Thread Richard Stanway
File uploads are passed in the request body, not the headers so you cannot disable or otherwise affect them by setting HTTP_X variables. This is a job for your backend as nginx does not really interact with post body contents. On Tue, Aug 30, 2016 at 1:54 AM, c0nw0nk wrote: > Christos Chatzaras