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

learn more… | top users | synonyms

1
vote
1answer
731 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
1answer
6k 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
89 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
521 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
1answer
45 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
747 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
1k 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
522 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
1k 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 ...
2
votes
1answer
5k 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
2k 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 ...
9
votes
1answer
14k 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
13k 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 ...
1
vote
1answer
5k 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
64 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
2k 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
305 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
287 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
585 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
774 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
1k 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
3k 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
575 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
2k 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
403 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
163 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
595 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) ...
2
votes
1answer
6k 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
326 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
148 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
3k 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
851 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
2k 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
2k 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 ...
8
votes
1answer
11k 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
136 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?
1
vote
0answers
508 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 ...
2
votes
1answer
2k 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
372 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
2k 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 ...
13
votes
2answers
15k 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 ...
1
vote
1answer
387 views

Updating Nginx from 1.3.0 to 1.4.1 while using Plesk 11

Is it possible to upgrade the nginx version witch was originally installed with plesk to the newest stable version without bricking the whole web-server? I got the nginx repository and tried to ...
2
votes
2answers
275 views

Is it a bad idea to get my production servers software source code from github

Usually I use apt-get but apt-get can get out of date. It seems that quite a nice solution may be to get the source code for my software (for example, nginx) from github and then build it each time. ...
1
vote
1answer
114 views

Define extra `$PATH` for either Passenger or nginx

I have a server with nginx and Passenger serving a Ruby on Rails app. It uses Bundler. Somewhere in this stack, the $PATH gets set to /var/www/APPNAME/shared/bundle/ruby/1.8/bin/. This directory ...
1
vote
0answers
4k views

Can't stop/reload/restart nginx with “service nginx”-command

I installed nginx via passenger for running ruby on rails applications. I added the this script: RedHat Nginx Init Script Changed paths for nginx and config to where they are located: ...
3
votes
2answers
4k views

unable to connect to localhost:80 after installing nginx

I just installed nginx by doing sudo yum install nginx and I'm unable to connect to it on port 80. I tried stopping iptables by doing sudo service iptables start and was still unable to connect. I'm ...
0
votes
0answers
613 views

sudo yum install nginx doesn't work

Here's what I get when I type it in via the command line: [prompt]$ sudo yum install nginx Loaded plugins: priorities, security, update-motd, upgrade-helper ...
1
vote
0answers
489 views

htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/files/domain.com/public_html/images/' is executable [closed]

Today i migrated my images from one server to another and faced a strange permission issue [Mon Mar 25 08:42:23.676315 2013] [core:crit] [pid 15182] (13)Permission denied: [client 24.14.2.22:48113] ...
0
votes
1answer
401 views

cdn with nginx - redirect back if not found

I need to configure cdn with nginx for images. GeoIp is working fine, but i have a problem with images that are not found on cdn server. I configured nginx the following way: Client requests the ...
2
votes
0answers
2k views

Establish https on nonstandard port

I'm trying to estamblish https on port 55434 (different than standard 443). My nginx configuration looks like this: server { server_name example.org; listen 55434 ssl; ssl ...