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

learn more… | top users | synonyms

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
47 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
757 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
141 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
443 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
113 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
355 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
310 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
566 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
0answers
301 views

SSL with nginx on subdomain not working

I'm using nginx to serve three sites: example1.com (which redirects to www.example1.com), example2.com (which redirects to www.example2.com), and a subdomain of example2.com, call it sub.example2.com. ...
0
votes
0answers
40 views

ssl port didnt work on nginx

I set up the unicorn and Nginx on one of my ec2 machines. My requests are loading ok with Nginx listening to port 80, but when I enable ssl, which listen to port 443, it doesn't work. It can still ...
0
votes
1answer
748 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
247 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
693 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
177 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
86 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
338 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
1k 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
159 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
107 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
993 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
429 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
1k 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
1k 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 ...
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; ...
0
votes
1answer
71 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?
0
votes
0answers
227 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 ...
0
votes
1answer
882 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
238 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
521 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 ...
4
votes
2answers
6k 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
202 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
231 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
86 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
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
2answers
2k 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
351 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
256 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
0answers
993 views

nginx configuration forvideo streaming server

I run nginx for few websites and for video streaming using h264 module from code-shop.com. When I start or restart nginx it works normally for a while after it starts generating very high load ...
0
votes
1answer
185 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
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 ...
1
vote
1answer
471 views

How to “try_files” on different domain using nginx?

How can i config try_files to "try" and search files on a different different domain? what i've tried: location ~ .flv$ { limit_req zone=one burst=2; root /; internal; ...
3
votes
3answers
839 views

How to remove double slash in URLS served by nginx?

I need to replicate the following Apache rewrite rules in nginx config. What is the nginx equivalent to : RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L] Target environment is ...
8
votes
3answers
4k views

I can't open phpMyAdmin, get error 301 or 500

I've installed phpMyAdmin, but I can't open it on any browser: I get a 301 redirect(*) if I browse to http://localhost:8080/phpmyadmin. If I add a / to the end of the addres, I get a 500 error status ...
7
votes
0answers
606 views

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

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
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
1answer
2k views

Permissions for SSL key?

I'm trying to set up a secure connection (https) in nginx. But I'm a bit worried about the private key's permissions, which aren't mentioned in any tutorial. Should I change them? To what?
0
votes
1answer
913 views

Unable to build Awstats report - permission denied on awstats.pl

I just installed a fresh copy of Awstats 7.1 on my server running CentOS 6.3 and nginx. When I try to run this command to generate the report: /usr/local/awstats/tools/awstats_buildstaticpages.pl ...
0
votes
1answer
66 views

I need some guidance on what to do next with my server

I have a server with the following specifications: HP DL180 G6 2 x Intel Quad-Core Xeon E5620 8GB RAM 4 x 2TB Hard drives running in a RAID10 NGINX running as download webserver It is connected at ...
1
vote
1answer
244 views

How to reinstall nginx from source? (was installed with apt-get)

I want to install this module. The problem is it requires that nginx is installed from source. I have it installed via apt-get install, and it is already serving web pages. So which steps would you ...