nginx (pronounced “engine x”) is a lightweight web server and a reverse proxy server

learn more… | top users | synonyms

3
votes
1answer
3k views

NginX+PHP-FPM setup: Why is this configuration workaround needed to properly set PATH_INFO? [Debian7.4]

It took several hours to find out how to properly configure NginX, but I still think I might have missed something. Mainly because this perfectly working setup raises more questions than it answers. ...
0
votes
0answers
189 views

Accessing virtual machine server from the internet

I am currently trying to set up my own server at home. I don't have a lot of hardware so I installed a Linux virtual machine using VirtualBox on a Windows 7. It runs Arch Linux as an OS and Nginx for ...
0
votes
1answer
95 views

Is it possible to use Subversion Edge with nginx or lighttpd instead of Apache2?

Is it possible to run Subversion Edge using nginx instead of Apache2? I'm trying to migrate away from using Apache2 for my IT projects, and nginx seems to be the best performing server I can find. I ...
0
votes
1answer
342 views

Massive loss in quality with ffmpeg rtmp push

I've been streaming successfully with nginx-rtmp for a little while. Using the inbuilt push directive works great but to push to variable stream names I have to switch to using ffmpeg. Even when I ...
1
vote
0answers
55 views

how to reload nginx - systemctl or nginx -s?

Is there a difference between calling systemctl reload nginx and calling nginx -s reload ? I know that, besides systemd, there are other init systems like SysV and Upstart. So maybe this ...
1
vote
1answer
2k views

Streaming to HLS server with ffmpeg and nginx-rtmp-module

I am trying to stream my desktop screen to a HLS server (nginx RTMP module), but I don't know how to go about this. I have tried ffmpeg -f x11grab -i :0.0 -f hls http://192.168.1.68/tmp/hls but ...
0
votes
0answers
74 views

Virtualmin - nginx document roots not displaying correctly

I recently set up Virtualmin on a clean Debian7-32bit VPS. I decided to go with nginx instead of Apache. Virtualmin sets up separate config files for each "virtual host", which I guess is fine. I ...
1
vote
1answer
113 views

Set up a catch-all inside a location with fallback to index.php

I'm struggling with nginx config. I have a server block where I want all requests to go to index.php?tags=$uri, unless $uri exists (like index.php?a=b or /?a=b). I would expect: try_files $uri ...
0
votes
0answers
2k views

Homebrew does not completely uninstall nginx

I installed yesterday nginx on my machine using brew install nginx Today I would like to remove the software, therefore I tried brew uninstall nginx which has been correctely executed. In fact ...
0
votes
1answer
49 views

different ssl_protocols for seperate domains

I tried to configure one server for a specific domain to use TLSv2.0 only. Others should use TLSv1, TLSv1.1, and TLSv2.0. The configuration is valid, as nginx loads correctly, but the site with ...
0
votes
0answers
281 views

ffmpeg with minimum bandwidth with watchable video quality

I want ffmpeg and my video stream to use minimum bandwidth with average video quality. As I'm new to the video streaming, I'm not sure what all configurations I should add or change in my ffmpeg ...
0
votes
0answers
76 views

How do I configure sendmail to relay all messages for domains listed except for the ones I want to pipe to a script?

I have two servers... One CentOS6 server with nginx - 3 versions of php - mysql 5.6 and sendmail One cPanel server I want to host multiple sites on the nginx box, and let cPanel handle the mail for ...
0
votes
1answer
30 views

Disallow access to Sonatype Nexus & Webmin?

I have a VPS running my family's business website and my personal development site. I have Sonatype Nexus, Jenkins, Webmin etc installed for me. They'll never use it for the business. I don't want a ...
0
votes
0answers
537 views

Can't install php-fpm: dependency issues

I'm trying to install php-fpm for my nginx server. Trying to install through yum (yum --enablerepo=remi install php-fpm php-mysql), I get the next error: Error: Package: ...
1
vote
0answers
480 views

exec ffmpeg not working for nginx-rtmp-module on AWS Ubuntu

I was trying out the nginx-rtmp module from https://github.com/arut/nginx-rtmp-module. While implementing the example for ffmpeg given in the link, my exec ffmpeg is not getting executed. My rtmp ...
0
votes
1answer
264 views

Nginx redirect all requests trying to reach a folder

How can I redirect all requests trying to reach a folder? for example, I would like to redirect: somedomain.com/folder/subfolder/index.html somedomain.com/folder/subfolder2/something.html ...
0
votes
1answer
675 views

