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
53 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
39 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
18 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
49 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
42 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
21 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
43 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
28 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
42 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
30 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
14 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
70 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
25 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
87 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
34 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
43 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 ...
0
votes
3answers
78 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
52 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
21 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
19 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
21 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
33 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
vote
0answers
29 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
51 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
24 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
62 views

Someone else domain is pointed to my IP [closed]

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
33 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
39 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
60 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
41 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
26 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
69 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
20 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
67 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
52 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
26 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; ...
0
votes
1answer
45 views

Nginx: Map URL to different path

I would like to have my server serve files from a different path to the specific url. Example: www.domain.com/some_catchy_name/image.jpg should serve file from ...
0
votes
1answer
28 views

Nginx location block rule

location /webapi/activate/register { rewrite ^/webapi/activate/register(.*)$ $scheme://test.example.com/help/woobe$1; } Will this serve both my need of redirecting users with /register? and ...
0
votes
1answer
25 views

Simple nginx server_name regex does not find match

I have an nginx box running version 1.8.1 on AWS. I am converting numerous DNS routing conditions into nginx and have encountered many DNS entries where *.yet_another_domain.* would be useful, but ...
3
votes
1answer
50 views

NGINX doesn't apply variables in /etc/default/nginx

I've have just updated one of my servers from debian 6 to debian 8. Previously everything worked fine. Now, NGINX fails to start with the correct configuration. I have set up /etc/default/nginx to ...
1
vote
0answers
17 views

Nginx X-Accell-Redirect gives 502 bad gateway

I want to allow users to download files from a remote storage but I want to first auth the request through my rails app. I want to hand over the proxying of the remote file to nginx when rails has ...
2
votes
1answer
51 views

Setting Port 443 ssl; loads different server directory?

Running Nginx + Centos 7.2 + Wordpress I am installing SSL for a domain of mine, and when I set the port in my serer configuration to listen 443 ssl;when I visit the domain, it prompts me with the ...
2
votes
0answers
38 views

Any versions of ModSecurity that works with recent versions of Nginx?

I'm building Nginx and ModSecurity together in order to use the OWASP- Core Rule Set Project. According to the modsecurity download page, the latest version of modsecurity (2.9.1) is not stable when ...
0
votes
0answers
35 views

Why is nginx returning 301 for domains not matching mine?

I'm seeing what looks like scanning traffic in nginx access.log (perhaps looking for an open relay?) HEAD http://www.sina.com.cn HTTP/1.1" -/- 301 0 GET http://www.qunar.com/ HTTP/1.1" -/- 301 178 ...
1
vote
2answers
34 views

Nginx Proxy rewriting with condition for domain [closed]

I am in a quite unknown situation but I believe it can be done using nginx proxy and url rewriting feature. What I want to have is: Have a website with multiple branding, so let's say I have 3 ...
0
votes
1answer
4 views

Passenger Standalone Throws Nginx 404

I have a script that starts a passenger standalone server for my rails app on boot. When I run this script from the command line it works as expected. However when its run by rc.local or crontab it ...
0
votes
2answers
56 views

nginx-proxy returns 503 error over http and https

I'm setting up nginx-proxy as a reverse proxy in front of Docker container running an app server. They're defined in separate Docker compose definitions. For some reason I'm getting a 503, but I don't ...
0
votes
1answer
18 views

Can I hide time and date and size in Nginx webserver directory listings?

By default Nginx webserver shows the date , time and the size of all uploaded files when you browse each directory . It's something like " 21-Apr-2016 07:38 719858135 " . Is there a way to ...
-1
votes
3answers
63 views

nginx SSL redirect fails

I've got a site I'm serving with nginx. I want it to default to https, so I set up a redirect and also HSTS. If you visit http://getsumbits.com, the request times out. If you visit the https version, ...