nginx (pronounced "engine-x") is a lightweight, high-performance Web server and reverse proxy as well as IMAP/POP3 proxy server.

learn more… | top users | synonyms

2
votes
0answers
8 views

How to let Corosync / pcs control nginx?

Folks, I'm trying to replace a single aging load balancer with multiple virtual machines running nginx. However after I got centos 7 and nginx installed I realized that heartbeat has been ...
-1
votes
0answers
7 views

Setting up a CA-signed certificate with Nginx

I need to use Nginx as a SSL-enabled reverse proxy. I have an existing JKS file from our Tomcat servers. It contains the certificate authorities used by our servers and by our client certificates. I ...
0
votes
0answers
33 views

NGINX: add_before_body with .php

worker_processes 8; events { worker_connections 1024; } http { gzip off; root htdocs; add_before_body subsites/dropletlocal/library/global/func-global.class.php; #DOESN'T ...
-3
votes
0answers
20 views

nginx not starting after password reset. 502 gateway

I reset my digitalocean droplet password just now. Now I tried "service nginx status" and it says its not running. The error in the logs was: [emerg] 3956#0: duplicate upstream "app_server" in ...
1
vote
2answers
28 views

Nginx: possible to use SSL certificates from different authorities on one IP address?

I'd like to know if it's possible to have two Nginx virtual hosts sitting on the same v4 IP address. I know there exist SNI but I have two basic (no SAN, no wildcard) SSL certificates from two ...
-2
votes
1answer
27 views

nginx SSL not working (404 error)

On a CentOS 6.6 box I have nginx set to serve two virtual hosts. One for SSL and one for basic HTTP. /etc/nginx/default.conf: server { listen 80 default_server; server_name _; #charset ...
0
votes
1answer
21 views

How can I make Nginx cache 403 pages?

We are using a Java application, Amazon ELB and NGINX. When our Java platform gets an incorrect request it or receives anything that resembles a DDOS, it will throw a 403 error. The developers want ...
0
votes
1answer
12 views

Nginx - How do I manage requests for different ports?

I'm new to server administration so forgive me if this question is dumb. I'm configuring an nginx server that was installed by ServerPilot. In the default configuration file for my app, it sends all ...
0
votes
1answer
16 views

Varnish, some url's redirecting to :8080 in phpbb?

I'm using a LEMP server with Varnish so nginx is on :8080 and varnish is cached on :80. The mail site works brilliant, no redirects etc but in a sub folder I have a phpBB forum installed, some of the ...
0
votes
0answers
19 views

Multiple Server_name

I have an internal php application that kept freezing on users basically every afternoon. I used to restart the application(docker) and that would relieve the issue for a day but not resolve it for ...
0
votes
0answers
14 views

Can NGINX instructed to serve a file over HTTP that is in the process of being created?

I am using NGINX as a component in my system that accepts content streamed from clients (lets say, over RTMP) and passes it to some internal service for processing. The internal service fetches the ...
0
votes
1answer
17 views

Nginx rewrite *.domain.tld/page to domain.tld/page

I can not set up a redirect from *.domain.tld/personal to domain.tld/personal server { server_name domain.tld www.domain.tld *.domain.tld; listen 100.10.10.1; set $root_path ...
0
votes
0answers
9 views

How to work whit socket_file httpd (nginx-uwsgi)

I am trying to run Nginx/uWSGI/Django, the last remaining step is to run the socket_file all I get is a 502 Bad Gateway. Route my django application. #/home/deploy/webapps/myapp Configuration ...
0
votes
1answer
31 views

Enable caching on nginx

I have my own VPS with CentOS 6 and nginx and I want to enable caching. To test it, if it is enabled successfully I use the Google PageSpeed Insight. My problem is that I don't have much experience ...
0
votes
1answer
16 views

403 Nginx issue, serving files from /home/user/localhost

I'm trying to serve files from a directory called localhost under my home. In my server block I specified root /home/user/localhost If I change nginx user from http to my username it works but I ...
0
votes
1answer
26 views

High %sys utilization in Nginx cache node

We set up Nginx with Lua (openresty bundle) to be a local caching node to our file sharing server, we seperated files to chunks "50MB each" (by this method) and store them in cache to increase its ...
0
votes
0answers
11 views

PageSpeed Unicode characters file name

PageSpeed unable to interpret Unicode characters on file names. My problem is that some of the image files names have Unicode characters and Nginx is able to access them. This link is accessible ...
0
votes
0answers
32 views

How to use ssl everywhere except an endpoint

I have a Web site where I want all requests to be done with HTTPS except for requests to urls with paths that start with /out/. nginx is configured as proxy to serve gunicorn/django content from ...
0
votes
1answer
13 views

/etc/nginx/client_body_temp/0000000001" has written only

I have bare repository under NGINX + spawn-fcgi. Now I'm trying add local directory to remote Git: $ git init $ git add * $ git commit -m "Initial commit" $ git remote add zeus ...
1
vote
1answer
15 views

nginx in front of apache doesn't load images

i configured a nginx will run on 80, and Apache 8081 here is my virtualhost config: server { listen 123.123.123.123:80; server_name edm1.mydomain.com mydomain.com; access_log ...
-2
votes
0answers
10 views

Can't get xfilesharing with Nginx to work [on hold]

Its been a week , i'm trying to get Xfilesharing script upload progress bar to works but i didn't succeed can you explain to me how to make it works with nginx upload progress model or can you tell me ...
0
votes
0answers
5 views

Custom error_page: Nginx gives 404, PHP sees 200 [migrated]

I'm trying to set up a custom error page. Any error code (400–599) should be routed through this page to display the error and the appropriate status code. Here's my server configuration: server { ...
0
votes
0answers
21 views

Nginx conflicting demands for host header

I'm trying to expose one part of my web server via one address, and another part via another. I feel like my use case should be simple, but nginx is giving me a lot of troubles. What I currently have ...
0
votes
0answers
29 views

Nginx: accept either basic auth or specific access token header

Is there a way with Nginx to restrict access to a location to either requests with valid basic authentication, or requests that feature a given header. Something like location /api { ...
0
votes
0answers
34 views

Wordpress and PHP-FPM slow

I cannot find answer elsewhere. I have plain vanilla Wordpress installation. No posts. Database completely empty. Server 1 is nginx + php-fpm Server 2 is mysql nginx & php-fpm set-up according ...
0
votes
0answers
10 views

backbone.js application for Jenkins

I have a task to setup the backbone.js application. I'm looking for a solution on how to setup the application for our running Jenkins: https://github.com/worldofchris/jenkins-radiator/tree/waf-mods ...
0
votes
2answers
8 views

NGINX with “serverpool” as the LB for DIFFERENT DOMAINS on same Apache Servers?

I have nginx as a LB. And the 2 Apaches as the web servers. Lets say i got different domains: www.example.com checkout.example.com Both domains will be in same 2 Apache Servers. But ofcoz under ...
0
votes
0answers
12 views

Is there an Apache2.4 module analog for nginx ngx_http_image_filter_module?

Can someone point me on how to implement image processing under apache2.4 in the same way as it's done with nginx? Currently we using nginx module named "ngx_http_image_filter_module" which allows us ...
0
votes
0answers
17 views

Nginx reverse proxy from subdomains to ports

This is my entire nginx.conf file worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile ...
0
votes
0answers
10 views

How to package nginx with custom modules for ubuntu server?

I need nginx with a few modules that are not included with the packages available via apt-get. I have no problem downloading the source from apt, changing the build params and compiling a .deb file ...
0
votes
0answers
6 views

Add persistent route in asus router [migrated]

I'm using Asus RT-N66U router as HTTP load balancer and reverse HTTP proxy. To do it I installed Download Tools from stock firmware and nginx server. I moved router's web interface out of 80 port and ...
0
votes
1answer
14 views

Nginx ignores expires headers for sub-directories

I've compiled and installed nginx on my server (Fedora 21 x64). I've added expires and some extra headers for static contents. But the thing is I nginx doesn't add expires and extra headers for root ...
-1
votes
0answers
13 views

phpmyadmin on nginx+apache not displaying png [on hold]

i have a running setup of apache(backend) + nginx(frontend) got 3 CMS running properly, but the site with phpmyadmin does not display pngs 404 Not Found here is nginx virtual host server { ...
-4
votes
0answers
13 views

Apache htaccess to nginx rewrite rules [on hold]

I need help converting Apache .htaccess rules to Nginx RewriteBase /dir/ RewriteCond $1 !^(system|application|robots\\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d ...
0
votes
1answer
40 views

How to setup Gitlab-omnibus with non-bundled web-server?

Install I installed the gitlab package through the omnibus package on debian 7 (version7.8.1-omnibus-1_amd64.deb) ; change the settings as describe in Using a non-bundled web-server run the ...
-1
votes
0answers
32 views

NGINX on CentOS troubleshoot - 'ERR_CONNECTION_REFUSED'

I'm configuring an Nginx server and have hit a wall. Some help would be great. It's an EC2 instance running CentOS 6, everything was fine until the server was rebooted, now I get ...
0
votes
0answers
32 views

Nginx and Magento, some rewrites/redirects not working [on hold]

I migrated a Magento site that was running on apache https to nginx today, and it almost worked perfectly. The site in question is http://20products.com/ (you may need to flush your dns cache). The ...
0
votes
2answers
19 views

No VirtualHost filter (a good practice?)

I am trying to figure out the cons of a current setup and discovered a potential anomaly. There's a webpage hosted at (say) webpage.com. If I point my domain (say) mydomain.com to the raw IP of ...
0
votes
0answers
34 views

Nginx proxy pass url from get argument

Let's say I have server example.com with nginx. I want to make a proxy which will proxy pass URL given as part of request URI or GET parameter (it may contain query string). So e.g. I want nginx to ...
1
vote
1answer
31 views

How to Disable TLSv1.0 and TLSv1.1 in Nginx

I'm trying to figure out how to disable TLSv1 and 1.1 Nginx and ONLY allow connections on 1.2. This is for testing reasons more than in production use and for the life of me cannot figure out why ...
0
votes
1answer
24 views

How to uninstall default nginx on openBSD

I want to install a custom compiled nginx on OpenBSD, but I'm having problems running it because nginx is already installed in the default OpenBSD (5.6) install. In some way it is like I managed to ...
-1
votes
0answers
24 views

nginx $request_uri: no match against file with query string

I'm trying to set a specific variable in nginx if $request_uri contains something like file.php?foo=bar Here's my code: if ($request_uri ~* "/(file1.php|file2.php?do=check|some/path/)") { set ...
0
votes
1answer
15 views

Nginx location redirecting improperly

My nginx.conf: http { include mime.types; default_type application/octet-stream; # click tracking! access_log /var/log/nginx/nginx.access.log combined; sendfile on; tcp_nopush on; # ...
1
vote
1answer
57 views

Nginx and different versions of PHP FPM + PHP

Due to a better understanding of what I wish to achieve thanks to Mark and his previous answer, I am posting a (hopefully) clearer and slightly different variation of my previous question as that ...
2
votes
0answers
69 views

reverse proxy issues with nginx over apache2.4 hosting joomla: url rewrite does not work any more

I am setting up a joomla 3.x site with apache 2.4 on an ubuntu 14.04 server on aws ec2. That alone is fine with url rewrite working fine. I have cleared all apache issues before freeing the port 80 ...
0
votes
0answers
16 views

Can nginx generate an index of the other locations of the server? [on hold]

I have an nginx configuration, with several locations like so: server { listen 443 ssl; server name my.server.com; location /first/ { # config 1 } location /second/ { # config 2 ...
0
votes
0answers
17 views

From apache to nginx - problems with cookies

So I just switched from apache to nginx. Now I am trying to run an php application I wrote on the new server. The application will run from a subdirectory called rss. There is only one index.php which ...
-2
votes
0answers
13 views

Nginx: How to remove a custom domain

I have a nginx setup files of many domains in /etc/nginx/sites-available/. Each file points to different domain, and each has a symlink to /etc/nginx/sites-enabled/. Now, I have an old site which I ...
0
votes
0answers
19 views

nginx match language subdomains without server_name regex

I have the following two nginx configs server { server_name .domain.tld } server { server_name subdomain.* } Is there a way to match language subdomains (e.g. en.domain.tld, ru.domain.tld ...
-1
votes
1answer
24 views

SELINUX blocking php-fpm and nginx working together?

I'm having some issues with SELINUX. When trying to visit my website I get 403 forbidden from nginx and the server pops up with an error and says to use grep NGINX /var/log/audit/audit.log | ...