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

0
votes
1answer
58 views

nginx with nginx communication using http2 without ssl

I've nginx-proxy and nginx-server docker containers. client browser < > nginx-proxy is http2 and 443 via proxy_pass. nginx-proxy < > nginx-server is http1 and I'd like to move it to ...
1
vote
0answers
25 views

Force nginx to close connection

We have a setup that looks like this: Client -> AWS ELB (tcp load balancing)-> NGINX (ssl termination) -> application server. We want to gracefully take application servers out of the load balancer. ...
1
vote
1answer
27 views

Nginx + Wordpress language redirect

i am currently trying to configure an Nginx installation with Wordpress multisite used for language support. The multisite is configured: mysite.com (not used) mysite.com/it mysite.com/en Basically ...
0
votes
0answers
23 views

Trouble with Passenger in multiuser RVM environment

I have Passenger 5.0.28 installed as a gem, and configured with NGiNX 1.9.15. In other environments where I didn't have to set up multi-user for RVM this works fine, but now I'm having trouble getting ...
0
votes
1answer
50 views

Modify cookie sent from PHP in nginx

I have a cookie that I need to be read in Javascript, so I need to remove the httponly part of the cookie from it. This is the cookie I need to modify: Set-Cookie: ...
1
vote
0answers
36 views

pecl install pecl_http fails - upgrading to php7 and http.so makes trouble

Similar issue: pecl_http failed to load So I wanted to upgrade to PHP7.0 and I believed all was fine. But I think I was missing somepages packages because i.e. I was not able to login into my ...
0
votes
0answers
18 views

Nginx & php5-fpm configuration according to need?

I recently moved from Apache to Nginx web server. I am using Joomla CMS with nginx & php-fpm. I don't really know to configure both of the services according to my server need. My amazon cloud ...
0
votes
1answer
19 views

Why does nginx need an auth_http entry for smtp reverse-proxy?

I'm an apache user normally, but I need to start using nginx as a reverse proxy for smtp (postfix). I've seen tens of examples online. Like this and this. All of them have an auth_http entry, which I ...
0
votes
2answers
64 views

Nginx redirect based on user agent

