Re: Why is nginx returning a 301 redirect in my reverse-proxy to a REST service?

2016-03-25 Thread JoakimR
Hi I'm pretty new in NginX but the directives suggest you add proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; to your config http://nginx.org/en/docs/http/ngx_http_proxy_module.html Posted at Nginx Forum: https://forum.nginx.org/read.php?2,265660,265664#msg-265664

nginx HttpSecureLinkModule php streaming

2016-03-25 Thread JoakimR
I have for hours been trying to understand and figure out how this is working, and searched and tried a lot, but still No hair left on my head :( Sources for trial and errors http://nginx.org/en/docs/http/ngx_http_secure_link_module.html#variables http://stackoverflow.com/questions/8848919/sec

Re: unknown directive "flv"

2016-03-25 Thread Francis Daly
On Fri, Mar 25, 2016 at 02:22:19PM -0400, twister5800 wrote: Hi there, > nginx version: nginx/1.9.12 > built by gcc 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2) > configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx ... > --add-module=/home/ubuntuadmin/nginx-rtmp-module > But why can

Why is nginx returning a 301 redirect in my reverse-proxy to a REST service?

2016-03-25 Thread Rowland Smith
I have a REST service with an endpoint ‘registrations' running in a Docker container and it maps port 5000 to port 5001 on the Docker host. My /etc/nginx/conf.d/default.conf contains: upstream registration-api { server registration:5001 ; } server { listen 80; server_name ""

Re: Homepage cache and cookies

2016-03-25 Thread Ph. Gras
Hello John! I think you can do this better with sessions in NginX. I've made a script that checks if a client is a bot or not, by testing if the Google Analytics cookie is here, or not. If it is, the client can post a comment or login. If not, the server is giving a fake page. In my PHP script

Re: Homepage cache and cookies

2016-03-25 Thread john_smith77
So I found a solution and it seems like there is unexpected behavior from nginx. proxy_hide_header Set-Cookie does not seem to work when the location block is set to / So: location / { #Lots of other proxy stuff here.. proxy_hide_header "Set-Cookie"; } does not allow a cookie to

unknown directive "flv"

2016-03-25 Thread twister5800
Hi, I have compiled nginx with allmodules: nginx version: nginx/1.9.12 built by gcc 5.2.1 20151010 (Ubuntu 5.2.1-22ubuntu2) built with OpenSSL 1.0.2d 9 Jul 2015 TLS SNI support enabled configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-pat

Re: Homepage cache and cookies

2016-03-25 Thread john_smith77
Indeed, but that prevents all cookies from being set. What I am looking for is to have a cache hit, but have the set-cookie served from the origin server. In Apache httpd cache, this can be accomplished with CacheIgnoreHeaders Set-Cookie. The back end server here is Apache and I have tried settin

Re: Homepage cache and cookies

2016-03-25 Thread B.R.
That seems to match what the docs for proxy_hide_header states, just do not use proxy_pass_header at the same time... which does the exact opposite. --- *B. R.* On Thu, Mar 24, 2016 at 9:31 PM, john_smith77 wrote: > Tha