Questions tagged [nginx]

Nginx ("eNgine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

Filter by
Sorted by
Tagged with
8 votes
6 answers
4k views

PHP-CGI Started Serving Blank Pages

My PHP-CGI started serving blank pages for no apparent reason until I restarted the process. I want to know why. Unfortunately the "production" configuration file of PHP has no error_log by default. ...
Unknown's user avatar
  • 1,705
152 votes
13 answers
182k views

How to set up Nginx as a caching reverse proxy?

I heard recently that Nginx has added caching to its reverse proxy feature. I looked around but couldn't find much info about it. I want to set up Nginx as a caching reverse proxy in front of Apache/...
Continuation's user avatar
  • 3,110
2 votes
1 answer
3k views

Nginx 404 Deploying Ruby on Rails Application with Phusion Passenger

There are a lot of moving parts here that I have varying levels of familiarity with, so I'm hoping another set of eyes will help me discover why I'm getting a 404 after deploying my Rails app on Nginx ...
1 vote
5 answers
21k views

Nginx Not Passing URL Parameters

Messing around with Nginx ... for some reason, it looks like none of my URL parameters are being passed. My homepage loads fine, but a URL like "http://mysite.com/more.php?id=101" throws errors, ...
jmccartie's user avatar
  • 153
16 votes
4 answers
49k views

nginx support for .htaccess / rewrite rules? Differences from Apache?

I've been working with Apache http servers for quite some time, and finally making the move to static-content servers alongside the others dynamic-content machines. I was wondering, does nginx ...
anonymous coward's user avatar
112 votes
8 answers
194k views

Setting the "Expires" HTTP header for static content served from Nginx?

I'm using nginx to server my static content, is there a way that I can set the expires headers for every file that meets a specific rule? For example can I set the expires header for all files that ...
Unkwntech's user avatar
  • 1,759
7 votes
4 answers
4k views

Experience in migrating from Apache to nginx?

I'd like to get some feedback about a migration From Apache to nginx. My goal is to reduce the memory footprint of the web server. Currently, I use the following modules.features on Apache: multiple ...
Julien's user avatar
  • 1,038
10 votes
6 answers
4k views

How to upgrade software installed from source?

I install NGinx from source since the packages from the ubuntu repository are quite old. I was wondering what is the best method to upgrade these types of installations? My current workflow involves. ...
The Pixel Developer's user avatar
46 votes
15 answers
41k views

NGinx Best Practices

What best practices do you use while using NGinx?
1 vote
2 answers
9k views

Passenger + Nginx => 502 Bad Gateway

I'm trying to run a relatively simple rails app (http:// www.enkiblog.com/) and it kinda works. The comments and the admin interface only work when I use "script/ server -e production" and connect to ...
rb2k's user avatar
  • 153
2 votes
4 answers
522 views

Which web server has better rewrite syntax that closely mimics Apache's?

Since most open source projects include mod_rewrite rules to work with Apache I need to be able to convert them to work with lighttpd or nginx. Which web server allows me to convert the rules exactly ...
kovert's user avatar
  • 437
0 votes
2 answers
3k views

Nginx ModWsgi Bad?

I was thinking of deploying Nginx with mod_wsgi. However I read this blog: http://blogg.ingspree.net/blog/2007/11/24/nginx-mod-wsgi-vs-fastcgi/ In here the author of mod_wsgi for nginx says that the ...
Unknown's user avatar
  • 1,705
4 votes
3 answers
10k views

Can Nginx handle php (or similar fcgi) requests inside of an alias?

I am converting a legacy Apache server to Nginx and do not have the luxury of changing URL's or rearranging the filesystem. Is it possible to use nested location{} blocks in the Nginx configuration ...
allaryin's user avatar
  • 323
18 votes
4 answers
21k views

Which is best for Django? Lighttpd or Nginx? Or maybe something else? [closed]

Which of Lighttpd and Nginx is, basing on your experience, better suited for Django? I've used both and can hardly notice any difference at all, they just work fine... Are there any use cases when one ...
233 votes
5 answers
248k views

nginx HTTPS serving with same config as HTTP

Is there a way to share configuration directives across two nginx server {} blocks? I'd like to avoid duplicating the rules, as my site's HTTPS and HTTP content are served with the exact same config. ...
ceejayoz's user avatar
  • 33.1k
23 votes
2 answers
38k views

number of nginx worker processes

I'm setting up nginx to serve a Drupal install, and I seem to find conflicting information on the nginx worker processes setting. One site says you need two, one says you need five, one says one per ...
ceejayoz's user avatar
  • 33.1k
8 votes
2 answers
2k views

What are the pros and cons of using Nginx over Apache with Rails when using Passenger

Passenger recently got support for Nginx, what are the pros and cons of it over Apache as a web server for Rails applications?
Theo's user avatar
  • 2,795
1 vote
5 answers
404 views

Does nginx have worthy attributes?

In my particular case, I'm using nginx on a group of machines I inherited that are no longer running their own mail servers and all of our web traffic is either static or fastcgi. I had never used ...
ironfroggy's user avatar
15 votes
5 answers
4k views

Alternatives to Apache

Our current stack is Apache + Tomcat + MySQL, using ProxyPass AJP to fire requests from Apache to Tomcat. We also run PHP for Wordpress on the same sites, and so need working .htaccess files. In ...
Marcus Downing's user avatar
5 votes
3 answers
3k views

How do you set up SSL and Nginx Proxying?

I have Nginx listening to traffic on port 80 and proxying certain request to Apache over port 8080. I am going to set up Nginx to listen to port 443 for https traffic, but my question is how should ...
Jason Christa's user avatar

1
339 340 341 342
343