0
votes
1answer
722 views

Getting Fatal Errors in Nginx to Be Shown in the Browser

While developing I'm getting blank pages in my browser whenever I create a fatal error in PHP with a typo or just my bad programming ;). It's super annoying for me to have to view the raw nginx error ...
1
vote
1answer
437 views

nginx Request line too large

I'm getting the error: Bad Request Request Line is too large (6060 > 4094) When I access the a specific url on my server like this: /api/categorize?packages=package1,package2,...packageN On ...
0
votes
0answers
80 views

NGINX — serve static files within location

I'm trying to setup a virtual location in nginx in order to serve large static files from a directory. The main app is a symfony2 program. What I would like to do is having an url where you could ...
0
votes
1answer
410 views

How does Nginx reverse proxy cache work?

I don't understand how a reverse proxy with caching works. Let's assume that the cache is empty. User1 loads index.php (dynamic content). There's no cache, so Nginx queries the php file. The server ...
2
votes
0answers
249 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 ...
1
vote
1answer
929 views

I am getting a 400 Bad Request error when using Nginx and PHP-FPM, why?

I am trying to run a website (that requires PHP - it technically doesn't require MySQL at this time, but it may sometime in the near future as I continue developing it, so I went ahead and installed ...
2
votes
1answer
290 views

IPC overhead in a (nginx -> uwsgi -> wsgi application) architecture?

Recently I'm setting up some Python website and it seems the architecture nginx -> uwsgi -> wsgi application is an obvious choice in Python world these days. (Actually I'm migrating a MoinMoin ...
4
votes
2answers
756 views

What is the technology behind Hostname Based SSL (multiple ssl vhosts on single IP)?

Well known PaaS provider Heroku offers multiple solutions to SSL problem. One of those is a product called Hostname Based SSL This is not SNI. They claim it works on every browser in any ...
0
votes
1answer
180 views

Nginx ssl redirection of images

I am trying to set up nginx as reverse proxy for a tomcat server using SSL connection. I want the client's browser to load my tomcat application when nginx reverse proxy's IP is called from client's ...
15
votes
3answers
10k views

Ordering: 1. nginx 2. varnish 3. haproxy 4. webserver?

I've seen people recommend combining all of these in a flow, but they seem to have lots of overlapping features so I'd like to dig in to why you might want to pass through 3 different programs before ...
0
votes
1answer
229 views

Shared folder between two Web Servers

I'm running two webservers in a single host. One of them is a Tomcat running in a reverse proxy configuration. The front webserver is a nginx that proxies request to the Tomcat. So far, is working ...
1
vote
2answers
159 views

Do I need a VHost for both Nginx and Apache2?

I'm running a small VPS (512MB-Ubuntu 10.04) and I'm trying to get Nginx to sit at the front and serve all the images/static stuff and only send PHP request to Apache2 when needed. I was wondering do ...
9
votes
4answers
7k views

How to get nginx to redirect from www to non-www domain?

Let's say I want to redirect from www.example.com to example.com and I want to do this using nginx. I looked around and did not see any good documentation on this so I figured I would ask and answer ...