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
0answers
19 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
49 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
58 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
30 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
31 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
34 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
23 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
42 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
15 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
29 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
46 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; ...
0
votes
1answer
27 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
26 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
15 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
34 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
13 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
42 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
28 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
28 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
33 views

Nginx Proxy rewriting with condition for domain

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
2 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
35 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 ...
0
votes
2answers
43 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, ...
1
vote
1answer
24 views

Nginx conf template not working with dokku

I am stuck with the following nginx conf template: # Special characters - dollar signs, spaces inside of quotes, etc. - # should be escaped with a single backslash or can cause deploy failures. ...
-2
votes
1answer
33 views

Ubuntu server allow user to reload nginx service [closed]

User A have no root access on the server but he can edit his VHOST files of the nginx server. How I can allow that the specific user can run a command like service nginx reload when he change his ...
1
vote
2answers
88 views

JIRA becomes inaccessible after adding “address=127.0.0.1” in Tomcat connector

I have JIRA and Nginx running on the same server with Nginx installed to serve as a reverse proxy. From what I learnt from various sources, in the server.xml file, I must add an address="127.0.0.1" ...
1
vote
2answers
34 views

nginx default error page stopped working for some reason

This used to work: server { server_name example.com; location / { proxy_pass http://localhost:8888; error_page 502 /502.html; } location = /502.html { root /var/www/example; } ...
1
vote
0answers
28 views

nginx is ignoring root location header (location /)

I have self-compiled nginx 1.9.14 with http2 support: nginx version: nginx/1.9.14 built by gcc 4.9.2 (Debian 4.9.2-10) built with OpenSSL 1.0.1k 8 Jan 2015 TLS SNI support enabled So I have a ...
0
votes
1answer
37 views

ningx directory (21: Is a directory)

I'm trying to configure nginx on aws linux. I can get it working for one site, but when I try to add another I continually receive the following error: nginx: [crit] pread() ...
0
votes
0answers
26 views

TCP Balancer active/standby active/passive

I have two Servers, Server A,ServerB. running as TCP socket server. I want to a active/standby or /active/passive failover. that means: 1:Server A and Server B Running, route ALL connection to ...
0
votes
0answers
27 views

Owncloud running Apache with Nginx as Proxy

I'm currently working on running our own Owncloud (version 9). I've done this several times with Apache but I'm having trouble configuring it with Nginx in the front as a Proxy. Nginx config server ...
2
votes
0answers
36 views

HSTS exclude specific subdomain with “includeSubdomains”

I'm using HSTS with this header on my website: Strict-Transport-Security: max-age=15768000; includeSubDomains This works as intended and forces the browser to redirect all http connections to ...
1
vote
2answers
36 views

Django mobile template detection with nginx and varnish

I'm trying to get django-mobile (uses different template namespace depending on device type) when behind varnish and nginx. I thought I had it figured out, but with my current set up, it seems that ...
1
vote
1answer
39 views

Connect to a Tomcat Server from nginx as reverse proxy

I have a Tomcat server serving a web application and I have a Nginx server running in front of it as a reverse proxy. As an answer to my earlier question (Tomcat server behind nginx reverse proxy - ...
0
votes
1answer
44 views

Tomcat server behind nginx reverse proxy - how to block direct access to the server?

This may be a noob question but I'm still learning about web servers and reverse proxy setups. I have two servers running on the same network - one Tomcat and another one Nginx which I intend to use a ...
0
votes
1answer
29 views

How can I get Laravel app routing to work in a sub-folder of a WordPress site?

I've got an existing WordPress site and I need to get a Laravel app to work in a sub-folder called 'api'. This is an nginx site, so .htaccess redirects will not work, and the best solution if it needs ...
0
votes
0answers
22 views

Drupal along side Magento on Nginx

I have successfully setup Magento 2.0 and trying to install Drupal along side. My Nginx configurations: upstream fastcgi_backend { server unix:/var/run/php/php7.0-fpm.sock; } ...
0
votes
1answer
16 views

Add configuration to handle requests for different locations [closed]

I use cakephp for my projects.I have made local dns in etc/hosts for folders in /var/sites.My nginx config looks like location /{ add_header 'Access-Control-Allow-Origin' '*'; ...
0
votes
0answers
27 views

nginx 500 error when accessing large file from php script

I am using nginx/1.8.0 and to debug a large file upload issue I am facing in WordPress, I post a file with a simple script: Index file: <html> <!-- index.html --> ...
2
votes
0answers
25 views

502 Bad Gateway Error - exited on signal 11

I have an issue on a particular Magento store, on two different servers. The issue is that when I save admin panels, I get a 502 error. The values actually save to the database, as pressing back on ...
0
votes
0answers
17 views

nginx avoid duplication in configs

We are serving an app from our nginx which is used as a proxy inbetween the web and the app. The app is served in a location / {}-Block via proxy_pass. Except the name of the upstream in the ...
0
votes
1answer
31 views

Nginx Proxy Stops After 38 kB

I have a simple nginx 1.4.6 proxy running on a dedicated Ubuntu 14 server. My configuration looks like this: server { listen 80; listen 443 ssl; listen [::]:80; listen [::]:443 ssl; ...
1
vote
1answer
46 views

How to remove Apache webserver in Centos 6 [closed]

I use Centos 6 64 Bit. I have installed Reverse-proxy NGINX + Apache through Directadmin. But I want to completely remove Apache service and use NGINX. How can I do this?
3
votes
2answers
38 views

In Nginx, map specific subdomains to ports, redirect all others

I'm trying to accomplish three things: Map traffic, by subdomain, to one of several applications on different ports. If subdomain isn't recognized, redirect to www. Require HTTPS on all subdomains. ...
2
votes
3answers
41 views

Nginx: 502 Bad Gateway error with (111: Connection refused) to uWSGI socket while running django

I am building an app using an Nginx, uWSGI, Django and Postgresql stack. The app uses a Unix socket between Nginx and uWSGI. The file permissions on the socket is 775. But I still get this permission ...
0
votes
0answers
9 views

Nginx requires reload after reboot [migrated]

I'm running raspbian on RPi3 and I've installed and configured nginx to proxy to two different applications running on different ports: server { listen 80 default_server; root /var/www/html; index ...