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
24 views

Amazon Linux cannot access nginx on port 80

I have installed nginx on my AMI by yum sudo yum install nginx And then, I open all port in my AMI security group All traffic - All - All - 0.0.0.0/0 And then, I start nginx by command sudo ...
0
votes
0answers
18 views

Unicorn not setting ENV variables for Rails on a Droplet on Digital Ocean

I started out with the Rails Droplet, made some changes, wiped some keys, and then created my own image. I started from this tutorial: ...
0
votes
1answer
15 views

Nginx - how to set up projects with root in different directories

I'm just starting to learn about web development and server administration and I have a simple nginx web server setup on a Raspberry Pi. Right now, my server serves files only from one directory, ...
1
vote
1answer
22 views

Nginx Stress Test with httperf - Large Data Transfer Differences from Apache Server

I'm running a simple httperf stress test on a quad-core Nginx server, pointed at an HTML/PHP document. Large connection rates quickly begin experiencing high connection and response times (see the ...
1
vote
1answer
22 views

Nginx config subdomain exhibiting strange behaviour

I've got two identical droplets running on digital ocean. Both running Ubuntu 14.04 with nginx, gunicorn and Django. I am trying to park a subdomain of mine onto the IP of one of the droplets. On the ...
0
votes
1answer
27 views

How can I replace Access-Control-Allow-Origin header in proxy response with nginx

I am using a simple nginx instance to proxy REST calls to another server. The purpose of my proxy is to allow the use of cookies for authentication. I have it working, except for one problem. The ...
0
votes
1answer
24 views

Return client IP and any proxy IPs in nginx

A couple of years ago I configured an nginx installation to return the client's header (or at least past of it) in the response header when a request is made to a specific location on an nginx server. ...
0
votes
2answers
30 views

How to configure HTTPS Nginx + Pagespeed + Varnish + Apache?

I currently have the following set-up: Nginx (https) => ssl offloaded => Varnish (http) => Apache (http) I want to add mod_pagespeed or nginx pagespeed in the mix. Any ideas where to add it? Should ...
0
votes
0answers
21 views

Nginx redirect on query parameter, how to avoid loops

I'm trying to accomplish the following: listen to all incoming requests, and if a certain query parameter exists, redirect to another location with that query parameter set. My problem is, that I ...
1
vote
1answer
24 views

Nginx as reverse proxy in front of Apache

Current Setup Single CentOS 6 VPS with 6G memory running apache 2.2, mariadb & PHP via FastCGI. Server has mostly wordpress sites, but also has some other PHP based sites. Right now we are not ...
0
votes
0answers
23 views

NGINX load balance via client subnet

I have 3 frontends with web application in different subnets. I want to use nginx as load balancer, but I want balance clients via client subnet. For example: frontend1 - 1.1.1.10 frontend2 - ...
0
votes
0answers
26 views

nginx + node.js = failed while connecting to upstream

