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

Is my Nginx,php-fpm and mysql config good enough?

My Setup: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GH 30 GB Ram 1 Gbps Premimum/Dedicated Line Softwares3 MariaDB 10.0.20 NGinx 1.8.0 PHP with FPM 5.6.8 Our servers gets a LOT of requests (more ...
0
votes
0answers
11 views

Using Incrond Inotify but having issues with user groups/permissions

In the /etc/incron.allow I added both: root USER_1 Then I edited the incrontab so it looks like this: /var/www/laravel/public/js/main.js IN_MODIFY yui-compressor -o ...
1
vote
1answer
16 views

User settings for monit? Should it run as root, or it's own user?

I'm trying to install monit on an Ubuntu 12.04 server. I have it set up, and configured (i think), but i'm not sure what user it's supposed to run as. My user on the server is called deploy, and my ...
2
votes
1answer
15 views

Why Nginx is not rejecting wrong hosts?

This is my config: upstream beta { server localhost:49213; } server { listen 80; server_name beta.example.com; location / { proxy_pass http://beta; } } server { ...
0
votes
1answer
26 views

Nginx says open() “/etc/nginx/conf.d/foo.conf” failed (13: Permission denied)

Here is what I have in ls -al /etc/nginx: total 52 drwxr-xr-x. 4 root root 4096 Jul 28 04:16 . drwxr-xr-x. 78 root root 8192 Jul 28 03:37 .. drwxr-xr-x. 2 root root 26 Jul 28 03:55 conf.d ...
0
votes
0answers
8 views

Webmin: Cannot login through nginx reverse proxy

I've created a reverse proxy for webmin through nginx to run webmin at [site domain]/webmin instead of port 10000 ([site domain]:10000). When I go to [site domain]/webmin, the login page shows up as ...
0
votes
1answer
36 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; ...
0
votes
0answers
24 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
33 views

Need to parse nginx access.log by minute, chunks for statistics - is there better way?

I need collect current data from it every minute to monitore amount of requests and errors. It's nginx's frontend log - with a lot of requests. It's formatted, rotated than archived every hour. So - ...
0
votes
1answer
43 views

NGINX: 400 The plain HTTP request was sent to HTTPS port

i setup nginx for proxypass to docker registry, the protocol http works but if i set https i have: 400 The plain HTTP request was sent to HTTPS port This is my nginx configuration file: upstream ...
0
votes
0answers
18 views

Nginx and Munin via CGI, no CSS, no graphs

I'm new to Munin and Nginx. I've installed and configured Munin and created a Nginx server block. I can see the index page generated by munin, listing the different nodes. But when I click on a host ...
0
votes
0answers
8 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
36 views

Nginx proxying https, protocol not forwarded

I'm using nginx and ngrok (for backup) with architecture something like this: internet <---> ngrok <---> nginx <---> my app ^ ^ ...
0
votes
1answer
175 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 ...
0
votes
0answers
50 views

CURLE_SSL_CACERT_BADFILE cURL error (77)

I have getting the cURL error CURLE_SSL_CACERT_BADFILE on my Nginx webserver. I found a fix where I add my pem link to my curl.ini file. Before I did this I would get the error on curl ...
0
votes
0answers
51 views

Mod Speed Installation Error

I have 2 webservers Apache and Nginx. Trying to install mod_speed integrated with Apache but I get error: Failed dependencies: httpd >= 2.2 is needed by ...
1
vote
1answer
40 views

Install nginx as proxy after Apache

If I install nginx as proxy on my Debian wheezy server, what steps would be needed to change my apache configuration so all static content is directly delivered by nginx? I already have some 250 ...
3
votes
2answers
569 views

start nginx on boot with systemd

I just installed nginx 1.9 on a debian 8 server. nginx is working fine, when I tell it to run, but it wont seem to load nginx automaticaly on boot. I have tried numerious init scripts recomended on ...
3
votes
1answer
644 views

Nginx init.d script

After a dist-upgrade on my debian machine yesterday I am having some problems with the nginx init script. Whenever I try to start nginx using the init script it comes up with a error message: # ...
0
votes
1answer
50 views

Logging incoming request to my nginx proxy server

I am new to nginx proxy server. I would like to log all incoming requests, before it hits my worker nodes. Can anyone please help me with this configuration
1
vote
1answer
272 views

nginx location regex with proxypass

I am quite new to nginx so excuse me in advance if i am asking something obvious. What i am trying to do is to proxypass to another server a request that comes to my nginx server in the form of: ...
0
votes
1answer
127 views

Uninstall Phusion Passenger and repair package database

Some time ago I installed Phusion Passenger with these instructions. I also have the debdeb.org repository in my sources.list. I now want to remove Passenger and install a clean nginx package from ...
0
votes
1answer
12 views

How to redirect with nginx

I have some http servers running in different ports, but I want to access them this way: 192.168.178.42:80/foo to access 192.168.178.42:8080 192.168.178.42:80/asdf to access ...
1
vote
2answers
519 views

Proxy (nginx) shows a Bad gateway error

I have a service (docker registry) that runs on port 5000, I have installed nginx to redirect http request from 8080 to 5000. If I make a curl to localhost:5000 it works, but when I make a curl to ...
0
votes
0answers
52 views

Nginx rewrite rules

good day, anyone can help me convert this .htaccess to nginx ? <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^data/([0-9]+)/(.*).html$ index.php?dir=$1 [QSA,L] RewriteRule ...
1
vote
0answers
86 views

Can't run php cli at webuser but will run as root

I am running a Magento application on a Nginx server. nginx + php-fpm running as webuser:www There are some function in the shell directory of Magento which run fine as root and the import run fine ...
1
vote
2answers
128 views

why nginx holds file descriptions of logs?

on Red Hat Enterprise Linux Server release 6.6 (Santiago) nginx version: nginx/1.0.15 I use common nginx logrotate config, logrotate works fine and nginx creates new log file like access.log or ...
0
votes
1answer
254 views

PHP 5.4 ON CENTOS 7 , NGINX , page not found error

I am trying to install PHP 5.4 on CentOS 7 currently , my conf files look like the following : /etc/nginx/conf.d server { listen 80; server_name 178.62.255.79; root ...
0
votes
1answer
61 views

Nginx File 404 when trying to launch drupal install.php

I am getting a 404 when trying to access the install.php for drupal on nginx. Below are my /etc/nginx/nginx.conf and /etc/nginx/conf.d/default.conf files. the nginx user and group own the ...
0
votes
1answer
66 views

Subdomain Creation in Amazon EC2 using Nginx Server [closed]

I am using amazon ec2.... My app is written in Ruby on Rails. I am using Nginx Server. How can I create sub-domain and automate it when a user registers like http://user.mywebsite.com?
1
vote
0answers
264 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 ...
0
votes
1answer
42 views

File/dir permission conundrum

I support a dev server for WordPress sites. Server is using the Nginx/php-fpm stack. I'm struggling with setting up file and directory permissions so that www-data has read and write access while our ...
0
votes
2answers
122 views

Nginx - access from a public ip address - ubuntu 14.04

An nginx server is up and running locally on my system[ubuntu 14.04]. But i am having difficulty accessing the same server from my public ip address, or from any other system using my public ip ...
1
vote
1answer
692 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
1answer
120 views

How to access a website hosted on Ubuntu virtual machine on Azure?

I'm using Ubuntu 14.10 virtual machine located on Azure and I'm accessing it via Putty client. I've installed required software like Nginx and Mono, and I'm trying to host ASP.NET 5 webapp on Ubuntu. ...
0
votes
0answers
235 views

Custom compiled Nginx with ngx_pagespeed in CentOS 7 wont start

Since PageSpeed must be compiled along with Nginx, and I don't like the way instructions are in the Google page, I decided to follow another great one. Anyway, I did everything there. And when I get ...
1
vote
0answers
56 views

nginx serves info.php but doesnt serves index.php

info.php with basic phpinfo() is served when I enter info.php in the url, however index.php is not being served. I tweaked around some changes reading different answers on stackexchange `try_files ...
1
vote
0answers
386 views

nginx: [emerg] “server” directive is not allowed here

I get the following error message when trying to configure server: []# nginx -s reload nginx: [emerg] "server" directive is not allowed here in /etc/nginx/conf.d/hello-world.conf:1 Configuration is ...
1
vote
1answer
549 views

NginX + PHP-FPM displays blank php pages

I have a problem where my server running NginX with php-fpm loads blank PHP pages (strangely except for my phpinfo.php file, which loads normally). If I put an index.html page in the same directory ...
1
vote
0answers
24 views

nginx returning netstring with wrong length?

I installed nginx (nginx version: nginx/1.7.9) via macports on my mac running the latest OSX. I configured a URI to use SCGI: location /server { include ...
0
votes
1answer
45 views

Nginx using default configuration on its own

I have set up Nginx on Ubuntu server 14.04 I want to configure a very simple server block that listens for /app path and redirects traffic to a running nodejs instance locally. I have done that with ...
1
vote
1answer
440 views

nginx server_name directive not working

I want to use NGINX as a proxy server for my application. My application (say 'abc') is running on port 8000 on my machine. And NGINX is running on the same machine. A part of the conifguration looks ...
1
vote
1answer
52 views

What does nginx -s reopen do?

What does 'nginx -s reopen' really do? The nginx documentation says that it reopens logs. I tried it out from a terminal while nginx was running, but nothing happened.
0
votes
2answers
1k views

phpmyadmin blank page after login using nginx / php-fpm

i can access www.***/phpmyadmin to login. if i log in with mysql user just hit blank page with no error. System runs on raspbian. Installed : nginx 1.2.1 , php5.4.36 i tryed login from different ...
1
vote
1answer
31 views

How nginx receives requests from client and forwards it to the actual server?

I have installed nginx on RHEL and now I need to configure it to forward the requests to the actual server in the /etc/nginx/nginx.conf. My actual server is using a private IP address, will nginx ...
0
votes
0answers
782 views

nginx won't to start

I have run nginx -t and it returns successful. On boot I see messages about nginx has failed to start, and it wont start when I try nginx or service nginx start Instead i get a message to check ...
0
votes
1answer
57 views

Invalid IP parameter on nginx setup

I'm currently setting up an an nginx web server with PHP on ubuntu 10.x lastest. I've set it so it will only use my local LAN for testing but it comes with invalid paramter for 192.xxx.x.0/142. My IP ...
0
votes
0answers
79 views

Nginx: How to serve multiple sites via separate subdirectories

I have 2 web applications that I want available under http://example.com/demo1 and http://example.com/demo2. My config below correctly reverse proxies to each site, but some API requests are 404'ing ...
0
votes
0answers
57 views

How to use stdout/stderr from multiple program

I'm working with Docker-containers. An important part of Docker is to log error, etc., to stdout/stderr. For example, I want to run the following program by using this command: nginx -g "daemon ...
1
vote
1answer
30 views

Ubuntu + nginx , get information about virtual machine

first of all i'm not server administrator, so sorry if my question is very silly. Shed some light on the structure of the server. I have one server and in this server is two virtual machines (web_a ...