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

learn more… | top users | synonyms

5
votes
0answers
405 views

Should we still set cgi.fix_pathinfo=0 when configuring nginx+php5-fpm?

Security breach was found in nginx+php5-fpm default configuration in 2010. A lot of nginx+php5-fpm configuration guides tell us to set cgi.fix_pathinfo=0 to be safe. Is it still actual for current ...
2
votes
0answers
75 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
2k 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
249 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
140 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
627 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
888 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
2 views

Virtual Host Redirects and Packet Flow

If I set up a virtual host in nginx, will all packets flow through that PC? Here is what is going on. I have an openwrt NAT router with two devices behind it, a server and a raspberry pi. I want both ...
1
vote
0answers
52 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
45 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
318 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
924 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
1k 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
813 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 ...
1
vote
0answers
280 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 ...
1
vote
0answers
241 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
265 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
13 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 ...
0
votes
0answers
11 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
21 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 ...
0
votes
0answers
20 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
14 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
9 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
18 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
27 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
53 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 ...
0
votes
0answers
21 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
9 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
31 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
64 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
19 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
49 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
17 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
59 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 ...
0
votes
0answers
16 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
66 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
247 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
67 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
119 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
0answers
15 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
0answers
30 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
39 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
101 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
238 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
158 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
71 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
0answers
39 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
0answers
69 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
0answers
42 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
58 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 ...