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

learn more… | top users | synonyms

0
votes
1answer
2k 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 ...
7
votes
1answer
6k 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
103 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
315 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 ...
1
vote
1answer
1k 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
291 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
1k 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 ...
10
votes
2answers
9k 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
304 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
251 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
99 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
3k 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: ...
3
votes
2answers
3k 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
468 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
351 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
1k 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
265 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
2k 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
673 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
2k 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 ...
6
votes
0answers
915 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
380 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
5k 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
1k 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
67 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
357 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 ...
2
votes
0answers
407 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
1answer
269 views

regex redirection to safe url

I have several thousand URL's in a CMS formatted like: /post/en/1539/A+Week+in+Paris+61.html I'm moving all of the data to wordpress. Where the URL structure will be formated as: ...
0
votes
1answer
133 views

nginx configuration reference filename

I'm setting up nginx + uwsgi. I plan to have multiple apps with different settings running on separate subdomains (e.g. sub1.example.com, sub2.example.com). One of the nice things about uwsgi, is ...
2
votes
0answers
242 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 ...
0
votes
1answer
507 views

Rewrite a specific path in xginx

I am trying to rewrite a specific path using nginx. I have setup my server using nginx/php-fpm/php and it is working fine. I have the following server configuration: server { listen 80; ...
2
votes
1answer
6k views

nginx don't log anything

I'm running a FreeBSD 9-Stable server, with nginx. My configuration is here: user www www; worker_processes 5; error_log /var/log/nginx/nginx-error.log; events { worker_connections 1024; } http { ...
2
votes
0answers
858 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 ...
0
votes
1answer
42 views

Nginx configuration issues

I need nginx to serve a certain location for a certain directory request, for example: localhost/this_site to serve /path/to/this_site How can I make that work?
7
votes
3answers
3k views

Mac firewall blocking nginx (port 80) from external side

I installed nginx using ports and started it with sudo. Accessing the nginx welcome page from localhost works perfectly, however accessing it from an external computer fails. Doing an nmap on the ...
0
votes
1answer
424 views

HTML5 websocket-support for NGINX

I need websockets in a project for HTML5 and PHP, but it don´t works. I read something about that NGINX is not supporting them. Is there a possibility to install a plugin that brings me the support ...
1
vote
1answer
359 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 ...
0
votes
1answer
352 views

Nginx doesn't rewrite correctly when redirecting to the thin cluster

This is my nginx configuration: upstream local_thin_cluster { server 127.0.0.1:3000; server 127.0.0.1:3001; } server { #listen 80; access_log ...
1
vote
1answer
384 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 ...
1
vote
1answer
3k views

How to serve static html from arbitrary url path in nginx?

I would like to serve example.com/mypage.html from example.com/mypage. Within nginx.conf I tried putting mypage.html in designated root directory and then location /mypage} alias mypage.html; } ...
0
votes
0answers
743 views

Configuring phpmyadmin.site.com subdomain with nginx

I have a Rails site being served by nginx. I want to also have phpmyadmin for the same data. My phpmyadmin is installed in /use/share/phpMyAdmin I wrote this in in my nginx.conf file: server { ...
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
1answer
680 views

Nginx HTTPS when only matching admin subfolder [closed]

I have managed to get all /admin requests redirected to https by: server { listen 80; location /admin { rewrite ^ https://$server_name$request_uri?$args permanent; } } But ...
1
vote
2answers
537 views

Renaming Nginx 1.3.5 Server: response header

In nginx 1.2 & 1.3 you can modify the source to change the name: src/http/ngx_http_header_filter_module.c (lines 48 and 49): static char ngx_http_server_string[] = "Server: Not Nginx" CRLF; ...
1
vote
2answers
440 views

Running nginx as the current user

On my linux PC, I'd like to run nginx as whatever user I'm logged into when I start it, and I'd like it to look for config files in the home directory of that user. Is there a way to install nginx to ...
5
votes
1answer
9k views

Nginx rewrite rule to remove path node

Let's say a user tries to access a given image on my website using the following url: http://www.mywebsite.com/blog/image1.jpg?someParam=100 i need a rewrite rule to this, removing the 'blog' node ...
1
vote
1answer
457 views

Can I make my nginx error_log save the whole stacktrace?

I have an Django app running on fastcgi and when there's an exception it seems like it getting cut off in the logs error.log: 2012/06/10 19:25:55 [error] 1416#0: *19219 FastCGI sent in stderr: ...
0
votes
2answers
1k views

Nginx-Remove WWW from HTTPS

I would like to ask for some help with the following Nginx configuration, so that URLs such as https://www.mywebsite.com get rewritten as https://mywebsite.com. I am currently using the following ...