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

learn more… | top users | synonyms

4
votes
0answers
3k 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; ...
2
votes
0answers
112 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 ...
2
votes
0answers
1k 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 ...
2
votes
0answers
297 views

PHP : curl is and Not working in ubuntu10.04 and Nginx

I am running Nginx server on ubuntu 10.04 I am using the php version 5.3.2 .I installed php5-curl using apt-get install php5-curl. Unfortunately the curl package is not displaying in phpinfo() . ...
2
votes
0answers
311 views

Raspberry Pi, Mercurial and nginx

I am posting this here, as apparently, I am unlikely to get any help at raspberry pi. Please bear with me. I have a small problem with configuring Mercurial to work with nginx using unix sockets on ...
2
votes
0answers
177 views

how do I enable debug logging in php5-ldap

I have phabricator running on Ubuntu behind nginx and php5-fpm, and now trying to figure out why ldap logins fail. Is there a way to enable verbose logging of the php-ldap code? What file is the log ...
2
votes
0answers
685 views

How to fix the authentication error “request-digest mismatch” using cadaver and WebDAV on nginx?

I use nginx 1.3.9 with the extensions nginx-dav-ext-module and nginx-http-auth-digest. The problem seems to only occur when I try to log in with cadaver, it’s possible to access the DAV share with ...
2
votes
0answers
1k views

How can I pass environment variable in nginx conf?

