Questions tagged [requests]

37 questions
16
votes
4 answers

Apache: Limit the Number of Requests/Traffic per IP?

I would like to only allow one IP to use up to, say 1GB, of traffic per day, and if that limit is exceeded, all requests from that IP are then dropped until the next day. However, a more simple solution where the connection is dropped after a…
Ian Kern
4
votes
2 answers

Plain uWSGI error: uwsgi_response_write_body_do() TIMEOUT

This looks like a well-known issue with Nginx+uWSGI timeouts, but my setup is different and I couldn't find information about it. I run a Flask app on uWSGI, on http protocol (not sockets). When I query my API, sometimes I receive an…
adamczi
  • 153
4
votes
0 answers

REQUEST CACHING IN NGINX

I am trying to cache my requests in nginx. I have connected my django server as upstream. Now, I am trying to cache my requests. proxy_cache_path /var/cache/nginx/ keys_zone=one:10m; location / { proxy_cache one; …
4
votes
1 answer

how to get list of http request currently getting handled by nginx server?

i am using ab command to hit the http request to my local host . now on server side i want to check how many request currently getting handled by my nginx server. like in case of DB we can check the list of db-connection made by any…
mayur
  • 41
3
votes
0 answers

How many HTTP transactions through a connection in Haproxy

I want to know how many http transactions occur through a specific connection of Haproxy with a client (frontend). If I could associate connection (session) id with the frontend's request I would be able to count number of log lines with this id,…
rlib
  • 195
2
votes
2 answers

is there any difference between a request vs a hit?

In metrics such as "requests per second" and "hits per second" for web servers, are the terms "request" and "hit" synonymous? Can you think of a context in which a request is not a hit?
2
votes
1 answer

Nginx redirect all request that does not match a file to a php file

I'm trying to get all request to: http://example.com/downloads/* redirect to http://example.com/downloads/index.php except if the requested file exist in /downloads/ ex: http://example.com/downloads =>…
Cyrbil
  • 123
2
votes
2 answers

Strange "GET /api/levels/ " and "GET /play/" requests in logs

I've setup new Amazon EC2 instance. In a day or two started to get strange "GET" requests from the "google bot-like" IP's (eg 66.249.76.84, 66.249.74.152) about one in 10 seconds (some examples): 66.249.74.152 - - [10/Apr/2013:06:05:02 +0000] "GET…
domage
  • 23
2
votes
1 answer

Strange requests being made to my site

I've recently started hosting my dev site from my laptop and I see these requests being made on my domain. I've no idea what these are. Please…
ram
  • 123
2
votes
2 answers

What is a good live request monitor for Apache httpd?

I have used SeeFusion to monitor ColdFusion requests. Is there a similar tool that would allow me to monitor Apache httpd requests in real time? We have a server that was fast and responsive for months, but suddenly today, it is using 80% cpu…
2
votes
4 answers

keep a count of each file served

I've inherited a php project from an offshore firm and I'm pretty sure that ~50% of the files are no longer used. I want to weed out the unused files so I was thinking of just tracking the number of times each file is requested or included while I…
2
votes
0 answers

Multiple CA certs - How to convert them in single file (may be .pem ) and use them?

I am using python http.client for making requests to server. I am using multiple ssl_ca certs and I specify them using the load_verify_locations multiple times. However, in python requets only a single file can be given as certs for ssl. How do I…
1
vote
0 answers

many connections to one of our website

We are hosting multiple websites with Nginx as an SSL terminator. All traffics are proxied through Nginx to backend servers. There are many connections to one of our websites, netstat shows: # netstat -ntp|grep nginx |wc -l 1041 when I check…
1
vote
1 answer

Block POST PUT and DELETE but allow GET from specific referrer

I'm using nginx and I want to block post, put and delete requests when they come from an unknown referrer. Meaning, I have the referrer: ".example.com" and from this referrer I want to allow all GET, PUT and POST (yeah, I know thats easy to fake the…
1
vote
1 answer

Setting up proxy to handle subdomain requests

I have setup a proxy for a site which works with the following nginx config: server { listen 80; server_name proxy.example.com; access_log /dev/null; error_log /dev/null; location / { proxy_pass …
PeeHaa
  • 221
1
2 3