Tagged Questions

NginX is a web server and mail proxy known for its high performance and small resource footprint. It is used in many places as a replacement to apache and also as a front end server to static content or reverse proxying. NginX is developed under a BSD-like license by kazakhstani developer Igor ...

learn more… | top users | synonyms

1
vote
0answers
11 views

Routing non GET requests to passenger in Nginx

I have a Rails app that is caching pages in multiple custom directories. Everything works fine other than non GET requests, which are delivering 405 errors in Nginx because my configuration is not ...
0
votes
0answers
10 views

Apache to Nginx rewrite rules migraiton: why only root page is served?

I am migrating from apache to nginx with site that serves everything through single index.php file. And all examples of rewriting I can find are about wordpress or some arbitrary routing. In my case ...
0
votes
2answers
33 views

Locating Source of Inbound DDOS

Our web server (Nginx, MySQL, PHP) is presently being attacked by DDOS. Outgoing traffic is normal (avg 563 kb/sec) but incoming traffic is what is eating up our 1gbit port (avg 800Mb/sec). In the ...
1
vote
1answer
12 views

Changing Nginx server location for ISPConfig

I installed ISPConfig on Ubuntu. It was configured for one NGinx install but I had to move to a different Nginx install. Now how can I make ISPConfig aware of this new location and forget about the ...
0
votes
0answers
14 views

Prestashop is not saving Memcached settings

I have a issue with the admin site of prestashop. I'm trying to activate the caching system but it doesn't save the setting. When I add a server (I'm using an Amazon ElasticCache server) saves it, ...
0
votes
2answers
18 views

nginx proxy configuration error (config syntax)

Hihi, below is the config + error it's throwing, can't for the life of me figure out what's wrong. Tried all sorts to get it working to no avail :( server { listen 127.0.0.1:100; ...
0
votes
1answer
20 views

Rewriting nginx URL's

I need to setup nginx to rewrite URL's from example.com/page1/page2 to example.com/#page1/page2, in order to make backbone.js´s Routing work. Basically it's all about the # that needs to be appended ...
2
votes
0answers
27 views

Copy/Mirror traffic to different port - iptables

I have nginx running on port 80 and apache running on port 8080 I want to transfer all the traffic to both nginx and apache asynchronously i.e the performance of one server wont be dependent on the ...
3
votes
4answers
48 views

Is there any way to detect when nginx has completed a graceful shutdown?

I have a ruby on rails application which is running on passenger and nginx, with one main webserver and multiple application servers. I am trying to update my deployment process in order to minimize ...
0
votes
1answer
20 views

NginX domain resolver

Having nginx installed and Apache on port 8080. The trouble is: I'm building site for production domain (let's say mysite.com) and have everything configured for that domain. I change my Windows hosts ...
1
vote
1answer
19 views

NginX & Plesk: 502

Having server with CentOS and Plesk. Installed nginx right how it's discribed here: http://gudym.net/plesk-nginx.html But now if i go to mysupermegasite.com I'm getting 502 Bad Gateway nginx/0.8.55 ...
0
votes
0answers
20 views

Disable keepalive for proxies

Can I disable keepalive if my site is being accessed through a proxy? Site is served by nginx on linux, some dynamic parts are proxied to local Apache. If not possible for all proxies in general, ...
2
votes
1answer
45 views

Is it worth running Nginx for static files of my Node.js app?

I'm currently writing a web app in Node.js and will soon be setting up my Linux server to make it live. I'm curious, is it worth running Nginx for my Node app's static files? Is it running Nginx to ...
0
votes
1answer
76 views

nginx+php-fpm help optimize configs

