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

1
vote
0answers
11 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 ...
0
votes
0answers
8 views

nginx ssl_write returns SSL_ERROR_WANT_WRITE and retry after many seconds [on hold]

I'm using nginx-1.7.3 + openssl1.0.1j to do a https web proxy in front of my real server. I found there are always some requests' $request_time is much bigger than $upstream_response_time. I ...
0
votes
0answers
15 views

unable to setup chroot in ubuntu 14.04 [on hold]

strace /usr/sbin/chroot /opt/chroot/ opt/chroot/usr/local/nginx/sbin/nginx -t execve("/usr/sbin/chroot", ["/usr/sbin/chroot", "/opt/chroot/", "opt/chroot/usr/local/nginx/sbin/"..., "-t"], [/* 23 ...
1
vote
1answer
12 views

Multiple website on a single droplet with no Apache/Nginx

I have a single droplet at Digital Ocean and I host my website there. It's a standalone application with a built-in webserver. I want to host another website on that droplet as well. It'll also be ...
3
votes
1answer
38 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
14 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
12 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
22 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 ...
0
votes
0answers
18 views

where is nginx.lock file?

I am using centos 7.2,and I installed nginx 1.9.14 form source, wget -c http://nginx.org/download/nginx-1.9.14.tar.gz tar zxf nginx-1.9.14.tar.gz wget -O nginx-ct.zip -c ...
0
votes
0answers
11 views

how to open index.php instead of index.html on nginx server? [migrated]

Nginx server open index.html by default how to change that to index.php ? when i type my server ip it opens index.html instead of index.php there is no index.html file on server but there is ...
0
votes
0answers
23 views

NGINX and PHP Pools

We host quite a few client sites, and I've inherited a shared hosting ecosystem on DigitalOcean. We run a LEMP stack, and all sites were at the same permission access level as eachother. We are now ...
0
votes
0answers
23 views

Nginx + CentOS 6 + OpenSSL Library - Update System Version

CentOS 6 I'm running Nginx which is built with an earlier version of OpenSSL: Note: my linux skills aren't so strong with this kinda stuff so any advise or direction would be greatly appreciated. ...
0
votes
0answers
15 views

How to serve apache2 www sub directories from nginx while the domain does not change

I'm using nginx and apache on the same Ubuntu machine. nginx is using port 8080 apache2 is using port 8081 I want to serve directory from /var/www/directory with domain www.domain.com but I do not ...
1
vote
1answer
42 views

nginx won't restart

I am running Plesk on Debian Since i installed Plesk almost 6 months ago every time i restarted the server nginx would fail to start on boot and i would have to go and manually restart it. Now today i ...
0
votes
0answers
28 views

nginx start failed. reason: Cannot expand template file

I have problem with zimbra nginx when I restart it Starting proxy...Failed. Starting nginx...nginx: [emerg] could not build the server_names_hash, you should increase either ...
1
vote
3answers
136 views

How can I find which user is accessing a file using strace?

My actual problem is that Nginx is not able to render pages (403 forbidden) despite the permissions being set to appropriately (in my opinion) The directory of stackoverflow at default location: ...
0
votes
3answers
59 views

Nginx error nginx: [emerg] could not build the server_names_hash with zimbra

I have installed Zimbra 8.6 on CentOS 7 and I have changed the zmprov modifyConfig zimbraFileUploadMaxSize 5000000 zmprov mcf zimbraMtaMaxMessageSize 52428800 I have restarted the mailbox the I ...
0
votes
0answers
9 views

Tweak Linux Resources

We are running magento on VPS, which is facing a Numproc issue. According to our hosting provider, our server is exceeding the limit of numproc "400" & memory usage is also high. Because of this ...
0
votes
1answer
41 views

Nginx: proxy_store_access option doesn't seem to work

I'm using proxy_pass to handle file uploading via nginx for a Rails app, and it's working fine, , except for the file permissions. Here's the current config block: location ~ ^my_filename_regex$ { ...
0
votes
0answers
52 views

uwsgi , application not found

Ok so I have been trying to find a solution to this for 2 days now but I cannot seem to make much progress. I am running this on a nginx server but that appears to be fine. I copied over a python ...
2
votes
1answer
80 views

Opposite behavior of keepalive (nginx reverse proxy on ElasticSearch)

I am setting up a nginx reverse proxy for ElasticSearch (with HTTP Basic Auth) as described in this article. This is my nginx config file: events { worker_connections 1024; } http { ...
0
votes
0answers
224 views

Installation of nginx on Ubuntu 15.10 gives “Inappropriate ioctl for device”

I just installed ubuntu 15.10 in a container on my machine and want to install nginx. I run an apt-get update, and then sudo apt-get install nginx and I get an error message saying Inappropriate ioctl ...
3
votes
0answers
49 views

How can I perform an “alias” with nginx?

I am using the default nginx config for localhost, which translates requests to http://localhost to files in /home/velour/www. That's all working normal. Now I am trying to translate requests to ...
1
vote
0answers
136 views

Permissions on nginx log files

I have a PHP/nginx environment on OS X which is deployed to an Ubuntu server. On OS X, nginx is set up with Homebrew, thus my user ("joe") owns the files, whereas on Ubuntu nginx is installed with ...
4
votes
2answers
366 views

Let' encrypt - nginx - OCSP stapling

I would like to enable OCSP stapling in my nginx server. I'm using nginx version: nginx/1.6.2 debian Let's Encrypt certificate I'm really unexperienced in this matter, so it might be a trivial ...
0
votes
3answers
133 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
133 views

Nginx Log Rotation Doesn't Seem to Be Working Correctly

I discovered that my partition mounted as /var had filled up. In tracking down the disk usage, I found that my Nginx log file is huge, and it doesn't seem to be writing to the correct file. ls -ltr ...
0
votes
0answers
31 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 ...
1
vote
1answer
58 views

Where is the nginx executable on Debian? [closed]

I've installed the nginx-light package on debian, but I can't find the executable. It's not in /usr/bin, like it says on the official nginx website. Where is it, then?
2
votes
2answers
164 views

Cannot connect to localhost on port 4430

I am running vagrant from a virtual box with CentOS and Nginx installed. I've created a reverse tunnel from the vagrant box to a remote server but when I am trying to connect to my localhost on port ...
0
votes
0answers
51 views

nginx server never resolves

I have set up an nginx server which is a proxy for port 80 to http://127.0.0.1:3000, but the request never gets through. It just infinitely loads. I have tried sudo /sbin/iptables -I INPUT -p tcp -m ...
3
votes
1answer
79 views

Why does audit2why have nothing to do?

I know I have an issue with SElinux. So I am following a tutorial that will help me understand the nature of the file access problems I am having. That was I can still have SElinux enforce as supposed ...
0
votes
0answers
64 views

Does running fcgiwrap with nginx give the same added security as creating a new php-fpm pool for every site by hand?

Here's the nginx + fcgiwrap configuration I'm talking about. I don't understand what the main differences are between this kind of a fcgiwrap configuration and a nginx + php-fpm configuration. They ...
0
votes
1answer
47 views

NGINX not running as configured user

This is not a Joomla issue per se as I think it is more of a permissions issue related to NGINX. This was encountered while trying to set up Joomla. Read below but after testing I think this is more ...
1
vote
0answers
68 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 ...
0
votes
1answer
119 views

Suitable permissions for owncloud /data directory using nginx under centos

Having the following software: nginx web server centos 7.1 OS owncloud 8 Application https Web Browsing Protocol PHP-FPM After resolving the issue of /config directory permissions, we reached ...
0
votes
0answers
69 views

PHP-FPM Permission denied on folders

I get read/write errors on a new CentOS + Nginx + PHP-FPM server, this is muy configuration Nginx user nginx; [...] fastcgi_pass 127.0.0.1:9000; PHP-FPM user = nginx group = nginx listen = ...
0
votes
0answers
188 views

nginx + php-fpm error: failed to ptrace(PEEKDATA) pid: Input/output error

I'm seeing a few of errors like the one below in the php-fpm-error.log. We're running a Fedora setup with nginx and php-fpm and I'm just wondering what it means. Any ideas? ERROR: failed to ...
2
votes
1answer
123 views

FreeBSD jails - Nginx, PHP-FPM, Wordpress - Share folder between jails (read-only)

Question I want to seperate PHP (PHP-FPM) and Nginx into different jails. One jail with Nginx, and one with PHP-FPM / PHP / Wordpress. Nginx is good at serving static assets, so I would like to ...
1
vote
0answers
81 views

Hosting Dovecot and Postfix Behind nginx?

So I'm looking at setting up postfix and dovecot on a server that is currently hosting some web-sites via nginx, and I've stumbled upon the mail {} configuration option for nginx, but I'm having a ...
2
votes
1answer
254 views

Do I Need to Restart Nginx if I Renew My Security Certificate(s)?

So I'm setting up an nginx server with SSL enabled with a server definition something like: server { listen :80; listen [::]:80; server_name example.org; root /foo/bar; ssl on; ...
1
vote
1answer
31 views

Nginx redirects all domains to one website

I'm trying to setup a server with Nginx and PHP FPM and I ran into some trouble. I've set up an Nginx virtual host and a fpm pool for each website. The problem is that all domains are showing the ...
0
votes
0answers
16 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 ...
1
vote
1answer
246 views

Nginx virtual hosts for multiple LXC containers

I am having the following configuration: I have 5 LXC containers that are running nginx. On each container there are a couple of virtual hosts set up in nginx. That means for a container I have ...
0
votes
0answers
30 views

Error Output From HHVM Under Nginx

I have a web-server that I've set up with nginx with HHVM for handling PHP, and everything's working great except for one minor gripe; the location of PHP errors. When I was using PHP-FPM, errors ...
1
vote
1answer
140 views

Encountering issues when trying to host an ASP.NET Web Api on Debian using Mono and Nginx

I have a Web API that is using .NET 4.0 which I'm now trying to deploy on Debian. I've followed a few tutorials on how to do this, e.g. Running ASP.net Web API Services under Linux and OSx. $ ...
0
votes
1answer
42 views

WordPress subdirectory installation with Tomcat using nginx webserver

I'm running tomcat on main website using nginx proxy pass, now I want to install wordpress on the same domain as a sub-directory like this. domain.com/blog I used below config in nginx. location ...
2
votes
0answers
40 views

How to share common configurations amongst Nginx server blocks?

Hosting multiple sites with the same Nginx, and a lot of them share common configurations. Such as protection against POODLE and even entire sets of redirects. I tried using the include directive but ...
0
votes
0answers
22 views

Now hosting a friend who relies heavily on htaccess files, but I use Nginx [closed]

Philosophically is the best option for me at this point to also run apache on a different port, and have nginx reverse proxy to it? Is there a better way? I'm not happy with the concept of allocating ...
2
votes
0answers
92 views

some cyrillic file names got broken after moving from server to server

I moved my website from one server to another and encounter a problem with cyrillic filenames. Some cyrillic URLs in wordpress are fine and some are now broken. It used to be OK on previous server. ...