nginx is an open-source Web server and a reverse proxy for HTTP, SMTP, POP3 and IMAP protocols, aimed at high performance and low memory usage.

learn more… | top users | synonyms

0
votes
2answers
264 views

Host a server with NGINX using VPN behind a NAT

so I was hosting a server using NGINX on a Raspberry Pi using a T-Mobile mobile router. All was working fine, till I noticed today that T-Mobile started to put me behind a NAT sometimes. So I heard ...
0
votes
1answer
1k views

nginx deny rule and allow rule not working

first i have this in my nginx.conf server { listen 80; root /home/user/files; index index.php index.html index.htm; server_name mydomain.com; location / { autoindex on; ...
6
votes
5answers
9k views

Problems to install nginx-full on debian 8

I have some problems to install nginx pkg (nginx-full) on debian jessie # apt-get install nginx-full Reading package lists... Done Building dependency tree Reading state information... Done ...
0
votes
3answers
806 views

Nginx wildcard subdomain redirect keeping query string

Trying to redirect wildcard subdomain to a new URL while appending the subdomain at the end of the URL, example: sub1.domain.com would redirect to www.newdomain.com/categories/sub1 server { ...
1
vote
0answers
30 views

nginx proxy - 502 bad gateway

First of all let me tell you that I am not an expert on web-servers and things like that. I'm trying to set-up a cloud system on raspi following this link: RasPi Owncloud However, when I try to ...
1
vote
1answer
1k views

phpmyadmin doesn't work after installing php5-mysqlnd

I am currently running into some problems with phpMyAdmin. I set everything up correctly and made sure everything worked. Then later after some developing on some pages I noticed I couldn't execute ...
0
votes
1answer
2k views

Nginx 502 Bad Gateway

When I open my site, I get a 502 bad gateway error. After looking at the error log file in /var/log/nginx/error.log, it mentions that "upstream prematurely closed connection while reading response ...
1
vote
1answer
14 views

How nginx is able to access its default virtual host files when selinux is enabled?

From what I can tell, nginx is running in httpd_t security context, while index.html, for instance, is of usr_t one: $ ps auxZ | grep 'nginx.*worker' system_u:system_r:httpd_t:s0 nginx 13734 0....
3
votes
1answer
19 views

Configuring nginx for my own purposes

I'm a noob in nginx configuration, but right now I have let's call it as my first task to setting up and configuring it. Can anyone help me please with editing nginx.conf according to the tasks below. ...
1
vote
1answer
2k views

Install nginx 1.8 on Centos 7

I'm trying to install nginx 1.8 on Centos 7. I tried the following steps: Install nginx repo from http://nginx.org/en/linux_packages.html wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-...
0
votes
1answer
54 views

Memcached Issue connection lost in between Centos

I have a application server on with I m running load balance with nginx.. my memcached is getting crashed in between. below is my memcache.conf file. # memcached.conf port=11211 pidpath=/apps/home/...
1
vote
1answer
41 views

extract servers' blocks from Nginx conf

I have the following conf file for nginx: user www www; ## Default: nobody ... events { worker_connections 4096; ## Default: 1024 } http { include conf/mime.types; ... server { ...
2
votes
1answer
30 views

How to restart ngnix server on CentOS

I recent buy a VPS on DigitalOcean and installed CentOS and follow the tutorial to install Ngnix Server, then I follow the tutorial to create a Virtual Host, but when I put this command to restart: ...
1
vote
1answer
72 views

Nginx reverse proxy redirection

I am using nginx as a reverse proxy and when I login in my web interface I am redirected to the proxied URL. I would like to avoid it and always keep the "server_name" as the URL. Is it possible? ...
0
votes
1answer
13 views

How can I install Nginx 1.8.0 on SMP Debian 7 (3.2.81-1)

Hope you can help I have spent all day trying to do this. I am using a cloudserver. I installed Debian 7 (minimal) from the hosting company's image. Logged in as root. I have added the following to ...
1
vote
0answers
21 views

Why can't I ping my cloud server IP running Nginx from my windows box? [duplicate]

I have a cloud server running Debian Wheezy. Webserver is nginx. If I go to www.mydomain.com in internet explorer I get my webserver just fine. However If I go to a command prompt on a remote ...
2
votes
1answer
1k views

SimpleSAMLphp, Nginx, Ubuntu 14.04

My setup Ubuntu 14.04 LTS 64-bit Nginx SimpleSAMLphp 1.13.2 My Nginx server block: server { listen 80; listen [::]:80; root /var/www/sso/html; index index.php index.html index....
2
votes
1answer
60 views

How to configure NGINX as a reverse proxy for different port numbers?

I have NGINX configured like this as a reverse proxy for http requests: server { listen 80; server_name 203.0.113.2; proxy_set_header X-Real-IP $remote_addr; # pass on ...
1
vote
1answer
1k views

Why does nginx prefixes the location context path to the root location?

I have a simple default website configuration located in my "sites-available" folder in nginx that looks like the one below. When I try browse to /hello I'd expect it to serve the index.html file ...
0
votes
0answers
20 views

AWS: nginx as LB apache as backend

I'm developing a new web platform for my business on AWS, the current configuration uses nginx+ as load balancer and some apache instances as backend. With the service of autoscaling I'm able to ...
2
votes
1answer
3k views

Port Mirroring using iptables - copy all traffic among nginx on :80 and apache on :8080

I have nginx running on port 80 and apache running on port 8080 I want to transfer all the traffic to both nginx and apache asynchronously i.e the performance of one server wont be dependent on the ...
1
vote
2answers
905 views

Using nginx for nagios instead of Apache

I want to install nagios but instead of using apache i would like to use nginx. I installed nagios-cli and it automatically brings parts of apache which puts a script into /etc/init.d/apache2 and ...
5
votes
1answer
3k views

How to publish a git repo via HTTP using nginx?

I've a CentOS 5 server at domain.fr. I am trying to set a subdomain so that I can use it with git : git.domain.fr My repositories are in /home/git (example /home/git/repos.git) I've installed git-...
1
vote
1answer
52 views

Nginx Reverse Proxy setup

I currently have a few hundred web applications spread across around 20 servers, and a reverse proxy sat in front of these running Pound and Haproxy. Pound is doing the http to https redirect and SSL ...
0
votes
2answers
56 views

Linux Debian Jessie sudo command keeps asking for password

I have recently configured a Symfony 3 site which involved me to set up some permissions on the /var folder. I had to do the following: $ HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]...
1
vote
1answer
53 views

Disk I/O and load average peaks once every hour

We have updated our server from Debian Wheezy to Jessie and from php5.6 to php7.0, but now we have a disk I/O and load average peak exactly every hour. The exact time depends on the system start time. ...
0
votes
0answers
45 views

Exchange apache2 for nginx problem

I installed apache2 and now I wont use nginx now. I could reached my html page on local network on 192.168.1.11. The html file is saved in var/www/html/index.html. Now I installed nginx. I try to ...
0
votes
3answers
182 views

How to install Nginx while Apache running?

I am trying to install nginx as a backend proxy for Apache and I get this errors: === Install Nginx from official repositories === Loaded plugins: fastestmirror, remove-with-leaves, tsflags, ...
0
votes
1answer
3k views

Nginx doesnt work, no permissions rights and cant find some dir

Im using Ubuntu 13.04. I've installed Nginx, configured it with ISPConfig.. then I wanted to install the passenger module. Because Nginx doesn't allow dynamic modules I had it compiled from source. ...
0
votes
1answer
112 views

to check the url is live [closed]

I have written a script to check if our three URLs are up else echo down. Now the problem is, even if the URLs are down in that script, I get the message "URLs are up" In the code I have greped 302 ...
1
vote
0answers
644 views

Improving TCP performance over a gigabit network

I have two machines both network cards speed is 10Gbps. The inbound bandwidth between the two machines is 10Gbps, the outbound bandwidth internet bandwidth is 500Mpbs. Both machines are using public ...
0
votes
0answers
40 views

HTTP Session Management while using Nginx as in “Round Robin” mode Load-balancer?

I'm trying to load-balance "2 Web Servers (running Apache/PHP)" by putting nginx in front of them. But I need to use Round Robin algorithm but when I do this, I can't manage to have the stable ...
3
votes
1answer
35 views

Wrong site appears in Nginx

I have a Debian Linux server with nginx configured for several sites (/etc/nginx/sites-enabled), every site showing on its own domain. Now when I remove a site from /etc/nginx/sites-enabled, querying ...
1
vote
0answers
109 views

Memory Leak trackdown

I have a server running Red Hat Enterprise Linux Server release 6.7. The server runs a number of java processes including a tomcat server with nginx webserver. The server has 12 GB of ram allocated ...
2
votes
1answer
27 views

how did my nginx conf get into an alternate location

I spent days tracking down why the default home page servied via nginx, no matter how i defined my conf, wasn't changing. i grepped to hell and back, and finally today, a result from hell, hell ...
2
votes
0answers
174 views

munin phpfpm plugin

I have setup PHP-FPM plugin All graphs works except three PHP5-FPM Average Process Size PHP5-FPM Memory Usage PHP5-FPM Processes setup /etc/munin/plugin-conf.d/munin-node [phpfpm_*] env.url ...
2
votes
0answers
56 views

Nginx with dnsmasq 'could not be resolved (5: Operation refused)'

I'm trying to set up a django site using docker, nginx and uwsgi: I have a nginx docker container working as a reverse proxy (called ceca-nginx-proxy) and another nginx (ceca-nginx) container that ...
2
votes
1answer
70 views

RTMP Streaming to Twitch

I'm streaming using OBS on Windows (QuickSync), pushing 20k bitrate to 2nd PC based on Linux (Debian Jessie 8.4.0, 64bit) via Gigabit Ethernet. The Debian system runs a minimal installation without X ...
1
vote
0answers
64 views

ModSecurity is defaulting to index.html on POST

I am trying to implement ModSecurity and I have this in nginx location / { ModSecurityEnabled on; ModSecurityConfig /etc/nginx/modsecurity/modsecurity.conf; index index.php; ...
0
votes
0answers
16 views

Git + Nginx - Is it safe to have https auth for cloning and pushing to repo, while remove any auth from gitweb block?

I have following nginx configuration on Ubuntu 14.04 to use together with git httpd backend and gitweb to anonymous browse of repo and push/clone with authentication. Is it safe to use such or I ...
1
vote
1answer
75 views

Running NGINX as a Reverse Proxy on Docker?

I'm trying to run nginx as a reverse proxy for Gogs using Docker. First I setup gogs and I can see a web page for it rendered on: http://203.0.113.1:3000/ But I want to have NGINX proxy it for me ...
0
votes
0answers
28 views

Route requests over interface

I have a raspberry pi setup for a few different things at home. Mainly it is my dns server and it is also a small webserver providing a reverse proxy to my internal camera system. I recently changed ...
3
votes
1answer
3k views

Logging request headers in nginx

I want to log custom headers from clients requests. I have added "$http_my_header" to my log_format and it is logged nicely for POST requests. All GET request, on the other hand, a logged with empty ...
0
votes
0answers
26 views

Why is a 'Trusted Network' Port More Secure?

I'm working through this tutorial ATM. http://www.cyberciti.biz/tips/using-nginx-as-reverse-proxy.html I'm planning on using NGINX for a simpler scenario but I'm curious as to why the tutorial ...
4
votes
2answers
63 views

Find IP addresses visiting /page1 but not /page2 from nginx access logfile

I need help with selecting specific data's from log files. I need two scripts: I need to select all IP addresses that only visited /page1 I need to select all IP addresses that visited /page1 but ...
1
vote
0answers
19 views

gitweb nginx with root url path

I have a very strange problem: I configure a nginx server with server { listen unix:/home/ingo/repositories/run/gitweb.nginx; server_name _; access_log /home/ingo/repositories/log/proxy....
0
votes
2answers
66 views

Can not change HTTPS to HTTP on Nginx

My problem is described on the title of this topic. I have a web server running by nginx. I registered a free domain name .tk and installed Let's Encrypt certificate. The following configuration is ...
3
votes
1answer
353 views

Updating Nginx server to 1.10 on Debian 8.4

I just installed the latest Debian version (8.4) on a virtual machine, and everything went fine. I then installed nginx server from the Debian repos and I got version 1.6.2, while the latest version ...
5
votes
5answers
2k views

nginx logrotate error on cron job

I'm running Ubuntu 14.04 LTS and nginx on a Digital Ocean VPS and occasionally receive these emails about a failed cron job: Subject Cron test -x /usr/sbin/anacron || ( cd / && run-parts ...
3
votes
2answers
6k views

Authenticate users via LDAP using nginx

I know how to auth the users via LDAP in apache2: # put the following in the VirtualHost <VirtualHost *:443> ServerAdmin user1@bar.foo.com DocumentRoot /var/www <Directory /&...