-1
votes
1answer
14 views

Repeat request to another php-fpm script via fastcgi?

I have nginx server accepting incoming HTTP requests and serving it via fastcgi to some php-fpm script (for example index.php). I want nginx to repeat the same request to another php-fpm script via ...
1
vote
1answer
51 views

Conditionally serving high resolution and WebP images with nginx

Not sure if I'm trying to pull off the impossible, but I'm wanting to configure Nginx to serve ".webp" files to browsers that support the file format and serve fallback files (i.e. pngs, jpgs, etc.) ...
2
votes
1answer
53 views

Disable html error reporting on nginx

Is it possible to completly remove the html erroring reporting in nginx for instance, when I have a 403 error nginx serves the following : <html> <head><title>403 ...
2
votes
2answers
349 views

The Content-Length header does not exist

I have nginx server installed on Linux. When I send a request with curl, the Content-Length header is missing from the response. The 1.php file is: <?php echo "hello"; ?> The example ...
1
vote
1answer
43 views

Nginx config to preventing non-browser requests to domain/IP

Having recently installed django 1.6 on a server hosting several django based sites, I'm getting a lot of errors for "ERROR: Invalid HTTP_HOST header". This is a known 'feature'. The problem is that ...
1
vote
0answers
52 views

Getting a chunked request through nginx

First some background: We have an embedded device that uploads a lot of small events to a web server. Chunked encoding is used to post this information. Every event is send as a seperate chunk, so the ...
0
votes
0answers
15 views

Nginx blocks http response with long string

I encountered a issue with my live web service today. The backend setup is Nginx + Django webservice. In the webservice, I have code to return a HttpResponse with a long JSON string (> 1400 char). ...
1
vote
1answer
332 views

Redirect all http requests behind Amazon ELB to https without using if

Currently I have an ELB serving both http://www.example.org and https://www.example.org. I would like to set it up so any request pointing to http://www.example.org is redirect to ...
1
vote
1answer
38 views

Nginx, server_name targeting trailing “.” will not redirect

When you type in "dev1.example.com." into your browser or you request that Host with your HTTP client, I want it to redirect to "dev1.example.com". I've attempted to do this with the following server ...
0
votes
1answer
59 views

Fastcgi request record is too big

I am running an Nginx server, which requires me to accept URI String containing up to 4mb of data. I have configured nginx to accept the params by setting: /etc/nginx/nginx.conf ...
1
vote
0answers
36 views

Closing proxy to service socket when client is lost

We are using nginx, right now 1.6 to reverse proxy our services to the client. We are also using Server-Sent Events, a layer on top of HTTP that keeps the socket open. Here is a piece of required ...
-1
votes
1answer
146 views

Hot redirect http/https request coming to port 80 to a internal tomcat server on 8080 [closed]

I have a production server with a domain name. It has a tomcat server on 8080. It has several web applications. So I want to map the http/https requests coming to that server to these web ...
0
votes
3answers
64 views

Architecting a web server hosting mixed small and large (100MB+) static content [closed]

I have the challenge of hosting about 200-1000 mp3 files, all in the 100MB+ size range. Furthermore, there are some smaller RSS files, and some smaller JPG files. All this is static content, no PHP, ...
2
votes
0answers
13 views

Mechanism to get the current running configuration values in nginx [duplicate]

Trying to find an easy and convenient mechanism to get the current configuration values from a running nginx instance. The ideal solution would be a url that I could point to that would print the ...
0
votes
1answer
2k views

Nginx 500 Internal Server error on subdirectory

I'm getting a 500 Internal Server error only on sub directories. For example, If my website is example.com, example.com/index.php works. But example.com/phpbb/index.php doesn't work. It just turns ...
2
votes
1answer
110 views

Nginx or Varnish caching with multiple versions of a site

