nginx (pronounced "engine-x") is a lightweight, high-performance Web server and reverse proxy as well as IMAP/POP3 proxy server.

learn more… | top users | synonyms

0
votes
1answer
23 views

magento store views under sub folders with nginx

Can someone please explain how i can get nginx to reocgnise a store view in magento under it's own sub folder. i have a store.. with the following code in my nginx config file. location ~ \.php$ { ...
0
votes
0answers
27 views

Nginx proxy_pass and redirect

I tried to clean up my urls on my reverse proxy nginx config. My config looks like this upstream blog { ip:port; } server { listen 80; server_name domain.tdl ...
1
vote
2answers
46 views

Windows XP invalid certificate on Nginx

I migrated my SSL websites and certificates from Apache to Nginx and from that moment all Windows XP clients does not recognize the SSL certificate (it is a wildcard certificate issued by Trustico). ...
0
votes
0answers
21 views

Nginx Redirect - Too many stops an issue? [on hold]

I've been researching this issue for a while now and come up with quite a few conflicted results. Basically when entering our webpage we want you taken to https for seo and security purposes. I'm ...
0
votes
1answer
19 views

Does whitespace matter in nginx conf files?

I have an nginx conf file that due to using environment variables, I have a shell script echo, this file I refer to as nginx.conf.template, then I place the echoed reult into the actual nginx.conf, ...
0
votes
0answers
34 views

no module named 'project' in gunicorn using Django 1.8 & python 3.4

I've deployed with ansible a project using Django 1.8 and python3.4 in a virtualenv folder. For my projects including settings and wsgi in a config folder it works, the deployment is fine and it ...
0
votes
0answers
17 views

Nginx - Wordpress in a Sub-directory

I am running wordpress in a sub-directory /wordpress, I want it to be served at root. I cannot change the application root to /wordpress, because i have a core php application at root, which runs as ...
0
votes
1answer
61 views

haproxy-varnish can't reach 6k requests

Issue I can't reach 6k requests/seconds. I get a lot of timeouts. My response time goes as high as 26 seconds. Intro I am setting up a server that will host a 100MB static-website. The thing is ...
0
votes
0answers
27 views

Getting recv() failed (104: Connection reset by peer)

The following issue happens only when i use Laravel's @include to include other blade templates into main layout: /etc/nginx/error.log 015/06/25 23:42:34 [error] 3374#0: *1 recv() failed ...
0
votes
0answers
16 views

Nginx User Directories

I am trying to configure nginx so that when going to http://example.com/~user/ it will load files from the /home/~user/www/ directory. I have found a script that seems to work for .html files but ...
0
votes
0answers
15 views

nginx alias configuration and 404 redirect

I have an alias for phpMyAdmin in Nginx like so: location /phpmyadmin { alias /usr/share/phpmyadmin; index index.php; auth_basic "Restricted"; ...
0
votes
0answers
18 views

How can I redirect all requests to non-matching server_names if I define multiple server_names?

What I want to achieve: I have several domains, subdomains, etc., all of which point to the same nginx vhost. Right now, only one domain (the "correct" domain) is configured in the vhost file: ...
0
votes
0answers
30 views

Very basic nginx configuration failing

The following is my nginx configuration: user www-data; worker_processes 4; pid /run/nginx.pid; events { worker_connections 768; multi_accept on; } http { server { listen 80; listen ...
0
votes
0answers
18 views

Remove directory from URL using NGINX as a reverse proxy

Below is my NGINX configuration: server { listen 80; server_name subproject.domain.com; root /usr/local/tomcat/webapps/subproject/; location / { proxy_pass ...
0
votes
1answer
25 views

Nginx Error 500 page no-cache

This doesn't make much sense, but it seems like when nginx serves up an error 500, it sends along a header that the client shouldn't check for new content the next time it connects. I can get around ...
1
vote
1answer
34 views

HAProxy redirect traffic to NGINX getting error “The plain HTTP request was sent to HTTPS port”

What we are trying to is to have HAProxy to listen for all incoming traffic from port 443 (HTTPS & WSS) Below is our HAProxy config: frontend wwws bind 0.0.0.0:443 ssl crt ...
0
votes
1answer
14 views

Nginx not making proxy_pass when getting files (other than index.html) from Apache's Document Root

I think I'm chasing my own tail here and I've decided to ask all you gurus. I have two machines, one has a reverse proxy Nginx and the other an Apache running several virtual hosts. The nginx ...
1
vote
2answers
109 views

How may I guarantee NGINX won't serve the wrong site?

To help explain my issue, let me create an analogous, but fictional backstory. Let's say I have a friend, Sarah, who makes her living through a web cam. And let's say this source of income is ...
-1
votes
3answers
57 views

Syntax error in nginx config file [closed]

I am trying to configure nginx on my Raspberry Pi B+ running Raspbian. Following this guide compiled and adapted by Pestmeester I managed to configure http server on port 80 and the site is up and ...
1
vote
1answer
148 views

Dynamic IP address

When a server (nginx, apache) is listening on all interfaces (0.0.0.0), what happens when one of the interfaces goes down or is modified (perhaps changes the IP address), will the server still be ...
0
votes
0answers
7 views

NGNIX limit_per_ip best for 100-200 users from same IP

so i am setting up a web server running ngnix and have it all nice and running, however after some load testing i have noticed a lot of requests are getting 503 errors due to the limits set by ngnix ...
0
votes
1answer
25 views

NGINX and failed (12: Cannot allocate memory)

could someone be so nice and explain me how to solve this problem? in log nginx print: 2015/06/24 11:12:19 [alert] 2151#0: mmap(MAP_ANON|MAP_SHARED, 33554432) failed (12: Cannot allocate memory) ...
1
vote
1answer
39 views

How to use two ssh daemons on one server using nginx or haproxy

First of all, I am new to haproxy and nginx. I would like to know if it is possible to use nginx or haproxy to receive all ssh requests, and forward them to two different ssh deamons based on the ...
0
votes
0answers
16 views

Proxying a Flask app with gunicorn and nginx

I have a Flask application that is currently being server on a machine (call it first_vm) using the following command in supervisord: gunicorn run:app -b 0.0.0.0:8002 -k ...
0
votes
0answers
12 views

Nginx rewrite URL during proxy process

Situation: I wish to host several services for personal/family use on a machine in my house. I want to protect these services with https, but wildcard certs are very expensive, so I am attempting to ...
0
votes
1answer
29 views

HTTPS to HTTPS reverse proxy with nginx

I have an Apache webserver configures with an SSL certificate. I have to put it behind a proxy, from some reasons. I'd like to configure the proxy (nginx?) to works as simple relay, from HTTPS to ...
0
votes
0answers
20 views

Nginx Default/Welcome Page Suddenly Returns

I installed Nginx a number of months ago and deployed some code. I obviously deleted the default index.html Nginx default page. I know this for certain as PHP was not installed and so index.html was ...
0
votes
2answers
19 views

Multiple SSL on NGINX with shared settings?

I have an NGINX development server. I have a large number of configuration directives which drive various features of the server. I want to be able to access the server via SSL. The problem is that ...
3
votes
1answer
58 views

How does nginx distribute traffic among IPs associated with an upstream DNS name?

With this configuration: upstream some_upstream { server some-elb.us-east-1.elb.amazonaws.com:80; } If some-elb.us-east-1.elb.amazonaws.com maps to 2 IP addresses, how will nginx distribute ...
1
vote
2answers
28 views

How do I change the username nginx/PHP creates files as

Is there a way in which nginx/php can be configured so it creates files with a specific user. For example when a drupal/wordpress site uploads a file the user is assigned like: john:www-data ...
0
votes
0answers
40 views

nginx won't listen ipv6

I'm running a nginx server (1.8.0) and I want to listen both in ipv4 and ipv6. But even with the right listen statement (and a restart of nginx of course) a netstat -tlp | grep nginx return tcp ...
0
votes
0answers
10 views

Hashlimit rule blocks my server

I am using an nginx as a proxy on port 9883 to forward all the requests to an apache server running on the same machine, on port 8888. I am using the following iptables rule to decrease the chances of ...
0
votes
1answer
36 views

make nginx ignore site config when its upstream cannot be reached

There are multiple site config in my nginx, and when I restart the machine, if one of the sites' upstream cannot be reached, nginx won't start at all, and those healthy site won't start as a result, ...
-2
votes
1answer
20 views

Error: Webpage has a redirect loop

My current setup is the following: server { listen 80; listen 443; root /usr/share/nginx/www; index index.html index.htm; server_name localhost; location / { try_files $uri $uri/ ...
0
votes
0answers
33 views

Possible to override $fastcgi_script_name in Nginx?

Sometimes you have to override the fastcgi_param SCRIPT_FILENAME used for certain requests in Nginx. But if fastcgi_param SCRIPT_FILENAME is part of an include file such as fastcgi.conf that's ...
1
vote
2answers
114 views

NGINX HTTPS Reverse Proxy - Fast TTFB but low concurrency

I've got an application that runs: NGINX (SSL) => VARNISH (CACHE) => APACHE/PHP. Running ab benchmark, I'm able to achieve 30k+ requests / second on varnish layer (via HTTP) via a EC2 t2.small ...
0
votes
1answer
18 views

NGINX - conditionally allow or deny IP

Is it possible to conditionally allow or deny IP in NGINX? This isn't allowed. if($example){ deny all; } if ($example2){ allow all; }
0
votes
1answer
40 views

Rewrite Rules nginx

I am trying to configure rewrite rules for my site running on nginx. If someone lands on the website, i want them to see contents of mysite.com/wordpress but the url shouldn't change, it should ...
0
votes
0answers
30 views

Sub Domain Not Working on Nginx server with Apache Handling PHP

I have a domain setup and it is working. However I cannot get any sub domains working. I am trying to setup a sub domain right now for phpmyadmin. I am using Nginx as a reverse proxy for Apache with ...
0
votes
1answer
48 views

Nginx is running on server but won't serve static files

I've installed nginx on a client's Digital Ocean Node.js Ubuntu 14.04 droplet with sudo apt-get install nginx however, I cannot access the server's static files from the web browser. Having installed ...
0
votes
1answer
33 views

How to do load balancing with nginx

I need to use server as load balancer and web server at the same time. Here is my nginx config for website: upstream load_balancer { least_conn; server localhost; #server ...
0
votes
0answers
21 views

NGINX doesn't start on CentOS 7 reboot (fail on try to bind ipv6 address)

I have installed nginx / 1.8.0 on my server (CentOS 7.1), but does not start automatically after restart due to this error: 2015/06/20 10:34:11 [emerg] 827#0: bind() to [ipv6-address-here]:80 failed ...
0
votes
0answers
14 views

Allow different file size upload per location?

I saw that you can specify the client_max_body_size based on the location, but I can't make it work. I followed the documentation on Nginx that explain the order of loaded locations, but it doesn't ...
-1
votes
1answer
153 views

huge traffic from POST 123.249.24.233/POST_ip_port.php

222.186.129.5 - - [19/Jun/2015:16:56:28 +0000] "POST http://123.249.24.233/POST_ip_port.php HTTP/1.1" 301 184 "http://123.249.24.233/POST_ip_port.phpAccept: */*" "Mozi$ 222.186.30.111 - - ...
0
votes
0answers
12 views

Nginx alias, with query vars

0 down vote favorite I have a directory alias, with the next configuration location ^~ /sub-site { alias /usr/share/nginx/html/sub-site/public; try_files $uri $uri/ @sub-site; location ~* ...
-1
votes
0answers
32 views

NGINX SSL Reverse Proxy Cache Caching Content only for individual clients

We are having some trouble setting up NGINX as a reverse SSL proxy cache. We have successfully got everything working except the content caching feature. The caching feature works, and displays a ...
0
votes
0answers
6 views

Transparently recreate dependency Docker container

I have usual setup with Java web server and an Nginx as a reverse proxy each in it's own container. In Nginx I have configured a fallback page that is shown to users when backend (web server) is not ...
1
vote
1answer
21 views

Install mysql-php5 to specific php file

I'm running an Ubuntu OS 14.04 hosting Nginx with Zend Server and Apache listening on separate ports. I managed to install Zend Server without any hassle. In an attempt to run Apache beside Nginx, ...
0
votes
2answers
25 views

Redirect wildcard subdomains

I'm new to nginx and just looking for some advice/help. I've got two domains, the original domain oldsite.com and the new domain newsite.com. I'd like to setup a 301 redirect from *.oldsite.com -> ...
1
vote
2answers
49 views

Keeping mutliple Linux instances up to date

I am running a Linux VM in Azure (nginx). I want to add multiple instances so that it can be load balanced. What I can't get my head around is how I change, for instance, the nginx conf and apply it ...