Wordpress blog site just shows “welcome to nginx” after my vps was halted by support

My vps was recently halted due to coin mining. I worked that out with support and the vps is back but now my wordpress site is not working. It's just showing "Welcome to nginx" instead of the ...
1
vote
0answers
2k views

How to troubleshoot Upstart Unknown job error

I set up nginx according to instructions here and it all went well but I am unable to start with $ start <my app name> I created /etc/init/nomilkfor.me.conf (this is the domain name) and this ...
0
votes
1answer
1k views

nginx rewrite move from risky if statements to try_files. Can anybody help convert? (short)

I am trying to clean up my nginx rewrite rules for my vBulletin forum which has some modifications and additional software within the same site which causes problems. I have things working as they ...
5
votes
1answer
4k views

How to make nginx rewrite URIs in HTTP body content?

This is a follow-on to my earlier question on how to Make nginx reverse proxy 302 redirect to a URI sub-folder instead of root. I have an nginx proxy server that uses the rewrite and proxy_pass ...
3
votes
1answer
6k views

Make nginx reverse proxy 302 redirect to a URI sub-folder instead of root

I have a web server on my LAN with the URL https://10.0.0.22 and I am trying to access it from the internet through an nginx reverse proxy with a URL like https://domain.com/my/web/app. The ...
0
votes
0answers
117 views

Nginx rewrite rule with variable

I would like to send all request that came from a sub-domain to index.php and send subdomain name as a $sub variable for example: sub1.mydomain.com send the above request to: ...
1
vote
1answer
2k views

How can I open Port 80 with Netgear wireless router wnr2000v3

I am trying to set up a home server. I realized that my ISP was blocking port 80. I called them and paid them for a static ip and now they are not blocking port 80. When I connect the server directly ...
0
votes
1answer
50 views

Multiple web apps on a laptop friendly way

I have a large collection of mini web apps written in Rails and Sinatra which I constantly use. My objective is to host them in a laptop friendly way. Most of deployment articles I have seen are ...
1
vote
2answers
884 views

Can't setup Nginx with PHP on Arch linux

I have tried to set up a LEMP server (Nginx, PHP, MySQL) on Arch Linux for a while, and have tried a few different online tutorials. Most recently I tried: http://www.adminempire.com/how-to-insta … ...
0
votes
2answers
156 views

How can I tell whether PFS is enabled?

I have kinda 2 questions.. first, is this setting considered "secure" ? Second, how do I tell whether perfect forward secrecy is enabled? ssl_session_timeout 5m; ssl_protocols TLSv1 ...
2
votes
0answers
130 views

Url rewriting faliure in case of UTF8 urls in nginx

I am using Nginx webserver and I want to rewrite some old urls on my site to new ones inorder to prevent 404 errors. For English urls everything is OK and adding a rewrite rule like the following to ...
0
votes
0answers
369 views

Rails 2 and Ngnix: https pages can't load css or js (but will load graphics)

ADMISSION: i've posted this same question on stackoverflow, before realising it's probabaly better suited to superuser, but it kind of depends on the answer: If it turns out to be a problem in my ...
1
vote
4answers
348 views

Quick SSH proxy or routing?

I have experience with using nginx to proxy sites with the proxy_pass directive. Is there something similar I can do with SSH? Here's my home network with my machines and their hostnames: ...
0
votes
1answer
617 views

Proper procedure - sftp access to www folder - To be able to upload files

My www folder is root:root. What should it be? My site works perfectly but maybe I am doing something wrong. My nginx.conf says user is 'nginx'. Should I be changing the www onwership and group to ...
0
votes
1answer
903 views

nginx -v command not found

I successfully installed nginx ~ but when I use nginx -v command, it show : nginx: command not found what the problem?
2
votes
1answer
292 views

Special characters in filenames + nginx + php = 404

Recently I moved to a new server after the old one had died. I had wordpress installation there, powered by Apache2 and Gentoo Linux. When moving, I decided to use nginx and Debian instead. I brought ...
1
vote
1answer
784 views

Apache / Nginx - Reverse Proxy and Kerberos Constrained Delegation

I am after a solution to replace Microsoft TMG, and i am hoping there is an open source route of acomplishing. Currently using TMG we are reverse proxying Web resources say for example sharepoint, ...
0
votes
0answers
191 views

Instruction to start Varnish as root

I'm having problems with Varnish. Here is the relevant portion of the log 2013/09/29 06:24:54 [warn] 2680#0: the "user" directive makes sense only if the master process runs with super-user ...
0
votes
1answer
92 views