I have 3 servers. First server (CPU - model name: 06/17, 2.66GHz, 4 cores, 8GB RAM) have nginx as load balancer with next config upstream lb_mydomain { server mydomain.ru:81 weight=2; ...
1
vote
0answers
19 views

NGINX proxy to server with cache as backup

We want to set up an NGINX server that will proxy all requests it receives to an upstream server, but when the upstream server fails/becomes unavailable it should fall back to a local cache of the ...
0
votes
0answers
26 views

nginx + ajax = internal server error 500

i've running a nginx web server. my config: http://pastie.org/private/yuz8xvddwfguaeqnvopnaa Everything works fine - except when my ajax controller (ajax.php) is called. (It is called automatically ...
6
votes
2answers
403 views

Is nginx suited for serving PDFs?

This is a dummy question. I have to give public access to PDFs, let's say 8 MB / file. It seems to me that nginx will serve any kind of files, as long as they are static. But someone tells me nginx ...
0
votes
1answer
15 views

Configuring Virtual Hosts - nginx and passenger phusion on Ubuntu

I was able to successfully configure nginx and passenger phusion. I now have the following configuration server {listen 80 server_name **sub1.example.com** root /home/user/app1/public } server ...
4
votes
1answer
37 views

Why isn't the Nginx Gzip Precompression module working?

I'm currently trying to set up Nginx to serve all of my static files. Since they will not be changed very frequently at all I want to us the gzip_static module to allow me to pre-gzip copies of my ...
-1
votes
1answer
34 views

User http does not have write permissions directory?

I have a bit of an odd set up, I think. I have groups for each domain my server hosts, and I add the user http to each domain group along with the users that should have access to the groups' domains. ...
1
vote
1answer
24 views

Expires directive returned in the ngix server response header

I have configures Nginx as reverse proxy/caching server to my apache webserver. In the nginx config file I have setting of expires 30D at the server level. My apache config file has no expires ...
1
vote
0answers
34 views

Nginx, uWSGI, Python, users, groups and permissions. Questions about security

Ok, yesterday I finally get nginx and uWSGI servers running on my PC. Nginx and uWSGI configuration files, new users, groups and their privileges, and chrootdir for SSH I configured based on knowledge ...
0
votes
1answer
22 views

Restrict file size upload per url

I have a website build with Play! Framework that I show with NGinx using ssl. Everything works fine but I'd like to implement a file upload limit based on url : If the user upload a file to ...
1
vote
1answer
27 views

Limit file upload per type with NGinx

On my project, I will allow users to send zip files and images files (on two different form post). The project is developed with Play! Framework (not PHP). I'd like to limit the size of upload for ...
0
votes
1answer
48 views

Nginx to proxy to Apache

I'm trying to setup Nginx as a reverse proxy to Apache for a site running locally on :8080 and externally accesible via lessico.pistacchioso.com. The current configuration leads to a 502 - Bad Gateway ...
0
votes
1answer
47 views

How do I increase FastCGI read timeout to prevent 504 error on nginx?

I am running a file with considerable amount of coding. It takes approximately 55 seconds to process 500 users, but now I have to process 1000 users. The default timeout is 60 seconds, so I have to ...
0
votes
0answers
24 views

Tips setting up nginx as proxy for php and node frameworks

We have a current, soon-to-be legacy PHP app installed in production, served with apache. Working fine. Currently trying to add in new Node.js alpha stack, which we're planning to install alongside ...
2
votes
2answers
80 views

Puppet agent to puppet master (running on nginx/ruby1.9) SSL certificate issues

I have two machines, puppet master--host name puppet--and a lone client, host name git. The puppet agent on the master machine works without issue. The agent on git fails with a '400 No required SSL ...
0
votes
1answer
34 views

nginx rewrite or location

I'm migrating an old site to a new structure, and have a bunch of these type rewrites: location / { rewrite ^/foo.html /legacy-page? permanent; rewrite ^/bar.html /legacy-page? permanent; rewrite ...
-2
votes
0answers
47 views

Why should I use nginx instead of apache? [closed]

In the site mono project they recommand to use nginx instead of apache? Is nginx more performant?
1
vote
1answer
48 views

chrooting php-fpm with nginx

I'm setting up a new server with PHP 5.3.9 and nginx, so I compiled PHP with the php-fpm SAPI options. By itself it works great using the following server entry in nginx: server { listen 80; ...
1
vote
2answers
39 views

How to configure nginx to serve single named virtualhost, aside of apache

I currently have a single apache server with several named virtualhosts defined there, all serving on the same IP, on port 80. However, I have one static virtualhost (a specific domain) I want to ...
0
votes
0answers
17 views

Multiple tomcats and nginx upstream

I'm trying to squeeze every thing i can from my ec2 account : I have a tomcat 7 installed on a ec2 large instance , i've been running some tests on it and right now i'm maxing out with apache ...
0
votes
1answer
27 views

Setup multiple webapps to respond to multiple domains using a single IP

I have two rails webapps, I have configured one webapp to respond to multiple domains. I have done this by making the corresponding server block in nginx as the default. Now, I want to make even the ...
0
votes
1answer
20 views

nginx extending a rewrite rule with a condition

I have the following rewrite rule, used for WordPress Network to handle the file requests: location @rewrite { rewrite ^/(.*)$ ...
0
votes
1answer
34 views

nginx does not write to cache behind Varnish

I have nginx as a reverse proxy to a remote web server. Cache is written to file. However, when I place Varnish in front of it, nginx stops writing to cache file, which causes a performance hit and it ...
0
votes
0answers
25 views

running both python and php on the same Ubuntu server

I am going to be setting up an Ubuntu 11.10 virtual server (linode) to run both php and python applications. I have set up Apache for both php and python, but not both, and seem to recall some issues ...
1
vote
1answer
27 views

NGINX prevent direct access to directory but allow rewrites

Using NGINX to proxy to a cluster of RIAK nodes*. I have a rewrite rule like rewrite ^/bucket-([a-z]+)/object-([a-zA-Z0-9]+)/(.+)$ /riak/$1/$2 break; and a location block location /riak/ { ...
0
votes
0answers
26 views

Rewrite rule conversion to NginX

I am trying to login to my WebDav folder of my owncloud.org installation, but it's not working from my iphone (webdav navigator) or windows (mini redirector). Authentication with the sabredav script ...
0
votes
3answers
52 views

Can I install Ngnix on a server that is already on Apache?

I have a dedicated server that is running on Apache, I heard Nginx is uses less resources and gives 10 times better results on the same hardware. Is it possible for me to replace Apache with Nginx? ...
0
votes
1answer
15 views

Nginx unicorn: firefox is redirected to proxy_pass

I have the following setup to process certain domains with rails via unicorn: http { # ... upstream unicorn_server { # This is the socket we configured in app's config unicorn.rb ...
0
votes
0answers
12 views

Nginx with FastCGI and Mono : How robust is this combination?

I'm exploring setting up a small pool of Nginx servers crunching over some data via a web service. Nginx + FastCGI + Mono seems like a great combination but it's not clear how robust or production ...
1
vote
0answers
80 views

SSH over HTTPS with proxytunnel and nginx

I'm trying to setup an ssh over https connection using nginx. I haven't found any working examples, so any help would be appreciated! ~$ cat .ssh/config Host example.net Hostname example.net ...
1
vote
0answers
46 views

What's the ideal Ubuntu operation setup for running a Django webserver? [closed]

What's the ideal Ubuntu operation setup for running a Django webserver? When I started working in Django 2 years (or so) ago it was an nginx front end to serve up static medica and Apache running ...
0
votes
1answer
54 views

Why does this nginx/thin run puppet master interpret paths differently than a lone puppetmasterd?

For the purposes of this question I need to make a distinction between my Production puppet master and my Development puppet master. In either case, my /etc/puppet/puppet.conf is: [main] ...
0
votes
0answers
11 views

Can nginx delay a response based on a proxied return value?

I'd like to delay authentication failure attempts to help mitigate distributed authentication scanning. If my backend returns 403 to an authentication attempt, I'd like nginx to wait some set amount ...
0
votes
1answer
18 views

nginx location block, redirect when not matching an expression

We're transitioning from a set of locations of the form: example.com/app1 where we will do a redirect to /app2. However, we want to keep some URIs for app1 active, e.g., example.com/app1/111 and ...
1
vote
1answer
36 views

ApacheTop like tool for Nginx for measuring hit contents?

Are there ApacheTop like tool for Nginx for measuring hit contents? I want to find out the most popular URL from the web server log (Nginx)
0
votes
1answer
37 views

Nginx/haproxy/IIS - Configuration questions and concerns

Our environment is mostly consisting of SSL web sites running on IIS/ASP.Net. The majority of the site code is reporting, analysis, and user specific views of data. We are expanding the number of ...
1
vote
1answer
55 views

Persistent web cache?

I'm building nginx cache on a development machine and try to copy the files to a server that has the same nginx cache settings. But nginx is not picking up my copied caches and overwrite my caches. ...

1 2 3 4 5 40