I have a website (https://mediacru.sh) that has a few versions. There's the normal desktop site, the same site with a dark theme, and the mobile site. They all share the same URLs. The theme is ...
0
votes
0answers
43 views

Multiplying requests by using Nginx

I am trying to write an http request analyzer however I want it to be transparent to web application. So I want to know if I can multiply the request by using an nginx proxy like below; Internet ...
1
vote
1answer
64 views

Throttling a user across multiple datacenters

I'm trying to implement a throttling feature on nginx, that is shared across multiple servers across multiple datacenters. I would like to know what would be the best practice for building this. For ...
2
votes
2answers
364 views

Nginx issues between vhosts and SSL

I have two sites in the same IP with the follow configuration: site1.com Multiples subdomains (ie.: foo.site1.com, bar.site1.com) Everything listening on port 80, NOTHING in 443 ...
0
votes
1answer
414 views

Nginx GeoIP load balancing with failover

I am attempting to set up a test Nginx load balanced environment. So far I have sucessfully configured a load balancer nginx-balancer1 and 3 servers to serve webpages nginx1, nginx2 & nginx3. I ...
1
vote
2answers
115 views

nginx ssl virt host issue - site won't load

I have configured nginx for port 80 and 443, with 443 containing an ssl cert configuration. When I restart nginx, no errors occur, so I don't believe it's a cert issue, but of course I could be ...
1
vote
1answer
150 views

Configuring multiple Nginx load balancers for failover

I am attempting to set up a test Nginx load balanced environment. So far I have sucessfully configured a load balancer nginx-balancer1 and 3 servers to serve webpages nginx1, nginx2 & nginx3. ...
0
votes
1answer
162 views

Nginx dropping events with connection refused after accepting few connection

I have setup with nginx as loadbalancer and python application running on nodes behind loadbalancers. We collect events from one of the busy mobile sites, it sends a event connecting to our api ...
-1
votes
1answer
103 views

HTTP 301 moved for all nginx URL to a single HTTPS

Below is a config file that I am using with Nginx to redirect all WWW and non-WWW to the https:/domain.com URL server { listen 80 443; server_name domain.com www.domain.com; ...
1
vote
1answer
88 views

Nginx ignores HTTP Authentication for WordPress login directory

I am running WordPress in a subfolder of my domain for testing and development purposes on a VPS LEMP-stack. In order to password-protect the wp-login.php with an etxra layer, I used HTTP ...
0
votes
1answer
388 views

How to properly use nginx echo support to respond with a 504 inline page?

I am trying to reply with a custom 504 page by using nginx echo support but for some strange reason when this is active the browser downloads the response instead of opening it. server { ...
2
votes
0answers
210 views

Nginx not honoring must-revalidate

I want to use nginx as a caching reverse proxy. I also have a special requirement, which I thought could be accomplished with nginx. I am using Amazon s3 as origin server and I use signed urls to ...
0
votes
1answer
422 views

Nginx + node.js single page app, sending /index.html and proxying together

I've got a Nginx running, with Node.js on port 3000. location / { root /path/to/my/site; index index.html index.htm; try_files $uri $uri/ @node; } location ...
0
votes
1answer
256 views

Nginx byte-serving http requests

I know it is possible to use Nginx to spread requests over multiple web servers thus doing load balancing. This solution requires back-end servers having high bandwidth and is effective when dealing ...
2
votes
1answer
767 views

nginx Request line too large

I'm getting the error: Bad Request Request Line is too large (6060 > 4094) When I access the a specific url on my server like this: /api/categorize?packages=package1,package2,...packageN On ...
0
votes
2answers
483 views

nginx responding to unknown host names?

I have two domains that point to the same server, one we'll call home and one we'll call web. I'm running nginx on port 80 for HTTP and 443 for HTTPS. In my server definitions, I've defined two ...
1
vote
1answer
978 views

Configure nginx for max-age=0 requests

I'm using nginx as a reverse proxy with proxy_cache. The back-end is setting cache-control response headers which makes nginx serve responses from cache when possible. However I would like to allow ...
1
vote
1answer
791 views

Configuration of nginx for git-http-backend on debian(-based systems)

I'm having trouble to get git-http-backend working using an nginx server on my Ubuntu 13.04 machine. Tried it with Debian 7 before but with similar results. Basically I followed ...
2
votes
1answer
105 views

Why do I get a 404 for my index.page in my http/https nginx setup?

I'm using WPN-XM (stack with Nginx, MariaDB, PHP and OPENSSL) and am trying to setup OpenSSL in a HTTP/HTTPS server. I'm following the instructions from NGINX here and my server starts/stops without ...
0
votes
2answers
140 views

Nginx returning 444 for PUT and DELETE

I'm trying to build a REST API through Nginx and everything works fine except when I the requests are PUT or DELETE. In these cases, Nginx returns 444 (no response). I did some research and all I ...
1
vote
2answers
215 views

On Ubuntu installed NginX and Can't find where new WWW root is

On Ubuntu 13.04 the original WWW was in /var/www/ then I installed NginX and it installed correctly but I can't find the actual folder accessible by http (I looked in /etc/nginx/). I searched for ...
2
votes
2answers
881 views

Large keepalive_requests values are severely slowing-down Nginx

When running a bacon (43-byte transparent pixel) load test on Nginx, we have tried several keepalive_requests values (from 10 to 100,000) and the optimal value seems to be 10. Here are the server ...
0
votes
1answer
198 views

nginx dynamic servername with regular expression doesn't work for co.uk

I'm trying to setup a nginx server which dynamically loads content from a folder for a domain. To do this I'm using regular expressions in the server name like so: server_name ...
2
votes
1answer
517 views

What is the difference between using upstream and location for php-fpm?

I've been searching around but couldn't find a straight answer, if someone could please clarify this, would be greatly appreciated, thanks! location ~ \.php$ { try_files $uri = 404; ...
2
votes
1answer
80 views

Negative Request Per Second observed?

I'm currently looking at my Nagios metrics, and especially on my WebServers and I suddently noticed that sometimes, I've a negative amount of Request per second and other metrics, how it is possible?? ...
0
votes
1answer
360 views

Why is $request_time sometimes much bigger than $upstream_response_time?

I have an HTTPS website where sometimes, for the same clients, the $request_time is 10x the $upstream_response_time, or even 100x. I understand the different between the 2 times: $request_time is the ...
1
vote
1answer
2k views

413: Request Entity Too Large (client_max_body_size is set)

I'm really not sure where else to look for the answer. Every single guide or question online says to check client_max_body_size and that solves it. For me however, I'm trying to do a large PUT ...
3
votes
2answers
474 views

Why put a reverse proxy in front of a WSGI server?

A typical configuration for deploying a WSGI application includes a WSGI server (such as uWSGI or Gunicorn) behind a general-purpose web server (like nginx) that acts as a reverse proxy. One major ...
1
vote
1answer
164 views

Reverse HTTP proxy as CDN origin server, how to handle last modified since?

I'm trying to set up redundant origin servers for a CDN that will deliver on demand video files. The current setup is that I have two "media" servers that have a large storage capacity and are running ...
0
votes
2answers
193 views

Can't get nginx to reply to ab with compressed content

ab -n 1 -H 'Accept-Encoding: gzip, deflate' http://mywebsite.com/ This always returns the uncompressed content (I can see that both from its size and because I'm sniffing the traffic with ngrep). ...
0
votes
0answers
83 views

How to prevent nginx from caching certain files?

Is it possible to configure nginx to never cache certain files? I have two files on the root directory, index.html and list.json, and I want to disable caching for them completely. Can this be done by ...
1
vote
1answer
34 views

Nginx rewrite issue

I would like a particular configuration for one of my virtual servers but I have a problem explaining that to Nginx :) Its quite simple. If the URI looks like ...
-1
votes
1answer
833 views

“A” record redirect gives 400 Bad Request in nginx [closed]

I've registered a domain with NameCheap and have set up an A redirect to my web server. Visiting the server directly (http://1.2.3.4) is fine, but going through the domain name returns 400 Bad Request ...
1
vote
0answers
67 views

Nginx blocking webstes with proxy_pass

I have an Nginx script that proxied HTTP request using this: proxy_pass http://$http_host$uri$is_args$args; I have a list of websites and I want to make it just these ones accessbile by the proxy. ...
0
votes
1answer
240 views

Redirect from HTTP to HTTPS with respect to the X-Forwarded-For header (SSL termination used)

I'm looking to redirect from HTTP to HTTPS. My Nginx server sits behind a load balancer which will terminate SSL for me and send all traffic (HTTP and HTTPS) to port 80. The only evidence I will have ...