Here is my current nginx conf: server { listen 90; server_name www.domain.com www.domain2.com; root /root/app; location / { try_files $uri =404; } location ~ /([-\w]+)/(\w+)/ { ...
2
votes
1answer
33 views

is there benefit to http2 when having two nginx communicate?

I'm running docker images of nginx-proxy (jwilder) and nginx-webserver (vendor nginx container). nginx-proxy is in front of nginx-webserver. nginx-proxy supports http2, and it is enabled by default. ...
3
votes
3answers
201 views

Drain connections on restart of NGINX process?

I'm using NGINX 1.8.1 on CentOS 6 and 7. During our deploys, it is required that NGINX is stopped, the deploy executes, and NGINX starts again. Unfortunately, NGINX during a stop seems to just 500 all ...
1
vote
0answers
8 views

Latest GitHub source not being deployed properly by Opsworks

I have an Opsworks Rails Layer (nginx/unicorn) instance that has been running for a while, and I have successfully deployed my rails app to it many times directly from GitHub. Yesterday, I started ...
0
votes
1answer
36 views

Nginx always searches index.php in the wrong directory

I have a web root directory pointing to /var/www/html. I have several subfolders in /var/www/html where I host different projects. Example: /var/www/html/chatserver When I try to access http:// ...
3
votes
1answer
333 views

Debian jessie nginx with openssl 1.0.2

I am running debian jessie on my server and recently upgraded to new nginx web server with http/2 support (nginx 1.10). As today, it works great and webserver is delivering content with http2 ...
0
votes
0answers
29 views

NGINX proxy keeps losing connection to uWSGI backend

I've got a Docker NGINX host serving static web pages, and proxying to a Docker uWSGI backend. After a couple errors, I start getting 500s from the website. Looking at the NGINX logs, I see: ...
0
votes
1answer
40 views

Problems with using NGINX on an SSL-only site

I've configured a website to be 100% SSL, and its on a cPanel server with NGINX. I'm able to get the SSL part to work fine, but the IP address reported for site visitors is the IP address of the ...
1
vote
0answers
37 views

Use postfix through a proxy. How should it be configured?

Postfix by default uses ports 25, 465 and 587. In my configuration, I enabled TLS encryption using the option smtpd_use_tls=yes in postfix's main.cf. This makes all smtp communications encrypted as ...
1
vote
1answer
34 views

redirect EC2 nginx to different domain

I have a website mysubdomain.mydomain.com that needs to be redirected to myotherdomain.com/coming-soon The application, which has existing users, needs to be redirected to another site on a ...
-2
votes
1answer
47 views

Configuring OCSP stapling in NGINX

Should I concatenate all certificates(server + intermediates + root) or just(server + intermediates) for ssl_trusted_certificate directive in NGINX.
1
vote
1answer
55 views

How to forward url parameters from Nginx to my server's API?

I'm trying to create "user only" section and I managed to get this far, but I'm stuck. How can I send the requested url to my api? Here's my Express.js API route, very simple. User visits a link ...
0
votes
1answer
45 views

Mysql DB can't establish connection

I run a viral news site, it's running on a 30 dollar digitalocean vps currently, with wordpress and apache. The other day my post went viral and i was getting 250 pageviews per minute. After a ...
0
votes
0answers
105 views

How can I install nginx 1.9.5 on debian jessie?

I added theses lines to the "/etc/apt/sources.list": deb http://nginx.org/packages/mainline/debian/ jessie nginx deb-src http://nginx.org/packages/mainline/debian/ jessie nginx After that I've ...
1
vote
1answer
32 views

Nginx rewrite - remove substring at the end of URL

I have a faulty plugin that is generating URLs with /mobile at the end. I am trying to fix the plugin but in the meantime I would like to write a Nginx rewrite rule to redirect as shown below: ...
1
vote
0answers
32 views

Cant get socket.io to work on Elastic Beanstalk

I currently have an Elastic Beanstalk instance running with no load balancing, in future I'll be using Elastic Load Balancer. My EB Instance is sitting behind an nginx proxy, I'm aware to fix this ...
0
votes
1answer
42 views

Nginx server_name redirect

I am doing an mobile page redirect for my website,it success, but unfortunately it stay at the same domain name, exmaple: when i go johnson.com by phone it should go to m.johnson.com(Yes, this is ...
1
vote
1answer
35 views

nginx sub uri on another root

I'm stuck on an nginx rule : I have to use Nginx on our monitoring server, it uses Zabbix. I succesfully configured nginx for zabbix so that I can access monit.domain.com and it sends me to zabbix). ...
1
vote
1answer
49 views

Use of “sub_filter” in “IF” block under nginx config

I have nginx as reverse_proxy server for multiple applications running behind on various application servers. I want induce specific html/script into response content for set pre-registered urls. ...
1
vote
2answers
59 views

nginx : enabling gzip compression based on hostname

I have a single machine running nginx serving http traffic for multiple domains(using same Lua codebase). For some of the domains I would like to enable gzip compression. Is it possible to enable gzip ...
-1
votes
0answers
29 views

Nginx redirect when no server block for subdomain [on hold]

I have nginx setup as a reverse proxy for my node js app. I also have setup a wildcard subdomains to redirect all subdomain traffic to the same server when I proxy requests to the ip associated with ...
0
votes
2answers
61 views

nginx wordpress ssl mixed content

I have a wocommerce site for which I am trying to setup an SSL certificate for checkout pages. The HTTP version of the site is working file. Prior to switching to nginx SSL on apache worked fine. ...
0
votes
0answers
89 views

nginx PHP files downloading instead of executing

I'm trying to achieve following thing. I've main website under domain root directory. It's working fine. i.e PHP files are executed. After some time I've added "auth" directory with basic HTTP ...
1
vote
1answer
24 views

Wildcard Subdomains and Custom Domain Names

I have some questions regarding Nginx configuration with wildcard subdomains, and then how custom domains come into the picture. Here is my situation. Let's say I own the site awesome.com. When a ...
0
votes
1answer
44 views

http(s) non-www to www redirect nginx

This is my config: server { listen 80; server_name domain.com www.domain.com; return 301 https://www.domain.com$request_uri; } #server { # listen 443 ssl; ...
1
vote
0answers
26 views

Server CPU at 100 Percent and not responding using PUMA and Nginx

My Server CPU is at 100 percent and not responding using PUMA and Nginx after one or two days. I use 4 workers. Up to now I had a look at the problem with strace, which leads to the following Output ...
0
votes
0answers
13 views

Proxy video from GCS through nginx to prevent CORS problems

I have videos hosted on Google Cloud Storage. Since I have some trouble with CORS on iOS I want to proxy my hosted videos through nginx. The idea is that a client requests https://foo.bar/abc.mp4 and ...
0
votes
1answer
19 views

Pointing 3 domains to same Django app and using different urls to serve each

So I have three domains and three subdirectories in my django app. lets say my IP is x.x.x.x I want the app to work like this: url_visited_by_the_user content_served_from www.domain1.com/ ...
0
votes
0answers
16 views

How does nginx-plus calculates cache hit ratio

I'm creating a plugin to be compatible with nginx-plus live metrics, and I'm puzzled on how they calculate the cache hit ratio. In using their demo site as well as their demo API, but still don't know ...
1
vote
0answers
36 views

Plesk 12.5 Nginx proxy pass SSL to Node app on different port [closed]

Preface: tried installing JXCore's Node Extension for Plesk, and I can't get it to work. Gives me some error, and their support is not answering emails...... [IP ADDRESS] = real IP, example.com = ...
0
votes
0answers
37 views

Nginx server block with both IP address and server name for virtual hosts

I am having trouble with configuring virtual hosts with Nginx, and am wondering if that may be because of this remark in Nginx Http Server 2nd Edition, p.68 ...creating server blocks that you ...
0
votes
1answer
36 views

NGINX / PHP-FPM + SSL very slow

My application is served on an Amazon EC2 t2.small instance. When using the ab command to test performance. ab -n 3000 -c 100 mydomain.com HTTP Finished 3000 requests Server Software: ...
1
vote
1answer
37 views

Dockerized Apache + SSL behind NGINX as reverse proxy

I have two containers, one of which is running NGINX as a reverse proxy for serveral other containers. One of the other containers is running Apache with SSL enabled and configured. I have seen ...
1
vote
1answer
32 views

django uwsgi and nginx = 400 bad request

I moved my Django website and pip3 install Django. I use the same uswgi wrapper than on the install of server #1 and it works. On server #2, I get a 400 Bad request. If I stop the uwsgi server, I get ...
0
votes
2answers
41 views

Make nginx serve index.html if requested url is not found without using error_page

I have nginx configured to serve a single page React.js app as static content. react-router handles routing in browser. To make it possible for users to enter all urls (not just the domain ...
0
votes
1answer
114 views

I'm trying to catch brute force against /xmlrpc.php with fail2ban

I'm getting a ton of failed a ton of failed access: 185.103.252.174 - - [28/Apr/2016:15:09:16 -0400] "POST /xmlrpc.php HTTP/1.1" 499 0 "-" "Googlebot/2.1 (+http://www.google.com/bot.html)" ...
0
votes
1answer
24 views

Nginx proxy_pass proxies to the same server

I have an Nginx testing environment set up where I have 2 server blocks. The first is using server_name .DomainA.; and the second is using server_name DomainB.com; Along with this, my client machine's ...
0
votes
2answers
35 views

Nginx - rewrite root domain to point to specific Rails controller/action

I have http://foo.com and https://bar.com. When a visitor goes to http://foo.com I would like them to see the content on https://bar.com/pages/about Both domains are hosted on the same server using ...
0
votes
0answers
15 views

how to log client ssl handshake logs in nginx

I am using nginx for my servers and the nginx is being used as ssl termination point. Now I want to know the SSL handshake details of client. For example the Certificate information, cipher, ...
1
vote
0answers
26 views

Rails + Nginx + SSL - Allow no-SSL on some routes

I have a rails app being served by nginx. I have ssl enabled on all routes with this conf: server { listen [::]:80; listen 80; server_name domain.com; access_log ...
-1
votes
0answers
19 views

How can i change base url in nginx

I have this config server { server_name example.com; listen 80; # or whatever port location /site1 { proxy_pass http://example.com:1234; } location /site2 { proxy_pass ...
0
votes
1answer
63 views

How to use nginx with same host but different url for diff sites

I have different webistes serving on ports 8080, 8090 Now The only port i am allowed is 8085 from outside. Is it possible to do that myserver.com:8085/site1 go to 8080 myserver.com:8085/site2 ...