I try to use Iframely. I install the self hosted version on my server ubuntu + nginx: [https://iframely.com/docs/host][1] When i start node like this: # node server Iframely works well Otherwise, i ...
-3
votes
1answer
19 views

php5-fpm works for a bit and then stops (nginx/wordpress) [closed]

I'm running wordpress on an nginx/php5-fpm setup and every few minutes, php stops working. When someone tries to subscribe, it works at first and then it stops and takes the user to a 500 server ...
0
votes
3answers
52 views

Passing multiple https domains through Elastic Load Balancer

I just moved a site from one domain to another. It's still on the same servers behind an AWS Elastic Load Balancer. I also changed the certificate on the load balancer to one for the new domain. The ...
0
votes
0answers
37 views

Nginx Codeigniter have double slash in url

im new to nginx and have the following problem: i tried to remove index.php, and config nginx to work properly with CI and done the following config server { listen 80; listen [::]:80; ...
1
vote
0answers
52 views

Nginx proxy with varying source address

I have a working nginx configuration to proxy all requests to a server from a range of source IPs. I currently have 20 source IPs set up, and the configuration is quite massive. I removed the other 18 ...
0
votes
1answer
28 views

Nginx .php scripts restriction in subfolder

I would like to deny external (from web) access to some PHP files related to MoxieManager. Whole MoxieManager is in www/moxiemanager folder, where www is accessible from web. Now I tried this ...
-1
votes
1answer
21 views

Change URL in Nginx Config

How can I change url to go to only one location rather than request coming from. URL : www.example.com/blog is going to /var/www/blog (which is correct) www.example.com/blog/abc should go to ...
0
votes
2answers
48 views

Nginx serve plain file if exists else serve /index.php

I want Nginx to serve any requests for static files on its own, but if the file doesn't exist, then serve index.php which will handle it all Currently my configuration looks like this, server { ...
0
votes
0answers
25 views

Gunicorn Flask Deployment with Supervisord doesn't find command on boot

I am deploying a Flask application with Gunicorn, Nginx and Supervisord. Here is my config file for the application: [program:apwd-flask] command = /home/aaron/dev/apwd-flask/venv/bin/gunicorn ...
0
votes
1answer
22 views

Wordpress Subfolder issue with Nginx Configuration

I am using wordpress and it's a multi-site subfolder config. - www.xyz.com is pointing to /var/www/project (Working) - (Wordpress blog) www.xyz.com/blog is pointing to /var/www/blog (Working) - ...
0
votes
1answer
31 views

Multi-site Subfolder Nginx Configuration

I have Nginx server. Currently, I have two projects: www.xyz.com -> /var/www/project/public; (This is working) www.xyz.com/blog -> /var/www/blog; (Error: This webpage has a redirect loop) How can ...
-1
votes
2answers
35 views

nginx 1.8.0 ssl configuration root location behaving unexpectedly

I bump into this problem. I recently install nginx 1.8+ on a centos 6.7 along with PHP-FPM (5.3+). The installation was fine and setting up the virtual host was okay too but when I create a secure ...
-1
votes
2answers
26 views

How to host multiple apps on one server and point multiple domains to them?

I am trying to figure things out and I am confused. I know some things but not enough. I know that domains actually point to the IP address of a server. So if I want to have two apps, they both have ...
0
votes
0answers
15 views

How to debug “host not found in upstream app_server”?

I created a fresh django (digitalocean) droplet on ubuntu 14.04, pointed my domain registrar to the DO nameservers, used sslmate to purchase and store the relevant ssl files on the server, and updated ...
-1
votes
1answer
18 views

Why is my nginx reverse-proxy not caching anything?

I'm following this sample configuration from the Nginx docx. Reverse-proxying works fine except that it isn't caching results. Here is my nginx.conf: user http http; worker_processes 1; events { ...
0
votes
1answer
24 views

How to set up NGINX reverse proxy while preserving relative urls of static resources?

I'm attempting to set up a reverse proxy using proxy_pass in NGINX. The page loads fine but all the static assists (js, css, imgs) that use relative urls break because it prepends the host name of the ...
-2
votes
1answer
29 views

SSL proxy nginx cannot reach server by domain name

I am having an odd issue. I configured a SSL proxy with Nginx serving a website in HTTP which is on 127.0.0.1:1195 (example.com is in my hosts pointing to 127.0.0.1). For some reason : ...
1
vote
0answers
27 views

Which permissions should I set to dhparam.pem?

I am generating Diffie-Hellman parameters for the ssl_dhparam directive in the SSL configuration of nginx. The file dhparam.pem is created with the command openssl dhparam 2048 -check -out ...
0
votes
1answer
49 views

ssl nginx wrong path

i am trying to configure ssl on nginx server but it show me the wrong directory.. http on port 80 is ok, https on 443 no this is my formazioneturismo.com.vhost fastcgi_cache_path ...
0
votes
0answers
62 views

Cannot start Debian 8 (Jessie) after installing PHP 7

I've just installed PHP 7 on my VirtualBox VM (host Windows 7, guest Debian 8). Links: german how-to on got-tty.org, Dotdeb blog article "PHP 7.0.2 for Jessie", Dotdeb blog article "Instructions". ...
0
votes
2answers
27 views

Drupal 7 login does not work on NGINX after enabling SSL with Letsencrypt

I followed the excellent Digital Ocean tutorial and the SSL cert verifies as valid. However the Drupal login to access the admin no longer activates and the page just reloads to itself. I enabled ...
-1
votes
2answers
43 views

Making php use specific network interface / IP

TL;DR: Is there a runtime or php.ini directive for IP/network interface? Setup: Debian, NginX, php-fpm The machine has multiple IPs configured in the network interfaces. Each virtual host in NginX ...
0
votes
1answer
40 views

Prevent nginx proxy_pass 302

I have two server blocks defined on my server to perform various redirects. In the simplified example below a 302 redirect is issued. I would like to proxy this request transparently to the user. How ...
-1
votes
1answer
27 views

NGINX wont start: localtion directive is not allowed

Nginx is not starting or restarting, and gives the error: "nginx: [emerg] "location" directive is not allowed here in /home/admin/conf/web/nginx.conf:100". I understand that this is because a ...
0
votes
2answers
65 views

What is wrong with my nginx reverse proxy configuration, with single server (and more later)

I'm trying to get an nginx reverse proxy setup working. I have two web servers set up, once with nginx, and one with apache2. I'm currently not able to get it working with just the nginx server, so ...
0
votes
2answers
16 views

Nginx - Caching/processing of data when uploading a file over a reverse proxy

I am running multiple Virtual Machines (Proxmox) which each have limited storage amounts. As I am also running a File-Uploading service, I am interested if a Reverse Proxy needs more than 30GB of ...
0
votes
0answers
39 views

Zimbra Admin Page White Screen

I'm having an issue where my zimbra admin page (https://zimbraurl:7071/zimbraAdmin) is only showing a white page, F12 is giving me this error. I'm running version 8.6.0_GA_1191, I've gone though ...
0
votes
2answers
22 views

Uninstal the nginx configured with RTMP - ubuntu

I configured the nginx according to the vultr , Then i had to remove it , so i removed it using sudo apt-get --purge remove nginx and after that sudo apt-get autoremove . No error till now . But now ...
0
votes
2answers
52 views

Requests made to a website with a different domain/url in log files, hacking attempt?

in one of my websites I am logging all url requests made to the server. I log that data for stats purpose to improve the website. The logs look like http://example.com/search 2016-01-12 ...
-1
votes
1answer
173 views

port 80 is open by iptables but Connection timed out

I have nginx on my server, I run the script below to add rules to iptables: #!/bin/bash ip=/sbin/iptables services='22 25 53 80 443 5432 8000 8080' $ip -F; $ip -t nat -F; echo -e "Opening port 22 ...
0
votes
1answer
34 views

nginx accept HTTP & HTTPS requests on two different ports

I have one nginx server setup(two config files) with two gunicorn web servers setup and running. One gunicorn is production and the other is staging. I want nginx to serve http requests to xyz.com ...
0
votes
1answer
21 views

nginx + php5-fpm + mysql too many queries per second?

I have a VPS Debian running a nginx webserver and 2 node.js servers, one with socket.io for suplying data for my website and another one for a bot. The socket server runs a lot of queries but I try to ...
0
votes
2answers
34 views

NGinx + Wordpress at sub URL converts domain to localhost

When I go to http://niklasrosenstein.com/blog everything is fine, but if I click on a link or go to some page lik http://niklasrosenstein.com/blog/shop I end up on http://localhost/shop. What am I ...
0
votes
1answer
34 views

Nginx: possible to resolve DNS dynamically in location block?

Currently I am using Nginx with Kubernetes. In my Nginx conf file I have the following proxy pass: location ~ /myPath/([\w-]+)/resources { rewrite ^/myPath/([\w-]+)/resources/(.*)$ ...
0
votes
0answers
18 views

HTTP Digest authentication on proxied server

I have a 1.) client, a 2.) nginx powered proxy server and 3.) some servers which addresses are unreachable for the client, the proxy handles the communication from the client to these servers. ...
0
votes
1answer
61 views

New SSL, Safari can't open the page b/c server unexpectedly dropped the connection (subdomain)

After much googling and Serverfault browsing I still have an SSL problem : Safari can't open the page at all, Firefox gives a "secure connection fail" after 5mn of inactivity (not browsing or ...
0
votes
0answers
16 views

How set root directory to share remotly with proftpd

I have done install and configuration proftpd and create user in fedora but after i use ftp client i can't access the root directory like nginx webserver folder ftp cilient only display/access public ...
1
vote
1answer
29 views

Ubuntu Nginx after blocking ip address, still showing up in logs

I have a server that keeps trying to brute force hack via xml-rpc post on a wordpress site. I've blocked the ip address in nginx.conf and noticed that I kept getting these errors in the log file, and ...
0
votes
1answer
36 views

OpenVPN and nginx port sharing : Adress already in use

I have an instance of nginx running on ports 80 and 443, and I would like to use openvpn with the port 443 in sharing. So in my server.conf I have this port 443 port-share 127.0.0.1 4433 proto tcp ...