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

learn more… | top users | synonyms

0
votes
0answers
36 views

Passing parameters in nginx load balancing

So I basically followed this tutorial and set up a load balancer on my nginx server. upstream backend { server backend1.example.com; server backend2.example.com; } Now all the incoming request ...
0
votes
0answers
184 views

nginx pass filetype to backend server

I am trying to setup nginx to handle file uploads and pass the file information on to a backend server once done. I came across a post at https://coderwall.com/p/swgfvw that shows how to do this and I ...
0
votes
0answers
635 views

Nginx location $request_filename not set right with rewrite rule

When I write the location in, it works, when I use the same location as a rewrite rule, it doesnt!!! I dont understand the logic. Can someone please explain? location /v3/ { alias ...
0
votes
0answers
97 views

Nginx/SNI: Return 444 if there's no certificate available for a specific domain hosted on the same IP

I'm stuck with configuring nginx regarding SSL and SNI support. In order to simplify my case let's say I have two domains, foo.com and bar.com. I have only one IP and both domains are mapped to this ...
0
votes
0answers
213 views

set up (VirtualBox + CentOS) with (nginx + PHP + MySql) on MacOS

I'm trying to set up (Virtual Box + CentOS) with (nginx + PHP + MySql) on MacOS, the future I can coding on MacOS then throw file to the share folder with (Virtual Box + CentOS) and execute on ...
0
votes
2answers
114 views

How do I preserve a UNIX socket across reboots (RasPi, Arch, chroot)

I've set up nginx and php-fpm under Arch Linux on a RasPi. nginx was set up in a chroot as described in the ArchWiki. Everything runs fine when php-fpm.conf and nginx.conf are set up to listen to ...
0
votes
0answers
20 views

Ideal location for storing project files in Linux servers

Since using Linux/CentOs servers, I have read numerous blogs about suggesting where to actually place the public project folders. Nginx seems to suggest the html pages should be placed in: ...
0
votes
1answer
67 views

nginx: how do i cancle a request with “No Response”, like “return 444” via fcgi?

i like to block out some bot trying to do bad stuff to my web-applications. a daily cronjobs extends my block.conf, containing a lof of deny a.b.c.d lines. before the cronjob runs at 4am and after ...
0
votes
1answer
32 views

How to set up load balancer with SSL?

I currently have a single server with a Django stack. I have nginx with an SSL certificate for HTTPS. I want to scale the web layer by putting an nginx load balancer in front, and adding IP addresses ...
1
vote
0answers
259 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
38 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
63 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
190 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
320 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
236 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
87 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
212 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
127 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
0answers
56 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
279 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
838 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
2k 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
130 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
78 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
237 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
50 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
1k 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
52 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 ...
0
votes
0answers
88 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
896 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
0answers
32 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
250 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
68 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
26 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
496 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
393 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
0answers
260 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
459 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
1k 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
0answers
903 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
2k 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
4k 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
98 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
1k 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
46 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
678 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
131 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 ...
0
votes
0answers
417 views

Set up a sub domain on a Nginx server Ubuntu 12.04

I am trying to learn as I go: I have set up Nginx server on my Ubuntu 12.04 Droplet on a Digital Ocean account. I have successfully pointed my domain (registered @ godaddy) to my droplet (I can see ...
2
votes
0answers
96 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
325 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 ...