Nginx backend shutdown without losing sessions

So I'm having reverse proxy server, where Nginx working as proxy server and loadbalancer. My biggest problem, that I have 2 app backends, which I need sometimes to shutdown. When I write after server ...
2
votes
1answer
383 views

Nginx - How to publish multiple Python web apps using virtual directories and access them via IP and virtual directory (http://HOST_IP/APP_DIRECTORY)?

I am a IIS - Internet Information Services (Microsoft Windows) user and I would like to migrate to Nginx. How can I publish multiple web applications in Python using virtual directories (IIS style) ...
1
vote
1answer
2k views

Check to see if NGINX is installed on UBUNTU

Is there any or command to check whether NGINX is already installed on UBUNTU Linux using a bash command/script? I was trying something like this echo "BEGINNING INSTALLATION OF NGINX WEB SERVER" ...
0
votes
0answers
176 views

VMWare Guest to Host-Webserver (nginx) connection doesn't work

How do I debug the following situation: I have Nginx, php etc. installed on a Mac, everything works perfectly. However when I want to connect to it from inside a VMWare Windows 7 host, I get an ...
0
votes
1answer
113 views

nginx + php fpm security issue?

I am new user of nginx + php-pfm, but I am a little bit confused about security. For example I am running a few pools with different uid/gid as TCP sockets. So theoritically it is possible that any ...
2
votes
1answer
1k views

Any modules to handle HTTP OPTIONS requests in nginx?

I'm using nginx on Ubuntu 12.04, is there any module I can install via the Package Manager to make nginx magically support HTTP OPTIONS header requests instead of returning HTTP 405? I'd like to avoid ...
0
votes
1answer
494 views

nginx + cgi (c++ programs)

I am stuck setting my nginx to work with custom cgi programs (using xmlrpc-c library). I am trying with fcgiwrap/spawn-fcgi like this: $ spawn-fcgi -f /usr/bin/fcgiwrap -s /tmp/fcgi.sock ...
0
votes
1answer
1k views

ffmpeg stops streaming after 900 seconds from Axis Camera to FLV RTMP

Audio and video works for 900 seconds and then, ffmpeg stops with: video:1889kB audio:1825kB global headers:0kB muxing overhead 2.162866% I stream from an AXIS IP camera through ffmpeg over nginx. ...
2
votes
1answer
1k views

Nginx works on my linux machine but is not accessible from other computers in my local network

In my LAN network I have a server with Scientific Linux (RedHat or Fedora based distro), I've done yum install nginx but the welcome page is not accessible from other computers in my network. When I ...
4
votes
0answers
4k views

Why a listen 443 default_server; nginx rule override already configured rule (http rules working normal way)?

I have an nginx and different subdomains: a.mydomain.com b.mydomain.com c.mydomain.com Nginx has 4 rules: 1) rewrite rule: server { listen 80 server_name gl.udesk.org; root /nowhere; ...
0
votes
1answer
77 views

How to return/simulate error 102 from nginx?

Is it possible to return for a specific domain an error, like if the server (nginx) would not work?
0
votes
0answers
238 views

Why all subdomains are directing to same service?

I have 3 subdomains: a.mydomain.com, b.mydomain.com, c.mydomain.com configured by domain provider as following: Name TTL Type Value a 1d CNAME @ b 1d CNAME @ c 1d CNAME @ And the nginx ...
0
votes
1answer
951 views

why nginx can NOT remove the X-Powered-By header of PHP?

I use the proxy_hide_header X-Powered-By directive, but it doesn't work. I had to use the expose_php option in php.ini. Is there anything different between the proxy_hide_header and the expose_php ...
0
votes
0answers
253 views

nginx + php5-fpm download files error

I have a wordpress blog running on a nginx/php5-fpm combo and it works great. Hardware is a Debian Squeeze with 256mb of ram. Lately (since 3 days ago) file downloading became nearly impossible, as ...
1
vote
1answer
599 views

How to redirect to other server? (apache and nginx)

i have an Apache server running for two sites on port 80. Let's say the domain is example.com and I have an other domain example2.com. When a user visits example.com, I want it to serve those files ...
7
votes
2answers
7k views

Nginx as forward proxy for HTTPS

While I was able to successfully configure nginx to proxy HTTP traffic (using this guide), all attempts to proxy HTTPS requests resulted in code 400 (Bad Request). Nginx debug logs weren't helpful at ...