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
0answers
33 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
1answer
247 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
0answers
24 views

Linux Debian Jessie Sudo Command keeps asking for password

I have recent 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|[_]www|[...
0
votes
3answers
168 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
0answers
16 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 ...
1
vote
1answer
28 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
106 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
640 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 ...
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 ...
2
votes
0answers
23 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 ...
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 ...
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
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
0answers
15 views

Nginx proxy pass configuration for deluge webui

I would like to configure nginx so that it pass request to the deluge web server from '/' not '/deluge'. I have no idea where is the web root of the deluge webui, I cannot find this information ...
0
votes
1answer
935 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; ...
3
votes
1answer
32 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
104 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
25 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
155 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
36 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
54 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
48 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
7 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
51 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 ...
5
votes
1answer
3k views

How to create a git repo 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-...
0
votes
0answers
24 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 ...
1
vote
1answer
897 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 ...
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 ...
-1
votes
0answers
13 views

Can`t access my EC2 instance via IP/DNS [duplicate]

I have created my first EC2 instance, where I found this VPS have public DNS and IP, but I can`t access it via browser. I have deployment to that instance via deployhq and it works fine. I can even ...
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
60 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
14 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....
5
votes
4answers
8k 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
2answers
48 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
210 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 ...
4
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
5k 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 /&...
0
votes
0answers
76 views

lsudo /sbin/ldconfig -v showing Garbage text

RHEL 6.6 When performing sudo /sbin/ldconfig -v while trying to follow a different stackoverflow question related to: sudo /etc/init.d/nginx restart /usr/sbin/nginx: error while loading shared ...
0
votes
0answers
18 views

zopfli --i1000 all css, js files in a directory and sub directorys

My servers OS is CentOS, with Nginx. I've enabled Gzip_Static_Module for nginx. Now after update of a website I need to gzip all the js, css files. Is there a way to search a dir like /home/user/...
-1
votes
1answer
25 views

apache2: Configuration error: No MPM loaded

I removed apache2 as it was giving error: AH00534: apache2: Configuration error: No MPM loaded. then I reinstalled it, using apt-get install apache2 but now it gives error: apache2: Could ...
3
votes
1answer
104 views

Configuring ulimit of `max open files` for daemonized nginx master process

I have an nginx-daemon running on a Debian (8.3). The nginx process occasionally runs into resource limitations when trying to write log files: too many open files. The nginx master process is ...
15
votes
5answers
40k views

Unable to Pull EPEL repository Metadata

Installing Nginx on Scientific Linux according this documentation fails: [vagrant@localhost ~]$ sudo su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epe l/6/x86_64/epel-release-6-8.noarch.rpm' ...
1
vote
0answers
22 views

Sudden problem with a rack/passenger ruby app: “Connection closed”

I have a Ruby 1.8.7 app which runs under Phusion Passenger and Nginx, for one of my clients, on an Ubuntu VPS. It's been ticking away happily for years, but yesterday ran out of log space (sending me ...
1
vote
3answers
5k views

How to fix an unknown internal server error (500) Nginx is giving me?

Nginx is giving me a 500 error that's driving me crazy. First of all I have a personalsite.conf archive inside /etc/nginx/conf.d/ where I have my server block. This is my server block configuration: ...
0
votes
0answers
188 views

Unexpected 302 error (Moved Temporarily) after login in my website

I have a website running with Nginx and PHP-FPM (www.example.com), however when I try to access www.example.com/user/login to access its administration and put the correct login info, it just reload ...
3
votes
1answer
68 views

Nginx requires reload after reboot

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 ...
1
vote
0answers
24 views

About second-level domain names corresponding to nginx server blocks

There are 2 second-level domain names and 2 corresponding folders, like this: domain name folder 111.aa.com /var/www/111.aa.com 222.aa.com /var/www/222.aa.com In nginx.conf,there are ...
0
votes
1answer
15 views

How to write the file `nginx.service` on centos 7.2?

I installed nginx from source on centos 7.2,and I need a file ——nginx.service . There is an example of mysqld.service, http://superuser.com/a/384525/577295 I imitate it and write like this: [Unit] ...
0
votes
0answers
48 views

Installing nginx from source error

OS is centos 7.2,installing nginx from source error: sslv2conftest.c: In function 'main': sslv2conftest.c:217:15: warning: 'currtest' may be used uninitialized in this function [-Wmaybe-uninitialized]...