nginx (pronounced "engine-x") is a lightweight, high-performance Web server and reverse proxy as well as IMAP/POP3 proxy server.
5
votes
0answers
1k views
Nginx & Passenger - failed (11: Resource temporarily unavailable) while connecting to upstream
I have an Nginx and Passenger setup that is proving problematic.
At relatively low loads the server seems to get backed up and start churning results like this into the error.log:
connect() to ...
4
votes
0answers
368 views
gallery2 and nginx with rewrite return file not found for file name with space (or + sign in url)
I have setup nginx with gallery2 on an internal server. Everything works fine under apache2 which I checked first, it used to be on apache2.
Problem is: gallery2 seems to generate url with '+' sign ...
4
votes
0answers
172 views
Getting the actual time that a video file is seeked to using nginx_mod_h264_streaming
I'm trying to set up a pseudostreaming site that has timed subtitles for h264 video files that are served via nginx_mod_h264_streaming + JW Player. The subtitles are automatically converted to a ...
3
votes
0answers
295 views
Varnish “FetchError no backend connection” error
Varnishlog:
0 CLI - Rd ping
0 CLI - Wr 200 19 PONG 1340829925 1.0
12 SessionOpen c 79.124.74.11 3063 :80
12 SessionClose c EOF
12 StatSess c 79.124.74.11 3063 ...
3
votes
0answers
423 views
nginx redirects back to remote_addr IP
I am trying to setup nginx 1.0.12 as a proxy for apache 2.2.15, but faced a strange problem. And I cannot solve it for third day in a row. I have test site c-craft.info and have installed roundcube in ...
2
votes
0answers
14 views
Unable to serve Django static files
I am trying to serve Django admin static files but nothing seems to be working below is my nginx configuration :
upstream django {
server 127.0.0.1:8000;
}
server {
listen 4321;
...
2
votes
0answers
31 views
Nginx directory post
THere is a piece of legacy code I'm working on, I can't alter where it POSTs to so I just need to figure a way around it.
THe bit of Javascript makes a post as follows -
POST /authentication/login/ ...
2
votes
0answers
66 views
nginx proxy + ssl +clr “400 bad request” error
Here's the situation - there's a trasnparent nginx proxy that handles SSL certificates and does it well until we decide to add a revocation list management, required for security reasons. This is when ...
2
votes
0answers
119 views
Zend 1 on Ubuntu with MSSQL not working
Does anyone know how to solve the following issue? If not, does anyone know how to setup Zend 1 on Linux to communicate with msSQL server?
We get the following error in the nginx logs when trying to ...
2
votes
0answers
31 views
allow uploads only to authenticated users (nginx + upload_module)
I have configure Nginx with the upload_module.
I can upload & resume files but anybody can post to the /upload location.
is there a way of making the location /upload internal and use ...
2
votes
0answers
100 views
large javascript file not being served properly by nginx
I'm having trouble serving a large (376kb) javascript file via nginx over ssl with gzip enabled. The file is served without issue over plain old http.
The file in question is ckeditor.js and is ...
2
votes
0answers
127 views
nginx - Hide .php extension, and permanently redirect *.php requests to the clean url
After a lot of googling, I've managed to get pretty URLs working by using:
server {
listen 80;
server_name www.url.com;
rewrite ^/(.*) http://url.com/$1 permanent;
}
server {
...
2
votes
0answers
63 views
nginx reverse proxy not returning website
The setup
Currently, we have an Apache2 webserver acting as load balancer for our web architecture. The backends are Xen virtual machines accessible via IPv6 for the public Internet and via IPv4 for ...
2
votes
0answers
98 views
Nginx multiple server blocks
Im having an issue trying to configure Nginx to work with gitlab and some other sites I have.
I have foo.com that points to my server. bar.foo.com also points to my server.
I'm trying to have ...
2
votes
0answers
164 views
Understanding Nginx try_files and fastcgi_path
I'm trying to convert a very simple .htaccess file to nginx:
Options -Indexes -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
As I read on Google and ...
2
votes
0answers
109 views
Nginx / PHP-FPM setting 404 / 5xx on externals
So I've recently been trying to help out the community by building a pimcore based nginx vhost config. Everything works very well from what I can see except for 1 small issue. If any of the pages ...
2
votes
0answers
142 views
php-fpm crashing because of to many mysql processes
I have 2 frontend nginx servers going to 4 backend php-fpm servers which all run Wordpress. The php-fpm servers all connect to one MySQL server and I was checking some stats earlier each php-fpm ...
2
votes
0answers
106 views
nginx 2 symfony2 web application, one ip no domain
I have irritating with nginx.
I set up in /usr/share/nginx/www/firstapp one application and in
/usr/share/nginx/www/secondapp. in my default conf i setup that in / root localization i want first ...
2
votes
0answers
191 views
nginx lua: os.execute waitpid() failed (10: No child processes)
So, I'm trying to execute a script on every request. I know how that sounds, this is for development environment.
I've added this to my nginx config access_by_lua_file "/opt/nginx/git-magic.lua";
...
2
votes
0answers
375 views
Nginx + Unicorn
I am working on a migration from nginx + passenger to nginx + unicorn and I have reached a point where I am a bit stuck.
When I attempt to view my test server, I get nothing but a 404 page. I am sure ...
2
votes
0answers
192 views
Nginx Subdirectory Drupal + other app
I have a drupal app and 2 other app written in php, i want use a rewrite uri for drupal and place drupal in virtual root / and the other by their names ... and use the server cache for the img of each ...
2
votes
0answers
138 views
Nginx HttpSecureLinkModule and IP restricted hashes not working sometimes
Im using the nginx module HttpSecureLinkModule to protect resources from being hotlinked with expiring hashes which use user's IP address to make a hash that will only work for them, on top of ...
2
votes
0answers
183 views
Nginx as a proxy doesn't allow to access backend (Apache) content which is password protected
I have apache as a backend and nginx as a frontend. Some content is password-protected by Apache (HTTP Auth).
When I access it directly - everything works fine, bur when I try it through nginx - ...
2
votes
0answers
391 views
Nginx dynamic upstream configuration / routing
I was experimenting with dynamic upstream configuration for nginx and cant find any good solution to implement upstream configuration from third-party source like redis or mysql.
The idea behind it ...
2
votes
0answers
378 views
Long Polling Options: Nginx, PHP, Node.js
Also posted here: http://stackoverflow.com/questions/8839295/long-polling-options-nginx-php-node-js
I'm designing a long-polling app to broadcast small changes very rapidly to, possibly, a large ...
2
votes
0answers
630 views
nginx sticky sessions / ip_hash with Socket.io
I am to be load balancing two node.js/Socket.io instances on different boxes with nginx running a simple notifications service with a retroactive event for new clients.
I don't think there will be ...
2
votes
0answers
597 views
Nginx subdomain redirects to domain, what's wrong?
I've got a server with serveral domains under Nginx running fine (WordPress blogs). Now I want to setup a phplist server and locate it under one subdomain, but although I thought I configured the ...
2
votes
0answers
300 views
Using nginx as reverse proxy with haproxy as loadbalancer
I am tring to use nginx and haproxy together. I am doing that because haproxy does not support gzip compression. My aim is that first using nginx for gzip compression than forward it to haproxy for ...
2
votes
0answers
1k views
phpBB configuration problem under Nginx
I have a phpBB site running with Nginx (PHP via FastCGI). It works OK. However, some specific actions like moving or deleting a topic fail. Instead, I'm redirected to the forum index.
I think it is a ...
1
vote
0answers
35 views
Enabling Chunked Transfer encoding in Nginx v.1.3.9+
Apparently Nginx now supports Chunked, but I receive error "411 Length Required" when a tablet device sends a Chunked request to Nginx. Any advice as to how to configure Nginx to support Chunked?
I'm ...
1
vote
0answers
79 views
Nginx 502 bad gateway runing django in uwsgi
I tryed to restart a project in production and it stoped working. This is a django==1.5.1 and django-cms==2.4.1 project. I restarted because I've updated the project from django==1.4.1 to ...
1
vote
0answers
28 views
Make nginx stop accepting incoming connections when upstream is not available
I am running the following Puppet setup:
Two puppet masters,each running nginx and uwsgi as a backend. Load balancing and HA between the two puppet masters is done via simple DNS round robin. The ...
1
vote
0answers
29 views
Nginx reverse proxying Drupal content served with Apache
I'm new to Nginx but was interested in trying it out.
I now have Nginx listening to port 80 and serving static html content from /srv/www for a main "promo site". I've also set up apache2 to the ...
1
vote
0answers
24 views
How do I make nginx rewrite requests to a different server (which is in the same config)?
I am trying to achieve the following: Some files on my server should be served from a subdomain (static.example.com) for performance purposes (avoiding cookies). However, some of the content is ...
1
vote
0answers
24 views
How to setup nginx that it's don't use ipv4 in ipv6 notation?
I'm using nginx in a dual-stack environment (native IPv4 and native IPv6 conection at the same time). Threre is an external application which nginx is the proxy for. Unfortunately this application ...
1
vote
0answers
32 views
NGINX and CGit configuration
I?m trying to setup CGit and NGINX. I'm almost there but I have a problem with the rewrite rule in my NGINX's conf file.
Currently I have this:
server {
listen 80;
server_name ...
1
vote
0answers
60 views
NGINX and OpenStack Horizon?
I recently update our web infrastructure to use NGINX instead of our Apache servers.
Now, I'm also operating an OpenStack Infrastructure and I was wondering if there is a state of the art way to ...
1
vote
0answers
38 views
nginx: how to serve files in gzip format when client accepts “Accept-Encoding: gzip” and inflated otherwise?
I have a folder full of .gz files and would like to serve them transparently inflated if requested by a client that does not send Accept-Encoding: gzip in the request and as-is (gzip'd) otherwise.
I ...
1
vote
0answers
113 views
Can not optimize php5-fpm to work without errors
I have installed ngix + php5-fpm. I am happy with it but I can not optimize php5-fpm so that it works without errors. Each fixed error creates a different error.
First I had the the default settings ...
1
vote
0answers
71 views
mediawiki and wordpress MU different root with Nginx
i want to use wordpress MU with mediawiki on the same domain , but i'm using a kind of mediawiki hosting service called wikifamily.
so i have to different script root :
/var/www/wikifamly for ...
1
vote
0answers
105 views
no server available after deploying amazon ec2 rubber rails app
I am a server / sys admin noob, so any help is greatly appreciated here. I am using Rubber to deploy on amazon ec2. I am deploying a t1.micro istance and have followed the railscast.
I tried one ...
1
vote
0answers
101 views
fastcgi-mono-server with Nginx is much slower than xsp4
We started testing our MVC4 app on xsp4 server compiled with mono-3.0.3, speed was enough and we decided to set up production fastcgi-mono-server4 (version 2.11.0.0) with nginx (1.2.6-r1).
Single ...
1
vote
0answers
78 views
301 Redirects with multiple servers and DNS records
Currently my blog is hosted at blog.domain.com and is hosted on a LAMP stack and running wordpress. This is where I have the blog.domain.com DNS a record point to.
I also have domain.com hosted on an ...
1
vote
0answers
122 views
nginx spdy support not working
i try to install nginx with spdy support following here:ningx spedy, i used this configuration command
./configure --with-http_ssl_module --with-http_spdy_module ...
1
vote
0answers
87 views
YSlow - Giving Fs for Expire and Compression, but response headers appear correct
I just moved a moderately busy wordpress site from shared hosting to a VPS server with 512MB ram and attempting to performance tune before I break down and buy another VPS to lighten the load. As such ...
1
vote
0answers
75 views
Issue serving static contents securely via nginx X-Accel and rails send_file
I am trying to serve static contents via nginx & rails using X-Accel-Redirect. My actual static content directort located at rails root folder like this rails_root\books. This is my nginx config ...
1
vote
0answers
41 views
Is there any soft / hard limit on the number of virtual hosts that Nginx can handle?
And what are performance implications? Is it practical to host tens of thousands of vhosts on one Nginx instance? How much would the increased latency be?
We plan to offer custom domains for users, ...
1
vote
0answers
109 views
ISPconfig Bind9 Nginx CNAME error
I have a Ubuntu 12.04 server with Bind9 and Nginx. I have done many years of web development, and usually used Apache2.
I just migrated from a Apache2 server to the new larger one running Nginx.
All ...
1
vote
0answers
51 views
Owner/Group issue on Mirror server
I am running Gluster-FS with a High-Availability Storage setup.
Both client and server nodes have NginX running to serve same files.
main.mysite.com
mirror1.mysite.com
..etc..
The problem is that ...
1
vote
0answers
71 views
nginx does not respect “root” directive
I'm running an EC2 instance with Ubuntu and trying to setup virtual servers for two domains without luck and cannot figure out why. My web documents are located in /var/www/<domain> and ...