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
6 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 ...
0
votes
0answers
19 views

manage and organize nginx vhosts config files [on hold]

I'm trying to organize my vhosts config files, actually I use the "standard": /etc/nginx/nginx.conf /etc/nginx/site-available/domain1.com.conf /etc/nginx/site-available/domain2.com.conf ...
0
votes
1answer
10 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
31 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
31 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
11 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
1answer
22 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
10 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
14 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
16 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
56 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 ...
0
votes
1answer
38 views

Nginx ignoring the server name

I have two server blocks server { listen 80 default_server; listen 443 default_server ssl; server_name www.example.com example.com; root /var/www/webpage index index.php; client_max_body_size 3800m; ...
0
votes
1answer
21 views

Nginx's location and proxy_pass missing a request when hash is present in url

I have this config server { listen 8080; access_log /var/log/nginx/access.log; root /usr/share/nginx/htdocs; index index.html index.htm; port_in_redirect off; location ...
1
vote
0answers
14 views

Loading Flash Content while opening an Image link

The following image is hosted at puu.sh (http://puu.sh/k0Hki.jpg), apparently it loads a swf with a .jpg extension in the url. The following is what chrome/firefox shows as the source (while using ...
1
vote
1answer
31 views

How to forward all http requests to https without breaking letsencrypt with nginx

I'm using Nginx to serve as a reverse proxy for Rstudio server and Shiny server for the purposes of securing the connection to these services. I'm using Letencrypt for free signed certs. I have this ...
1
vote
1answer
34 views

Nginx Https issue http automatically redirected to https

I have a config file and have a site up and running. But there is an issue if we go to the non-SSL page then also it redirects back to https. I have a site in Magento and it has base URL as ...
1
vote
1answer
14 views

Removing path segments with encoded values for nginx

I have a location block like the following location ^api/([^/]+)(/.+)$ { set $my_host $1; set $my_path $2; proxy_pass http://$myhost$my_path$is_args$args; } This works well for most ...
1
vote
1answer
29 views

php error [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers)

I am using ubuntu 15.04 in my dedicated server with 40 cpu cores and 160GB of RAM with one heavy traffic wordpress site running. I am using Nginx as the webserver and varnish as the cache server. My ...
1
vote
0answers
17 views

Setup nginx proxy_pass to follow correct according to protocol used

I have the below config location / { proxy_pass http://backend; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For ...
0
votes
0answers
25 views

friendly urls with / at the end of the url

I'm trying to set up the file "nginx.conf" for friendly urls. I have the following urls: / -> /index.php /view/ -> /view/index.php /view/client/ -> ...
1
vote
1answer
36 views

Load balancer displays Error 404 page

I got the following configuration: upstream backend { server xx.azurewebsites.net; server xxx.azurewebsites.net; } server { listen 80 default_server; listen [::]:80 default_server; root ...
1
vote
1answer
22 views

502 bad gateway errors after 68 concurrent users to website

I'm running into issues while doing some stress testing in jMeter. Essentially, we're hitting a hard limit of 68 concurrent users. As soon as the test ramps up to that number of users, we're getting ...
1
vote
0answers
9 views

Open Build System error, nothing provides dh-systemd(>=1.5) in Ubuntu 16.04 repository

I am trying to build a custom nginx package for Ubuntu 16.04 [link to my project]. I created my gpg signed files to be uploaded using the command Code: debuild -S -sa -k'mygpgkey' and uploaded ...
2
votes
1answer
37 views

Laravel EC2 Nginx PHP 7 scripts downloaded instead of executed

The php scripts are downloaded on Amazon ec2 server with nginx installed instead of being executed. This is my nginx conf file: user nginx; worker_processes auto; error_log /var/log/nginx/error.log; ...
2
votes
0answers
18 views

How to maximize utilization of fluentd server?

I have a fluentd server that is processing an average of 1000 req/s. This server is composed by 32 cpus. In this server are running 32 fluentd docker containers with the same configuration. The entry ...
1
vote
3answers
81 views

To SSL or to not SSL

Currently I have a website that serves a lot of mixed content I have the whole website under ssl. example.com All static content such as css js and a small amount of my own images such as logos ect ...
0
votes
0answers
25 views

301 Redirect from a url pattern with nginx

I'm trying to redirect www.mysite.com/blog/ and www.mysite.com/blog/* URLs to a single page www.mysite.com/news/ I tried to achieve this with the following (inside a server block): location /blog/ { ...
0
votes
1answer
35 views

Access local website without dns?

I got an nginx loadbalancer setup with 2 sites. The ip address of the loadbalancer is 192.168.123.10 I want to locally access the two sites to check if everything is working. But I'm a little puzzled ...
-1
votes
0answers
22 views

Can Apache work with PHP-FPM? [on hold]

I am very confused. I have installed apache on my ubuntu server. As my website grow, I wanted to speed up my processes. That is why I installed Nginx web server and php-fpm support for nginx via plesk ...
0
votes
3answers
50 views

Proper way to install Nginx on Ubuntu 15.10 after compiling myself

I just compiled the latest version of Nginx on Ubuntu 15.10 and installed it using dpkg -i nginx_1.9.15-1_amd64.deb However, the systemd service script was not created so nginx is not running. ...
1
vote
1answer
22 views

Map server to directive of domain in nginx

I was wondering if it is possible to map a domain directive to a server. In our case, we have a api which is served by a Rails instance, then we have a Frontend which is served from a Node server. ...
0
votes
0answers
18 views

fail2ban: regex to block \x00 requests?

Every once in a while my server goes down, and when I check my nginx logs, I usually see something like this: 78.37.54.31 - - [20/Apr/2016:20:58:51 +0300] ...
0
votes
0answers
14 views

nginx - cannot get my subdomain running fine

I have a server "emberhub.me" with one subdomain "test.emberhub.me" I want to use SSL on all ... emberhub.me and www.emberhub.me requests should display the 'standard' Nginx welcome page ( ...
0
votes
0answers
19 views

How do I investigate latency between my app server and web server?

I have a Rails application running on Thin behind an Nginx instance. When I first start the application, requests are served in a reasonable time but after a few (identical) requests, this suddenly ...
0
votes
1answer
29 views

Nginx Url Rewriting: Remove folder from the url

Im trying to rewrite a url like below: https://example.com/products/xperia-z5/ to--> https://example.com/xperia-z5/ But i want in the same time the url https://example.com/products/ to be ...
-1
votes
0answers
19 views

Cache update on the nginx

I use nginx as reverse webserver and cache server(jpg,html,etc). I want to update the cache in time after i do some changes on the realserver. I tried set the parameter Inactive with 1m. ...
0
votes
0answers
18 views

Gunicorn root view no longer works with SSL nginx proxy

I have a Django project that shows a login view on the root directory. Here's the url pattern: url(r'^$', views.login_view, name="root_login") This works on an unencrypted connection: when I visit ...
0
votes
2answers
48 views

Nginx Vhost conflicting each other

I wanted to use nginx as reverse proxy for the following sub domains api.example.com and monitor.example.com but the config settings of api.example.com is always overriding monitor.example.com . The ...
1
vote
2answers
21 views

Ngin, url:/search => run php /search.php, and url:/my => php my.php

Please help me configure Nginx: 1) I have a number of php scripts, and I want to run them with their URL without ".php" For e.g url /search -> run script "/search.php" url /bookmark -> run script ...
-6
votes
1answer
57 views

Someone else domain is pointed to my IP [on hold]

I've just done a routine reverse IP check. And saw that 2 domains are pointing to my IP. This is getting me really worried, as I was told they could be preparing to attack my server. What exactly ...
0
votes
1answer
29 views

Apply client_max_body_size for a single URL only

I want to allow client to upload files on our system, and I want them to be able to upload files larger than the default body set in nginx. So I've set the following in our site configuration: ...
0
votes
1answer
28 views

Excluding one URL from being redirected to HTTPS generates a loop with current NGINX version

I just updated my NGINX server on Ubuntu to the latest official version 1.9.15. Since then a config that I used for quite a while stopped working. In short, I redirect all traffic to https except ...
0
votes
2answers
31 views

Set “Expires” and “Cache-Control” headers on Nginx

I have a php website running on a DigitalOcean droplet (nginx server), and i also use Cloudflare. Recently, my website was hit by something that i yet did not understand.. as my CPU usage was usually ...
0
votes
1answer
29 views

How to store Cloudflare IP as an additional FastCGI parameter in Nginx? [duplicate]

I need to be able to know the Cloudflare IP for connections made to my server. This is so I can determine if a connection is made through Tor. To do that, I need to send the tool the IP that the ...
0
votes
1answer
22 views

Addon domain redirects to Main Domain

I have a VPS from Ramnode which I am using to host my primary domain http://african-dreamtravel.de/ and I went on adding another domain (http://www.lagerregal-pruefen.de/) to the VPS today. Although, ...
0
votes
1answer
39 views

Nginx - serving static files

What am I doing wrong here? This works: location / { alias /var/www/static/; try_files $uri index.html =404; } But this doesn't: location /hello { alias /var/www/static/; ...
0
votes
0answers
14 views

Single load balancer and multiple nginx reverse proxies

Right now, we have an nginx server behind a load balancer which act as a reverse proxy to our internal web server. We can add another nginx dynamically but what I would like to know is if it's ...
0
votes
0answers
27 views

SSL Error when pressing CTRL+F5 (overwriting cache) in Firefox

I have an nginx server which fails to correctly delive ssl, when a user presses ctrl+shift+r or ctrl+F5. These shortcuts reload the page and bypass the browser cache. It seems to work in Chrome and ...
1
vote
1answer
43 views

Block hidden (dot) php files

I want to block access to hidden .dot files, specifically php files in Nginx, but I can't find a solution. .ht files are hidden by default which is specified in following: location ~ \.ht { ...
0
votes
1answer
25 views

Nginx serving index.html fine, but requests for assets are bad

i have the following nginx config: server { listen 80; listen [::]:80; listen 443; listen [::]:443; server_name oreqizer.com; ...