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

learn more… | top users | synonyms

1
vote
0answers
395 views

Nginx proxy_pass when http referer contains a string? [closed]

I test the config below, not work. How to make it? http { server { location / { if ($http_referer ~* /.*/flee.*/) { proxy_pass http://127.0.0.1:8765; ...
0
votes
0answers
48 views

Nginx + pagespeed - images delay

I got nginx + pagespeed setuped and I'd like to know, where can be a problem with delivering image from my server. According to this: ...
0
votes
0answers
86 views

Shifting from apache/mod_wsgi to nginx/uwsgi

Till now i have been using Apache mod_wsgi for deploying Django apps and Apache2 for PHP apps. Now i always try to use things which are used in major companies. i ahve read they use ngix/uwsgi Now i ...
0
votes
0answers
241 views

Short URLs not working with MediaWiki on nginx

I've been trying to configure Mediawiki Short URL's with nginx, but I keep getting 404 errors when trying to access the pages of my wiki. I followed this guide but changed location / to location ...
0
votes
0answers
420 views

Delay in live video streaming with ffmpeg

I'm using ffmpeg, jwplayer and nxing-rtmp(https://github.com/arut/nginx-rtmp-module) module to do live streaming from ip cameras. I'm getting a delay of around 15 seconds for the video startup. I was ...
0
votes
0answers
300 views

nginx, node.js unix socket access denied

I don't understand why it refuses to connect. ls -l to /tmp srw-rw-rw- 1 root root 0 mars 4 06:26 php5-fpm.sock= srw-rw-rw- 1 root root 0 mars 4 13:30 sgtu3.kernel.sock= ...
0
votes
0answers
101 views

How to access nginx by public IP in MAC OSX

I am completely new to nginx.. Question: I have set up nginx and my conf file looks like: server { listen 80 default; server_name social.uimirror.com www.social.uimirror.com; ...
0
votes
2answers
294 views

nginx serve all domains except one

I have a standard nginx installation on ubuntu 12.04. I want only one subdomain to serve. All others should return 404. I have defined two sites: 0-default: server { listen *:80 default_server; ...
1
vote
1answer
135 views

How to make Nginx virtual host work? (page not found)

Running Ubuntu 13.10 in VirtualBox. I've put my website in this folder: http://i.stack.imgur.com/YYhcJ.jpg And created the log folder on /srv/www/streamsy.com/logs/. I've done these steps: sudo ...
0
votes
1answer
83 views

Nginx service stops every one hour

I have a DirectAdmin server configure with nginx service as reverse proxy. Everything runs pretty good for several months and years. Since yesterday, DirectAdmin send me each hour on the 17th minute ...
0
votes
1answer
603 views

How to resume nginx caching without restarting nginx after purge

I'm using fastcgi cache with nginx 1.4.4 on fedora and it works great until I clear the cache directory with: find /var/nginx/cache -type f -exec rm -f {} \; Thereafter nginx will not resume ...
1
vote
1answer
1k views

centos 5 + nginx + git-http-backend

I've a CentOS 5 server at domain.fr. I'm trying to set a subdomain so that I can use it with git, "git.domain.fr". My repositories are in /home/git (example /home/git/repos.git). I've installed ...
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
200 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
105 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
373 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
58 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
3k 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
80 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
117 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
51 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
295 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
31 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
549 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
518 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
271 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
742 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
5k 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 ...
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
51 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
955 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
164 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
143 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
376 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
381 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
648 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
998 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
318 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
830 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
201 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
94 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
403 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
182 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
116 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 ...