Top "Nginx" questions

Nginx ("engine x") is a web server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

Rewrite all requests to index.php with nginx

In my apache configuration I have the following simple rewrite rule which unless file exists will rewrite to index.php …

url-rewriting nginx
nginx server_name wildcard or catch-all

I have an instance of nginx running which serves several websites. The first is a status message on the server's …

nginx catch-all server-name
How to add a response header on nginx when using proxy_pass?

I want to add a custom header for the response received from the server behind nginx. While add_header works …

nginx http-headers proxypass
What's the difference of $host and $http_host in Nginx

In Nginx, what's the difference between variables $host and $http_host.

configuration nginx http-headers
jQuery Upload Progress and AJAX file upload

It seems like I have not clearly communicated my problem. I need to send a file (using AJAX) and I …

ajax jquery file-upload nginx
Use nginx to serve static files from subdirectories of a given directory

I have several sets of static .html files on my server, and I would like use nginx to serve them …

nginx static-files
Nginx fails to load css files

I've recently decided to switch from Apache2 to Nginx. I installed Nginx on my CentOS server and setup a basic …

css nginx mime
How to edit nginx.conf to increase file size upload

I want to increase the maximum file size that can be uploaded. After doing some research online, I found that …

nginx nginx-config
convert htaccess to nginx

I'm having no luck converting htaccess rules to nginx rewrite. I've checked out the NginxRewriteModule documentation and have a few …

.htaccess nginx rewrite
How to run Nginx within a Docker container without halting?

I have Nginx installed on a Docker container, and am trying to run it like this: docker run -i -t …

linux nginx docker