Hi When i try to use this link on my forum: http://www.domain.com/index.php?app=members&module=messaging§ion=send&do=form I am getting 502 bad gateway error but only for this link as all the rest on my forum is working great.. Checking the logs i got this: upstream sent invalid status "40" while reading response header from upstream On the net here is noby ASTRAPI - How to...
Hi I am using this to disallow php running on a folder: location ~^(/uploads/).*(\.php)$ { deny all; } but how can i disallow both php and html to run on this folder? Or is it possible to allow only images to run from this folder and how? Thanksby ASTRAPI - How to...
Ok thanks!by ASTRAPI - Nginx Mailing List - English
Thanks for the reply... Ok with the ip's but i can' figure out how to fix th other problem with exclude ip's for limit_conn_zone :(by ASTRAPI - Nginx Mailing List - English
Hi I am using this code to limit requests and exclude some ip's" http { limit_req_zone $limit zone=delta:8m rate=60r/s; geo $limited { default 1; 192.168.45.56/32 0; 199.27.128.0/21 0; 173.245.48.0/20 0; } map $limited $limit { 1 $binary_remote_addr; 0 ""; } And this on the domain config: server { limit_req zone=delta burst=90 nodelay; Now i haby ASTRAPI - Nginx Mailing List - English
Ok all done fixed ! Thanks :)by ASTRAPI - Nginx Mailing List - English
You can see it i think here: http://i59.tinypic.com/20jlrpv.jpg Or not?by ASTRAPI - Nginx Mailing List - English
http://i59.tinypic.com/20jlrpv.jpgby ASTRAPI - Nginx Mailing List - English
Hi Thanks for your reply :) "do you mean mydomain.com forwarding to www.mydomain.com" No! I have two domains let's say domain1.com and domain2.com Both domain files are in public folder of domain1 and the domain2 is using a folder there named "gadgets" Now i was set one account for each domain on nginx but on domain2 i use a redirect to "gadgets" foby ASTRAPI - Nginx Mailing List - English
Hi On my Nginx server i use a domain "domain.com" and i have all files here: /home/nginxs/domains/mydomain.com/public There i have a folder named "gadgets" and i have some files there and i use a redirect to another domain for this folder. So if a user types seconddomain.com it goes to the folder gadgets in the first domains folder and get al results..... The pby ASTRAPI - Nginx Mailing List - English
Anyone please?by ASTRAPI - Nginx Mailing List - English
My english is not so good and sometimes is hard for me sorry :( So as the goal is to limit globaly the maximum connections from one ip to 15 and to have 40 requests per ip and burst up to 80 requests per second it should be like this? Main nginx conf: http { limit_req_zone $limit zone=foo:1m rate=40r/s; geo $limited { default 1; 192.168.45.56/32 0; 199.27.128.0/21 0; 173.245.4by ASTRAPI - Nginx Mailing List - English
Thanks for your reply Maxim Dounin So something like this ? : Main nginx conf: http { geo $limited { default 1; 192.168.45.56/32 0; 199.27.128.0/21 0; 173.245.48.0/20 0; 103.21.244.0/22 0; 103.22.200.0/22 0; 103.31.4.0/22 0; 141.101.64.0/18 0; 108.162.192.0/18 0; 190.93.240.0by ASTRAPI - Nginx Mailing List - English
Anyone please?by ASTRAPI - Nginx Mailing List - English
Thanks for your reply B.R Not very clear yet as my english is not good at all :( Can you please try to post: What i must add to main nginx config at: http { ? and what to add to the nginx domain config file at: server { ? Cloudflare ip's that i want to exclude: 199.27.128.0/21 173.245.48.0/20 103.21.244.0/22 103.22.200.0/22 103.31.4.0/22 141.101.64.0/18 108.162.19by ASTRAPI - Nginx Mailing List - English
Thanks for your replies but i am confused now :( Can anyone please try to post: What i must add to main nginx config at: http { ? and what to add to the nginx domain config file at: server { ? Target is to have connections limit per ip 20 and requests limits per ip to 40 and requests burst up to 80 !by ASTRAPI - Nginx Mailing List - English
@mex Yes it seems that it will help me :) But on the code he is not using limit_conn_zone at all .... My code: http{ limit_req_zone $binary_remote_addr zone=delta:8m rate=30r/s; limit_conn_zone $binary_remote_addr zone=alpha:8m; New code: http{ limit_req_zone $binary_remote_addr zone=notabot:5m rate=200r/s; limit_req zone=notabot burst=200 nodelay; Whatby ASTRAPI - Nginx Mailing List - English
Hi I am using this code to limit connections from ip's : Main nginx config: limit_conn_zone $binary_remote_addr zone=alpha:8m; limit_req_zone $binary_remote_addr zone=delta:8m rate=40r/s; Domain nginx conf: limit_conn alpha 5; limit_req zone=delta burst=80 nodelay; So a user can create only 5 connections per ip and can have 40 requests with a burst up to 80 connections. Noby ASTRAPI - Nginx Mailing List - English
Hi Today i got this error on nginx log and nginx restart at this time but i don't know why: 03:06:01 30292#0: unlink() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory) At this time nothing else run like a cron or anything that be able to do that :( Any ideas? Thanksby ASTRAPI - How to...
Yes but not working :(by ASTRAPI - How to...
Hi I am looking for a way to convert htaccess rules to nginx rules so my IPBContent will work ....: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !.*\.(jpeg|jpg|gif|png|ico)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php Can anyone please help? Thanksby ASTRAPI - How to...
Hi I am using nginx in front of Apache and i got this error on error log on nginx : upstream sent more data than specified in "Content-Length" header while reading upstream How can i fix this?by ASTRAPI - How to...
Hi I am using Nginx in front of Apache and today i got this error : Error sending request: ComposeRequest: request buffer too small: 16384 against 17498 Is this Apache error or Nginx error and where i can edit this value on my cpanel server (nginx in front of Apache) ? Thanksby ASTRAPI - How to...
Hi It seems that this is a very fast web server and it will be great if nginx get the best parts of it and add it on the core :) http://gwan.ch/ Thanksby ASTRAPI - Ideas and Feature Requests
Hi https://www.axivo.com/articles/new-openssl-vulnerability-discovered.15/ A new security problem with ssl.... Thanksby ASTRAPI - Ideas and Feature Requests
In general i think php-fpm is not very efficient and i am wondering if anyone test the new facebook HHVM instead and how it goes? Other competitors has worst web server than nginx but better php handlers.... Thank youby ASTRAPI - How to...
Hello In general i am setting on 8 core and 8 threads total 16 only four nginx workers so i let the rest for php-fpm and mysql ... But how many connections i must set as maximum per worker? How many 1 worker can handle on a very busy forum? Thank youby ASTRAPI - How to...
Do you think that it will solve the problem or it is not related?by ASTRAPI - How to...
Anyone please?by ASTRAPI - How to...