Re: Modify url at nginx

2018-07-30 Thread Pratyush Kumar
AddAdd_header host test.apphost.com;___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: 403 Forbidden

2018-05-23 Thread Pratyush Kumar
You don't seem to have a index file in web root___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx cache issue (http upstream cache: -5)

2018-02-05 Thread Pratyush Kumar
What's the permission for /tmp/nginx ?On 05-Feb-2018 14:38, loopback_proxy wrote:I am new to nginx caching but have worked with nginx a lot. I tried enabling caching feature in our repository but it never worked so I thought I will pull a fresh copy of nginx and turn it on. I ended with the same

Re: Nginx - Only handles exactly 500 request per second - How to increase the limit?

2018-01-23 Thread Pratyush Kumar
What's the load during incident ?Are the request for static files or PHP ?On 23-Jan-2018 11:04 PM, agriz wrote:worker_processes auto; pid /run/nginx.pid; worker_rlimit_nofile 10; error_log /var/log/nginx/error.log crit; events { worker_connections 4000; multi_accept on; use epoll

Re: nginx equivalent for ExpiresByType / FilesMatch

2017-06-12 Thread Pratyush Kumar
I think you can make use of this blockThats how i dolocation ~* \.(?:ico|css|js|gif|jpe?g|png|woff2)$ {    expires 30d;    add_header Pragma public;    add_header Cache-Control "public";}___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mail

Re: One NGINX server to 2 backend servers

2017-02-27 Thread Pratyush Kumar
Seems like there was some problem with my previous replyOn 26-Feb-2017 11:26, Pratyush Kumar wrote:Do you have two servers or three servers ?Can you also mention the server for whuch you have shared the config.What I  understand is that you have one server facing internet, recieving requests and

Re: One NGINX server to 2 backend servers

2017-02-25 Thread Pratyush Kumar
Do you have two servers or three servers ?Can you also mention the server for whuch you have shared the config.What I  understand is that you have one server facing internet, recieving requests and forwarding to two different back-end servers.If that's not the case then please explain your topology

Re: listening but not connecting

2016-07-28 Thread Pratyush Kumar
Can you please share the address which you are using in browser. According to the config which you shared, you will get a response only if you use localhost as URL in browser ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo

Re: Images loaded but not displaying

2016-07-16 Thread Pratyush Kumar
Here is what you should do http://www.w3schools.com/html/html_images.asp http://mobile.htmlgoodies.com/primers/html/article.php/3478181 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Set up reverse proxy and loadbalancing without hostname

2016-07-09 Thread Pratyush Kumar
to request them. If this one doesn't work as expected you might like to un-comment "#proxy_redirect https://myapp1 (https://myapp1/) http://$host/;"; line, although in my opinion it wont be necessary. Regards Pratyush Kumar http://erpratyush.me (http://erpratyush.me) live and let liv

Re: basic nginx setup help as load balancer

2016-07-06 Thread Pratyush Kumar
I'm new to servers and proxies, But don't you think running both nginx and Apache on port 80 of same machine will cause one of those to fail to start. In my opinion backend should be on different IP:port combination. Please correct me if I'm wrong. On 05-Jul-2016 21:41, "NdridCold ." wrote:  I wa

Re: SNI support for nginx

2016-07-04 Thread Pratyush Kumar
You have to point to individual certificates/key in server blocks. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: udp balancing

2016-06-23 Thread Pratyush Kumar
"To summarize: TCP balancing decision is on every new connection. TCP balancing decision is on every packet since it is connectionless." I think there is a typo there Last line should be "UDP balancing decision is on every packet since it is connectionless" On 23-Jun-2016 22:38, Frank Liu wrote:T