Nginx ("engine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

learn more… | top users | synonyms

-1
votes
1answer
23 views

whats is nginx location blacklist

What does location @blacklist means ? location @blacklist { proxy_redirect off ; proxy_pass https://ip-address:1500; rewrite (.*) /mancgi/ddos break; proxy_set_header Host $host; ...
0
votes
0answers
58 views

Java AWS Server: 502 Bad Gateway nginx/1.8.1

I am getting the 502 bad gateway error after uploading my application via Eclipse and I don't understand why its happening? I created a Sample Application through the AWS Elastic Beanstalk Console. ...
0
votes
0answers
19 views

open_file_cache causes slow response every x times

I'm testing a server on t2.micro ec2 I set this in nginx.conf open_file_cache max=2000 inactive=20s; open_file_cache_valid 60s; open_file_cache_min_uses 5; ...
0
votes
1answer
26 views

Why rewrite doesn't work in nginx

I have the following server configuration: server { listen 7777; server_name localhost; rewrite ^/standardlib/(.*)$ /standardlib/src/main/webapp/$1 last; location / { ...
0
votes
0answers
35 views

PHP7 “fails” Intermittently - 502: bad gateway

I am running Ubuntu 14.04 with PHP7.0-fpm (from the Ondrej/php PPA). PHP now randomly fails, and by fail I mean serving a 502/504 error, the processes themselves are still running. It is sitting ...
0
votes
1answer
27 views

how to open index.php instead of index.html on nginx server?

Nginx server open index.html by default how to change that to index.php ? when i type my server ip it opens index.html instead of index.php there is no index.html file on server but there is ...
1
vote
0answers
21 views

Nginx with http2 and ios WKWebView

We are running nginx on a debian system as our loadbalancer nginx version: nginx/1.9.10 built with OpenSSL 1.0.2e 3 Dec 2015 (running with OpenSSL 1.0.2g 1 Mar 2016) We had http2 activated in our ...
0
votes
1answer
39 views

CentOs 7 Nginx (13: Permission denied) while loading font file from css

I have an nginx webserver with bootstrap js framework. I am trying to get the css to be able to load the font files. Although i get error 403 when the browser is trying to access the font files. I ...
0
votes
0answers
25 views

Nginx - Redis Server issue

I have an Ubuntu 14.04 VPS with multiple WP sites running in Nginx (Used this tutorial: https://deliciousbrains.com/hosting-wordpress-setup-secure-virtual-server/) When enabling Redis Server somehow ...
0
votes
1answer
46 views

Nginx connection to upstream apache: Re-negotiation handshake failed

I'm configuring new nginx server which will be used as reverse proxy. We have older Debian server with apache up and running. On this apache server is site with https only access I want to hide behind ...
0
votes
1answer
45 views

Nginx server block is not being picked

I have created a new subdomain and updated the following vhost configuration file but nginx still picking the default one (the first server block) Knowing that both blocks listen to same IP:PORT !! ...
0
votes
1answer
27 views

Problems with GoDaddy DNS masking and html viewport

I set up a DNS masking for my GoDaddy domain so that my Amazon EC2 url wouldn't be shown to the user. Instead of the original index.html returned by Nginx the user now gets it wrapped in some GoDaddy ...
2
votes
0answers
32 views

Nginx: How To Completely Disable Request Body Buffering

I'm trying to set up Madsonic on my Ubuntu box and have Nginx run in front of it. Problem is, I keep getting this warning when I try to upload stuff through the web interface: 31115#0: *14 a client ...
0
votes
1answer
15 views

How to force connection only from hostname to specific ports?

I'm running a few dockerized applications on a Digital Ocean server behind an nginx reverse proxy, this one to be exact: https://github.com/jwilder/nginx-proxy. I have it configured so that ...
0
votes
0answers
7 views

Munin not updating graph, plugin works(Nginx)

This morning i had the great idea to update my nginx instal from dotdeb to the official repo, it worked, but around that time some of the munin nginx graphs have stopped working and i don't know why, ...
-1
votes
0answers
19 views

.htaccess rules are not accepting in my server

My server is configured with Apache + nginx as revers proxy. One of my customer is using MODx and he wish to secure his "manager" ( domain.com/manager )area. He have added the following rules in the ...
0
votes
2answers
32 views

nginx+fastcgi+php-fpm step from standard config = 404

I want to work simple url like http://host/test.php, note there are no trailing / at the end. I start from standard config from nginx site + serverfault: location ~ [^/]\.php(/|$) { ...
0
votes
1answer
67 views

Lets Encrypt with an nginx reverse proxy

Introduction I have a dev server (currently running Ubuntu 14.04 LTS), which I have been using for a while now for hosting various development tools on different ports. Because the ports can be hard ...
0
votes
0answers
16 views

Exclude or change package used as dependency in rpm package under CentOS

I have an RPM package that depends on many other packages, so installing it will install everything I need - quite a normal approach. But one of the packages depends on custom nginx build (general ...
2
votes
2answers
148 views

Setup nginx for owncloud and other services on the same server?

Right now I have nginx working with 3 services: 1. My webpage on my.example.com/~ignacio, my Rstudio server on my.example.com/rstudio, and my Shiny sever on my.example.com/shiny. This is my config ...
1
vote
1answer
21 views

How to obtain hostname of request nginx

Hello I am trying to redirect all my requests to use https. I have created a server block that listens on port 80 (http) and I want to redirect the user to use https:// however I am unsure how to ...
-2
votes
0answers
29 views

Ownership permissions with current Nginx configuration a security issue? [duplicate]

Today I set up Nginx and PHP5-FPM with my main account named Nick in Ubuntu server by changing the user and group defintions of nginx.conf and www.conf, so that both instances are running under my ...
0
votes
0answers
10 views

NGINX listen'ing on sub1.domain.tld:port traps ALL requested sub-domains on this :port?

nginx version: nginx/1.9.3 (Ubuntu) I'm trying to figure out why NGINX seems to ignore limiting to a hard-coded subdomain when :port is in play, as in the following. Note that :4444 is only ...
1
vote
0answers
31 views

nginx SSL client certificate handshake very slow for domain and paths

I have a server with some subdomains publicly accessible while on one subdomain a client side certificate is required. Not only that, paths on that subdomain point to different applications. I.e that ...
0
votes
1answer
14 views

How to properly set up access_log for nginx cache

I am trying to properly set up logging for nginx as a reverse proxy for Apache so that I can see IPs in all log files not just the domlogs In my vhosts file I use: access_log ...
0
votes
1answer
16 views

Nginx: Googlebot Gets Temporarily Unreachable For Some Images

I use nginx as a reverse proxy. When I try to fetch my site using "Fetch as Google" I receive what looks like a 404 for some CDN-hosted images entirely randomly. Most load and render fine, but some ...
0
votes
0answers
31 views

Can't enable TLSv1.2 on nginx on a FreeNAS jail

I'm quite new to the FreeBSD environment, I'm quite used to the Linux one. I've created a jail in FreeNAS 9.3 and installed nginx with ssl support following several online resources (googled "freebsd ...
0
votes
0answers
19 views

Sef, Joomla 3, PHP 5.3.3 (fpm-fcgi), nginx 1.4.2

The server hosting two virtual host. Each of them must be reached at http://www.pincopallino.it (VH1) and http://www.pincopallino.it/Ufsoit (VH2). Everything works correctly if not active SEF form , ...
0
votes
0answers
21 views

php-main.sock file not found in php version 5.6.20

I have successfully installed nginx version 1.9.11 on my remote server, running CentOS 7. I also installed PHP version 5.6.20 by following this link. I am trying to use a PHP socket for running PHP, ...
-1
votes
0answers
46 views

What's wrong with this server config for Wordpress (nginx, varnish, apc)?

I'm setting up the Wordpress backend for a high traffic website (gets around 15-20 million pageviews a month). It's up ad running but it's not performing as I wished. The components are: Php5-fpm ...
0
votes
0answers
24 views

nginx pagespeed - not sending expiry headers properly

I am trying to setup nginx with pagespeed. No matter what I do, the images only have 5 mins expiration on them. server { listen 443; server_name zxxx.com; index index index.php index.html; ...
3
votes
1answer
54 views

Nginx letsencrypt OCSP stappling

I have set up nginx with SSL and letsencrypt certificates. However I am unable to get OCSP stappling to work. From what I found in the web, it should work with the following configuration, ...
0
votes
0answers
42 views

php-fpm or nginx are not cooperating well (multipart issue)

I setup a: nginx as https and as upstream php-fmp on ubuntu server 15.10 - 1 core now: nginx receives simple multipart request via ssh POST [path] HTTP/1.1\r\n Host: [host]\r\n Connection: ...
0
votes
0answers
24 views

nginx set does not update log

Simple task, I'd like to dynamically set variable to log. First, quick check, set variable temp to a fixed string # nginx.conf http { log_format test_format 'body:$request_body, temp:$temp'; } ...
0
votes
1answer
31 views

Is it normal to have HTTP 499 errors in 1 out of 4000 requests?

I made a website, behind CloudFlare, and sometimes I get an early terminated (nginx 499) request, which is really hard to work around in the codebase. This happens in about 1 out of 4000 requests. ...
1
vote
0answers
15 views

nginx and site.erb: tag as internal users for two different domains and two different sets of IPs

I have an nginx server and a site.erb file and two different domains (domain1 and domain2). Currently a tag (for Google Tag Manager) will be set when someone visits the sites from a particular set of ...
1
vote
0answers
20 views

Hardware choosing and Bandwidth limitations on NGINX reverse proxy on a VPS?

Good afternoon friends. We are currently growing our infrastructure of a SaaS application and require 2 app dedicated servers, each running multiple instances of a nodejs application. The company ...
1
vote
0answers
33 views

Nginx serve static files for flask app 404

I've tried numerous solutions of other posts, but nothing seems to work for me, I always get a 404 error, when trying to let nginx serve static files of my flask application. Somewhere in between all ...
0
votes
0answers
19 views

How to restrict access to subdomains within a shared nginx server block?

I have a server block with a few different rules that catches its domain and all subdomains. I want beta.mysite.com to be private to my IP exclusively. However, I don't want to create a second server ...
0
votes
0answers
28 views

nginx ping upstream server to get http 200 respponse

I setup nginx proxy server on my localhost at windows OS, I am running my JBoss server at port 8080 and I want to display maintenance page whenever nginx found that server is not running. by using the ...
0
votes
0answers
18 views

NGINX not recognizing $request

Well.. NGINX or me guess.. something that I'm not doing OK. The point is, I'm getting some request from bots of this type: 91.123.1.56 - - [04/Apr/2016:12:13:39 +0200] ...
0
votes
0answers
23 views

Making Nginx log all Post request with file uploads

How can I create a logfile which logs the "filename", "size" and "post url destination" of all files uploaded to my server? Uploads are handled with php-fpm, but I cannot modify this code, so the ...
1
vote
0answers
66 views

nginx x-cache status flipping between hit and expired on WordPress site (test php file OK)

I have an nginx cache setup for a WordPress site, and it is flipping between nginx header status x-cache: HIT and x-cache: EXPIRED seemingly randomly: C:\Users\curl-7.48>curl -I http://example.com ...
1
vote
0answers
28 views

NGNIX server blocks didn't work

I have 4 websites on VPS ip 104.207.148.242. I have been install NGNIX 1.8.1 successful. I do these steps: Make web directories: sudo mkdir -p /var/www/codingvn.com/html sudo mkdir -p ...
0
votes
1answer
23 views

nginx enable fastcgi_cache dynamically?

I try to find smart way of enabling fasctcgi_cache on demand the default way of it is enable by default unless you do fastcgi_cache_bypass true; fastcgi_no_cache true; and I try to achieve the ...
0
votes
0answers
17 views

Debugging nginx proxy “Connection timed out”

I have nginx in front of a nodejs started by pm2. We're getting some errors and I can't figure out their source. According to ELB it's a timeout, but it's trickier. ...
0
votes
1answer
29 views

Nginx proxy_pass redirecting to wrong URL

I've setup Nginx/Apache2/Wordpress to using proxy caching, to prevent excess server load (shit theme and plugins). It all works, however once you hit Wp-Admin, it redirects to http://backend:82 ...
1
vote
0answers
19 views

Nginx Not Loading All Images Properly: Upstream Response Buffer?

I have a Wordpress site running Apache/Reverse Nginx. After adding a subdomain my nginx continues to pull images from the IP rather than the domain, how can I specify it to pull images from a domain? ...
1
vote
1answer
46 views

nginx reverse Proxy - rewrite source IP in HTTP Header [closed]

I have the following infrastructure: RaspberryPi with opensource smart home software (fhem) RaspberryPi with nginx to use it as reverse Proxy for external connection ro rpi with smart home software. ...
1
vote
0answers
49 views

Checking HTTPS setup on Apache/Nginx before using

You have just got a new HTTPS (SSL/TLS) Certificate, and what you hope is the correct Intermediate Certificates. This is setup in Apache with: SSLCertificateKeyFile /etc/ssl/www.example.com.key ...