application unreachable from any external IP
Hi to all! I got an issue with nginx - I'm unable to set it up correctly to be reached from outside the VPS. I'm setting up searx: https://github.com/asciimoo/searx and, at a certain point of its...
View ArticleAutomatic cache purging based on new file creation ?
Hi all, I've been reading about NGINX lately and ran into the following 'issues'. It seems that caching with FastCGI does not support automatic cache purges ? For example : 1. I would like to be able...
View ArticleProblem routing 2 almost similar url's (windows)
Hi, I am trying to setup route to these 2 url's that are located on the same server and port. Weblogic is handling the incoming traffic on the server/port and directs accordingly....
View ArticleRe: Problem routing 2 almost similar url's (windows)
location /xmlpserver { proxy_pass http://server011:9502/xmlpserver; Should be; location /xmlpserver { proxy_pass http://server011:9502; As location is passed along.
View ArticleRe: Problem routing 2 almost similar url's (windows)
Thx for trying to help :-) I changed my config to: server { listen 80; server_name bi.myserver.com; location /analytics { proxy_pass http://server011:9502; proxy_set_header Host $host; proxy_set_header...
View ArticleRe: Problem routing 2 almost similar url's (windows)
Sounds like some default server behavior is happening, you may need a simple location / {} block to catch all other requests.
View ArticleRe: Problem routing 2 almost similar url's (windows)
Googled a bit around and tried this config now but no luck there either server { listen 80; server_name bi.myserver.com; location / { return 301 /(analytics|xmlpserver); } location /analytics {...
View ArticleRe: Problem routing 2 almost similar url's (windows)
Do you have an example? Not quite sure I understood? Cheers thg
View ArticleHow to handle concurrent requests with fastcgi?
Hi there! I'm writing an application that is using fastcgi coupled with nginx. I have currently set it to use keepalive sockets. The application is designed so that any requests that come through are...
View ArticleRe: Problem routing 2 almost similar url's (windows)
Enable debug logging and look in the logs which location is matched against which request.
View ArticleRe: How to handle concurrent requests with fastcgi?
Sounds like you need co-sockets with Lua, search for openresty.
View ArticleRe: How to handle concurrent requests with fastcgi?
The issue I'm seeing is that nginx never tries to open multiple sockets with the FastCGI application - I _am_ using coroutines with sockets - however, I never get more than one connection from the...
View ArticleRe: How to handle concurrent requests with fastcgi?
It depends technically how you are processing requests to the backend(s), if you are expecting multiple responses you have to build a trigger state in Lua which waits for all results to complete, you...
View ArticleRe: How to handle concurrent requests with fastcgi?
I'm not using Lua, so using Lua APIs won't help me much. What I am presently doing is listening for connections on the socket. When a connection is found (which will be nginx) I accept the socket, and...
View ArticleRe: How to handle concurrent requests with fastcgi?
Ameisen Wrote: ------------------------------------------------------- > requests. To handle multiple concurrent requests, I'd expect nginx to > multiplex (which it doesn't support) or open...
View ArticleRe: How to handle concurrent requests with fastcgi?
I wasn't aware that it wasn't supported, as I've been unable to find clear documentation anywhere about it. The only thing that I knew was unsupported was FastCGI multiplexing, but the argument given...
View ArticleRe: How to handle concurrent requests with fastcgi?
That example is correct, this is how we use this with PHP since it can only handle one connection at the time, with a pool nginx divides it between its nodes, obviously the cgi part of php needs to run...
View ArticleRe: How to handle concurrent requests with fastcgi?
So, the config file (roughly), coupled with one instance of nginx and one instance of my application (which has concurrent socket capabilities) will suffice? Would it potentially make sense to just add...
View ArticleRe: How to handle concurrent requests with fastcgi?
If it has concurrent socket capabilities then use it and define the balance pool for such use. Now it does all depend what is understood under "concurrent socket capabilities" which way you go, same...
View ArticleRe: How to handle concurrent requests with fastcgi?
All right, thank you. I'll try this tonight. What is nginx doing internally if I don't do this? IIRC, it defaults to 1 worker process, and that defaults to something like 512 connections? If 100 people...
View Article