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
15 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
27 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 ...
0
votes
0answers
15 views

New user can't open FTP with Nginx/PHP5-FPM [closed]

We have Ubuntu server running proftpd with Nginx/PHP5-FPM. Four ftp accounts opening different directories (account1 to a1.com, account2 to a2.com...), I created one new account (account5) and set ...
1
vote
0answers
20 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 ...
3
votes
1answer
63 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
50 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
36 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
12 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
43 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
73 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
34 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 ...
-1
votes
0answers
16 views

How set root directory to share remotly with proftpd

I have installed and configured proftpd and created a user in Fedora, but after I used an FTP client, I can't access the root directory like nginx webserver folder. The FTP client only ...
2
votes
1answer
24 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
51 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
22 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
40 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
45 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
33 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
71 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
73 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 ...
2
votes
0answers
37 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 ...
1
vote
1answer
63 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
21 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
14 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
89 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
22 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
75 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
0answers
108 views

Reverse proxy Nginx to hide real IP

I've read that it's possible to hide the server IP by using a reverse proxy. Nginx is installed on the main server. Example ex.example.com IP = X, and I have another server with Nginx installed also ...
0
votes
1answer
26 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
30 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
21 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
50 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. ...
1
vote
1answer
173 views

Owncloud download fail behind reverse proxy

I have raspberry pi with nginx as reverse proxy and another machine with owncloud on nginx too. I can connect and browse in the pages but when I try to download a file that weight more than about ...
1
vote
1answer
488 views

How do I configure UNIX socket in nginx/HHVM?

So far this is what I've done: $ less /etc/nginx/hhvm.conf location ~ \.(hh|php)$ { fastcgi_pass unix:/var/run/hhvm/sock; include fastcgi_params; } $ less /etc/hhvm/server.ini ; php ...
1
vote
1answer
146 views

nginx/HHVM 404, fixed replacing $document_root with absolute path, but redirect adds path to URL

I've had the same issue as described in this question, and the solution of replacing $document_root with it's absolute path worked until redirects added the absolute path to the URL, as in: EXPECTED ...
1
vote
1answer
88 views

Restart PHP-FPM from a PHP script

I am running a LEMP stack and wish to write a simple control panel for it. So, I want to be able to restart php-fpm from a php script. To achieve this, this is what I did. Created a binary wrapper ...
0
votes
1answer
54 views

Custom Linux Hosting Control Panel in PHP - running commands as root

I want to work on a custom linux hosting control panel based on my experience in managing LEMP/LAMP stack. This is just a pet project. I believe I have ran into some hurdle. The CP is being written ...
0
votes
1answer
87 views

Nginx Multiple Locations

I have already 5 hours here figuring on how to solve but i can't. Assuming that we have the following dir structure /var/www/key1 /var/www/key1/wwwdir /var/www/key1/dir1 /var/www/key1/dir2 And ...
2
votes
0answers
228 views

Nginx on Debian 8 dev setup. PHP via PHP FPM not working

UPDATE: Ok, I can now happily say that what you see below is the recipe for a happily working automated PHP and Nginx dev setup (with automatic domains) and all problems I had are now solved. I ...
0
votes
1answer
41 views

Nginx equivalent of printf() to debug complicated configurations

Is there some option in Nginx that I could use to debug which way a request goes through certain "location" blocks? I don't want to turn on full debug log for the whole server just have some ...
0
votes
0answers
385 views

Why `host` and `nslookup` on Ubuntu resolve hostnames while `ping` and `telnet` do not?

I can't use git clone or even apt-get install because I get a "cannot resolve host" error. They were working before, but I have no idea what changed that broke the DNS resolve. I can't find any ...
1
vote
1answer
1k 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
120 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 ...
0
votes
1answer
178 views

nginx stop is not working and nginx is creating new process after killing processes

nginx version: nginx/1.8.0 I am trying to stop nginx with the following command /etc/init.d/nginx stop, however it is not returning any successful message. Then I tried to view the nginx processes ...
0
votes
1answer
94 views

How to configure which user fcgiwrap runs as on FreeBSD?

I have Redmine/Git/nginx/fcgiwrap running in a jail on FreeBSD 9.3 for (potentially) authenticated Git commits over HTTP/S. Everything works until I restart the jail. In order for a commit to work I ...
0
votes
1answer
242 views

nginx “root /parent/child ” inside location directive not working and shows “404 Not found”

Im learning nginx and referring to book "nginx essential-valery kholodkov" for settingup nginx 1.8 and Im using centos 7 (selinux is off). i made some changes to documentroot(like in apache 2.x) ...
0
votes
2answers
367 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
1answer
44 views

Should I use hardlinks for my “sites-enabled” folder instead of softlinks?

Every article I find about web servers suggest creating a sites-available and sites-enabled directory within apache/nginx/etc. Then, using symbolic (soft) links, create a link from the available to ...
0
votes
1answer
84 views

Make /etc/nginx writable, so I can edit it from the network

I'm running Win10 with Ubuntu Server 14.04 on a VM. I shared my website folder (/var/www) with samba (I ran chown -R www-data:www-data) and it's writable. I edit the files with Sublime (on Win10) and ...
0
votes
0answers
103 views

PHP-FPM / Nginx, hundred requests / second in a single file

My FPM Config (PHP 5.6.x with opcache) pid = /var/run/php-fpm/php-fpm.pid rlimit_files = 10000 rlimit_core = 0 [www] listen = 127.0.0.1:9000 listen.allowed_clients = 127.0.0.1 user = nginx group = ...