I have nginx conf as location /static/ { alias $HOME/code/python/vlists/vlists/static/; # if asset versioning is used if ($query_string) { expires max; ...
1
vote
0answers
15 views

Nginx slow downloads even with low disk io

I run a small video streaming website and i've been noticing some problems with videos on my site. I have multiple 1gbit servers and the servers are only going at 1/4 port speed. When I try to load ...
1
vote
0answers
170 views

nginx - ssl and www redirect configuration

this is related to: http://stackoverflow.com/questions/24538973/django-allowed-hosts-error-for-www-domain-and-ip-address i'm attempting to redirect www and non-ssl requests to ssl non-www domain for ...
1
vote
0answers
150 views

Allow internet access to intranet only users using Nginx on Ubuntu

I need to allow some users who only have access to the intranet to access one specific internet site. I'm doing this by using Nginx as a reverse proxy. To test this, I would like to block all internet ...
1
vote
0answers
379 views

https proxy s3 aws via nginx with pagespeed

I'm trying to setup pagespeed to proxy s3 files via nginx. I want to "save" the files on amazon s3; The story I want is: User A 1. nginx serves page to user; and rewrites all ...
1
vote
0answers
416 views

Nginx rewrite to remove first (generic) path node

I am currently writing a dispatcher that will dispatch different URLs to specific service URLS. I essentially want to dispatch something like: POST ...
1
vote
0answers
197 views

Configuring nginx to retry a single upstream server

I'm using nginx as a reverse proxy and I would like it to wait some number of seconds and retry a request if the upstream server isn't responding. This way I can restart my upstream server and instead ...
1
vote
0answers
759 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 ...
1
vote
0answers
52 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
0answers
103 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 ...
1
vote
0answers
422 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 ...
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 ...
1
vote
0answers
2k 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: ...
1
vote
0answers
271 views

nginx: how to allow more than one session per client

Nginx by default waits for session to be closed until it opens a new session. this is a problem if a user tries to download more than one archive at once. How to disable or upper the limit? what ...
1
vote
0answers
295 views

Port forwarding on Ubuntu Server 12 and Virtual Box

I need advice on how to forward to port 80 and how to make my VirtualBox service accessible to outside world. I can access the web server with my host computer and with putty. I'm following a ...
0
votes
0answers
6 views

Nginx, php-fpm, virtual hosts and premissions

I have apache-mpm-itk + php_module setup and user's folders/files belongs to them. But I want to migrate several accounts to nginx + php-fpm. What should be the right permissions on folders/files if ...
0
votes
0answers
14 views

Node.js Express NGINX : static file paths break with name spaced proxy_pass

So I was accessing my server at domain.com:3333 but just switched it it to domain.com/nodeapp using upstream and proxy pass in my nginx config. The redirect works just fine, but now the links to ...
0
votes
0answers
21 views

OS X MySQL '/tmp/mysql.sock' error after sudo chown -R myname usr

On OS X 10.6, when installing NGINX I inadvertently (hastily, stupidly) ran sudo chown -R myname usr, and think I repaired it with Applejack (app, run from command line). However, Running the ...
0
votes
0answers
49 views

Nginx on OSX 8 (Mountain Lion) won't start - dyld: Library not loaded

I recently decided to ditch MAMP for NGINX as it's what I use in production. So far I have: Installed XCode's GCC module. Installed Homebrew Installed NGINX What I've tried: Uninstalling ...
0
votes
0answers
15 views

How do I make my vagrant site visible to all users on the network?

I'm running a website using Vagrant/VirtualBox/Ubuntu 14.04/Nginx. It's running on IP 192.168.33.10 but I can only access it if I edit my Windows hosts file to make the guest hostname point to that IP ...
0
votes
0answers
12 views

VARNISH ESI when passing url to nginx back end

I am using esi to load a banner into my index.php page, but when a user is logged in i send traffic to nginx by using return (pass), but nginx can not parse the esi part and i get the page without the ...
0
votes
0answers
53 views

Trying to remove 1152 samples, but the queue is empty

I am streaming mp3 files,using this command : ffmpeg -re -i 'INPUT.mp3' -map_metadata -1 -map 0:0 URL I create a loop which stream files,and there is no problem with reviving stream,just from ...
0
votes
0answers
15 views

Setting up nginx on Fedora 19

So I had nginx set-up with the default site. I decided I wanted to change because my website is at /var/www/server.nyro.net/... so before I changed again, I went to 127.0.0.1 to see if everything ...
0
votes
0answers
63 views

Apache vs nginx Memory Consumption with PHP

I want to start by saying that I know the debate regarding PHP performance under Apache and nginx is still a bit undecided, as PHP is generally the bottleneck on performance. I have my application ...
0
votes
0answers
9 views

PHP-FPM: if “part of PHP”, then how to run as separate proxy to Nginx?

In writeups of PHP-FPM, websites tell me that it's been a part of PHP since 5.3.3. What does this mean? If I have PHP 5.3.8 installed on my server and already being used inside Apache (to which ...
0
votes
0answers
58 views

Moving to a complete Nginx/PHP-FPM environment from Apache

I am sure this is a question many beginner sysadmins like me have, and many more advanced people have already put this in place: CURRENT PLATFORM: Nginx proxying to Apache, which manages PHP ...
0
votes
0answers
306 views

How to upgrade Nginx and install php-fpm on CentOS

I want to upgrade Nginx via Yum, and also install PHP-FPM as usual. Most blog and online resources use the EPEL and REMI repos, but they're not working on my server. My OS info: Linux ...
0
votes
0answers
42 views

How to host multiple nodejs application under one IP

For example, I have a Ubuntu instance, domain name www.example.com. How can I run different nodejs in www.example.com/web1, www.example.com/web2? Another question is, can all of them run on port 80? ...
0
votes
0answers
56 views

Nginx in front of Apache and retain logins

I've googled for a while and searched super user and can't seem to find anything regarding my current issue. I'll try to explain it as best as I can. I have two servers, at two different geographical ...
0
votes
0answers
99 views

I'm getting 500 server error in when trying to send ajax to codigniter+NGINX in production in ec2

When Im in my local environment when I send with ajax rest post http://localhost:8080/index.php/api/get_user I'm getting an answer from the server (Codeigniter + NGINX). But when I do it with ...
0
votes
0answers
80 views

How to get around NGINX error on Max OSX 10.9.3: unknown directive “set_real_ip_from”?

I'm using MacOSX 10.9.3 and trying to run NGINX. First I install it: % brew install nginx -with-http_realip_module ==> Downloading ...
0
votes
0answers
44 views

Nginx multiple hosts zabbix statistics

I have server with KVM hypervizor and Nginx as frontend web proxy. There are several virtual machines installed in KVM with own Nginx servers. Every Nginx in virtual machine works with 10 hosts. I ...
0
votes
0answers
41 views

run selfoss in a subsubfolder on an nginx webserver

I am trying to run selfoss through nginx webserver in a subfolder of my home directory. The files are in /home/me/web/selfoss, and by the nginx instruction location /me/ { alias /home/me/web/; } ...
0
votes
0answers
37 views

PunBB Rewrites in Nginx

Is anyone currently running the PunBB forum on Nginx? I want to change my URL scheme to the Fancy File-based URLs, but I cannot for the life of me figure out what the proper rewrites are supposed to ...
0
votes
0answers
419 views

nginx Times Out Uploading Files - Way Under Timeout Limit

I have an application that can accept file uploads and puts those onto S3. Some files have been failing to upload when going through the nginx reverse-proxy. Now, I have keepalive_timeout 120; set ...
0
votes
0answers
22 views

Make nginx config like apache2

I have web server with apache2 with many subdomains on it like, domain.com, abc.domain.com, def.domain.com etc. etc. Now I got a new nginx server and want to set it up like apache2, so to test I ...
0
votes
0answers
26 views

How to configure thin yml to adjust log level

I want to adjust the log level of thin, so it is less verbose on my server. In the config there are configured the fields pid: .. log: .. rackup: .. environment: .. user: .. group: .. socket: .. ...
0
votes
0answers
77 views

How to server multiple public directories in nginx

I am using nginx to server my NodeJS/Angular app following this guide. I am serving all my public components via the following. root /root/app/public; Apart from that I have bower components which are ...
0
votes
0answers
183 views

(111)Connection refused: mod_fcgid: can't connect unix domain socket

I have a problem with one of my webservers. I have Apache and Nginx (like a proxy-reverse server). My Apache run with mod_fcgid for PHP5.3. All works fine, but only on a few requests show me this ...
0
votes
0answers
35 views

Minimal nginx configuration for localhost?

I need to serve myself a few static HTML documents for test purposes (playing around with Mozilla addon development, need certain content to develop against). I thought I can just install a small ...
0
votes
0answers
169 views

nginx “time out while sending response to client”

When sending a 10GB file locally [public IP not a LAN IP] over my 10Gbit port using wget cmd, following error is being printed in the error.log. client timed out (110: Connection timed out) while ...
0
votes
0answers
32 views

nginx wget download fails (timeout)

I have generated a 10GB file using fallocate. Now when trying to download that file using wget -O /dev/null example.com/10gb.bin it stops at ~72% and says "Connection closed at byte X". Retrying. ...
0
votes
0answers
48 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 ...