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
1answer
13 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
31 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
9 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
58 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
26 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
45 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
37 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
0answers
68 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
27 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
27 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
62 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
22 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
78 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 ...
0
votes
1answer
125 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
46 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
140 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
39 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
114 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
99 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
19 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
27 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
127 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
33 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
640 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
21 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
260 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
33 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
50 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
47 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
19 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 ...
2
votes
0answers
235 views

NGINX Reverse Proxy - no user/password was provided for basic authentication

I've got Nginx set up on a RPi (raspbian)as a reverse proxy using SSL between the remote user and the Nginx instance. All seems to work well for two services mounted on the RPi (Shellinabox and RPi ...
0
votes
0answers
14 views

Unable to get Nginx5 and php5-fpm running on mac

I've an issue whilst trying to get Nginx and PHP FPM working together. I have installed both the packages with brew, and the server is working as expected with static pages. However, when it comes ...
0
votes
0answers
70 views

Using Varnish + Nginx Forcing SSL

i'm using Varnish and i would like to force communication only with SSL. My server is Nginx. What's the best way to do so? Or the easiest? I read about Pound proxy and installed it but guides were too ...
0
votes
2answers
645 views

php-fpm error unable to bind listening socket for address '127.0.0.1:9003': Permission denied (13)

I've added a config file to /etc/php-fpm.d ; Start a new pool named 'joeri'. ; the variable $pool can we used in any directive and will be replaced by the ; pool name ('joeri' here) [joeri] ; Per ...
0
votes
3answers
145 views

Unknown cause for redirect on 80 port

I have an Ubuntu 14.04 server with Apache 2.4.7 running there, hosting one site on 80 port. Today I discovered that every request to 80 port redirects to another website with response: HTTP/1.1 301 ...
0
votes
3answers
44 views

nginx not restarting after changing port

I have tried to change the port in which nginx listens for from 80 to 6000. However I get this when I try to restart it. Restarting nginx: nginx: [emerg] bind() to 0.0.0.0:6000 failed (98: Address ...
0
votes
1answer
136 views

howto setup dokuwiki parallel to owncloud

How can I get a working owncloud server with a working dokuwiki? The dokuwiki entries should not be destroyed... On a raspberry pi an owncloud installation was made following this article (nginx ...
0
votes
0answers
34 views

Set Up NginX to serve files in variable directories

I'm currently trying to set up NginX so that it handles request from an Ipad app. The app controls MPD (a music player) on the server that hosts NginX and asks it for album covers. Its requests ...
1
vote
1answer
50 views

Analysing nginx error log

I am looking for a way to the following. Here is one line from nginx's error log. 2014/12/29 21:17:57 [error] 30078#0: *311826 openat() ...
1
vote
1answer
263 views

nginx - userdir with user permissions

What I want to do is have the usual server running user files like this: http://users.example.com/~user1/stuff.php which would be stored somewhere in /home/user1/www or something like that, but ...
1
vote
0answers
119 views

NGINX multiple locaton block matching

I have a RaspberryPi with Raspbian and I want that a public www-folder is protected by htpasswd and that php files are passed correcly and the .htpasswd and .db files are denied to all. But this does ...
1
vote
2answers
47 views

nginx web server on VM inaccessible to host

My laptop is running Ubuntu 14.10 desktop and hosting 14.10 server in a libvirt VM (set up using virt-manager). I installed it in minimal virtual server mode with only openssh-server. After ...
0
votes
1answer
980 views

How to set nginx for http and https

i need set nginx respond to http and https, i configured my default conf in this way: server { listen 80; listen 443; ssl on; ssl_certificate ...
1
vote
1answer
1k views

unable to start nginx on centos 7

service nginx start Redirecting to /bin/systemctl start nginx.service Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details. [root@myvps ~]# systemctl ...
1
vote
0answers
84 views

How to configure nginx to dynamically read folders, user accounts/domains?

I have cPanel and Apache 2.4 on my CentOS 6.6 VPS. I installed Nginx as a reverse proxy. Everything works fine. I have 2 domains on the VPS & I'm able to configure them both on nginx. The ...
0
votes
1answer
337 views

NGINX + PHP-FPM Permission denied

I have few WordPress websites, all with same config - difference only with user and domain, but got 403 only for newly created virtualhost: # cat barelef-art.kiev.ua.conf server { server_name ...
1
vote
2answers
328 views

Have SSH on port 80 or 443 while webserver (nginx) is running on these ports

I have a remote Linux (Debian) machine which I'd like to access from a very restricted network. In fact the only two open ports are port 80 (for HTTP) and 443 (HTTPS). On this machine I have nginx ...
-1
votes
1answer
381 views

php: command not found on centos

I've currently installed CentOS (6.5 version), nginx, mysql and php. I've tried to navigate to index.php in a browser, and it looks fine, but if I try to run the script via the command-line I get: ...
1
vote
0answers
39 views

Webserver on Solaris 10 + zones. How to do it properly?

I have 1 real IP and many websites. Initial idea was to separate each website into it's own exclusive-ip (vnic) non-global zone. MySQL server have it's own non-global zone. Question is: what is the ...
1
vote
0answers
68 views

Nginx wordpress and its wrong path

I've a Raspberry and I installed nginx and over this I put Wordpress. Wordpress installation come from an old backup of a websites that I hosted somewhere else. The URL was mydomain.com/home, now in ...