braindeaf Wrote: ------------------------------------------------------- > server { > port 443 > server_name .example.co; Would be a catch all.by itpp2012 - Nginx Mailing List - English
With map it depends what your testing for and when a test is positive what you want to be in the mapped variable, for example; map $http_user_agent $mobile { default 0; "~Opera Mini" 1; } If the $http_user_agent contains the string portion "*Opera Mini*" then $mobile will be set to the value 1. Later on in a location block you can use $mobile and do something basedby itpp2012 - How to...
Try location /oauth {by itpp2012 - Nginx Mailing List - English
That might very well be the case, if for some reason a http link is rewritten to https (or the other way around) due to a deep link existing in one resource but not the other you can 'create' these issues. It might be better to also force https and not allow mixed content.by itpp2012 - How to...
Maybe this helps: http://exist.2174344.n4.nabble.com/Large-WebDAV-put-fails-when-done-through-nginx-proxy-td3574374.html http://www.agoragames.com/blog/2009/03/by itpp2012 - How to...
map $http_cookie $checkCookie { default 0; ~$SHA1 1; } Then inside a location block: if ($checkCookie) { return 403; } # or whatever you want to happen instead of a 403 If you want to allow things when $SHA1 is filled then turn the 0 and 1 around in the map.by itpp2012 - How to...
Did you enclosed them with "" (double quotes) ?by itpp2012 - How to...
Read that page, its more or less the same issue which should be solved with a map block, then use a single IF inside a location block.by itpp2012 - How to...
Something with map, http://serverfault.com/questions/268633/controlling-nginx-proxy-target-using-a-cookieby itpp2012 - How to...
jonathan888 Wrote: ------------------------------------------------------- > so what i gather is that many domains can be served through the one > port? I Yes, http = port 80, you still need to figure out which config of nginx is running on those ports, see also my previous post.by itpp2012 - How to...
If the port is in use then its in use... nothing much nginx can do about that. You need to find out who's using that port or why it's blocked from being used. netstat -aln | grep portnumber It might also be possible that you can't run 2 instances of nginx on the same machine. Kill all nginx instances and run your config to see if this might be the case.by itpp2012 - How to...
Can you post the error.log or paste the image elsewhere, the forums attachments don't work very well.by itpp2012 - How to...
It looks like it yes, so what happens now with accessing on port 8007 ? Also check nginx logfiles to see if it receives any requests.by itpp2012 - How to...
selinux? firewall/iptables blocking ports? are your server blocks listen values actually listening on their ports? (netstat -an)by itpp2012 - How to...
This works: ~*\{.*\:\; 1; with map, do note that a 400 in logging means something else which precedes map handling.by itpp2012 - Nginx Mailing List - English
Use curl to find out exactly what the timestamp is before/after caching, it might be as simple as chrome not doing something it should.by itpp2012 - How to...
There is with Lua (openresty).by itpp2012 - Ideas and Feature Requests
Maybe if you post here http://forum.nginx.org/list.php?2 instead of "Home > General Forums > Site Suggestions" you might get a response.by itpp2012 - Site Suggestions
Some reading material; http://serverfault.com/questions/578648/properly-setting-up-a-default-nginx-server-for-https http://forum.nginx.org/read.php?2,229949,229949#msg-229949 https://tech.mendix.com/linux/2014/10/29/nginx-certs-sni/ It more or less depends what type of clients connect, SNI support and how you define the first server block.by itpp2012 - How to...
server { listen 80; server_name www.domain.nl; return 301 https://www.domain.nl$request_uri; } server { listen 443; server_name www.domain.nl; [...] }by itpp2012 - How to...
Don't use debug unless your looking for some issue and use log file caching.by itpp2012 - Other discussion
You can try Lua (init_by_lua) something like https://github.com/pintsized/lua-resty-http with a bit of tweaking, no usb port you could use with a small usb stick?by itpp2012 - Nginx Mailing List - English
What about using curl to fetch it and store it on a ramdisk/swapdrive or where you keep the .conf files?by itpp2012 - Nginx Mailing List - English
Robert Paprocki Wrote: ------------------------------------------------------- > It needs to be at the -same- level as the http {} block, not -within- > the http {} block. Ah! makes sense as a stream is not http. That passes -tby itpp2012 - Nginx Mailing List - English
Minimal conf; worker_processes 4; events { worker_connections 8192; } http { include mime.types; default_type application/octet-stream; stream { upstream stream_backend { server 192.168.222.22:810 weight=5; server 192.168.222.17:810 weight=5; } } server { listen 12345; proxy_passby itpp2012 - Nginx Mailing List - English
Hmm, following: http://nginx.com/resources/admin-guide/tcp-load-balancing/ I get a nginx: "stream" directive is not allowed here eventhough its within the http context like upstreams are, anyone with a good example? or did I stumble on a context eval bug?by itpp2012 - Nginx Mailing List - English
I see a root inside 1 location block but not inside the block where you have the problem, place root at server block level or repeat it in each location block. Add_header $docroot and use curl to see whats in it.by itpp2012 - How to...
It means root <> /www/domaindir adding: root '/www/domaindir'; should fix it.by itpp2012 - How to...
![]() |
![]() |
![]() |
![]() |
|