Tagged Questions

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

1
vote
1answer
140 views

Redirect Loop SSL Nginx Cloudflare

I have Universal SSL with CloudFlare. I wanted to set up a permanent SSL redirect on my Ghost blog. This was my original config. It works great individually using http://example.com and ...
0
votes
1answer
33 views

How to debug nginx + php-fpm download failures?

Downloads fail after all data downloaded on nginx + php-fpm. I'm controlling downloads of zip files (roughly 100mb each) with a PHP script that streams the file directly to the client. I'm using ...
1
vote
1answer
43 views

Nginx not caching data

I have a REST API behind an nginx proxy. Proxying works fine, however I am unable to cache any responses. Any help would be much appreciated: Nginx config: worker_processes 10; error_log ...
0
votes
1answer
34 views

Nginx rewrite for a large group of URL's to a 444

I am looking for a rewrite that will pick up any number of defined URL's and do a return 444 on any of them. Rather than writing out each one individually, I was hoping for something where I could do ...
0
votes
1answer
84 views

How to make varnish 4.0 work with nginx and pagespeed

I am trying to setup Varnish 4 + Nginx with mod_pagespeed. I am using the following config for Varnish 4 as per this document : ...
0
votes
2answers
79 views

Are there any performace gains to using Varnish along php-fpm and nginx? [closed]

PHP-FPM 5.6 and Nginx 1.6.2 would no doubt give maximum performance, at-least speed wise. So, I would like to know if there are any pros/cons to adding varnish cache to gain probably few more speed. I ...
0
votes
2answers
82 views

nginx: Log complete request / response with all headers?

We have an application server that sometimes hangs. We suspect it is due to a bad request from a client. Can nginx log the complete request/response (like fiddler captures) to files, so we can see ...
0
votes
0answers
35 views

Setting up nginx in aws rhel 7 instance, seeing 403 forbidden

So I'm trying to set-up nginx on a RHEL 7 AWS micro instance, nothing fancy just mainly for testing. Installed nginx I believe correctly sudo yum install nginx.x86_64 sudo chkconfig nginx on sudo ...
-2
votes
1answer
49 views

Pid and Lock files are not created in Nginx custom build Centos 7

I am trying to install nginx from source. After make install, I had a look at /var/run/ folder but I cant find the nginx.pid file and nginx.lock files there. This is my configuration: sudo ...
0
votes
1answer
46 views

How do you get multiple ports working with nginx proxy_pass and Node Express?

I have multiple node instances running each on a different port. (8000, 8001, etc.) I also have nginx running on port 80. What I am trying to do is allow a user to enter my site via a single domain ...
0
votes
1answer
29 views

Nginx, reverse proxy to 2 different Joomla sites

I have 2 Joomla sites and would like them to both appear as one domain. Ideally, a request would come in and if the URL matches the first site it would go to the page. If the first site returns a ...
0
votes
0answers
41 views

Wordpress Nginx Php-FPM Varnish Setup Fix

Master Slave Database We are running a wordpress site on Nginx, Php-Fpm, Varnish, at the moment we cant access wp-admin wordpress backend or pages but posts are running fine. Also when there is ...
0
votes
0answers
43 views

configure php-fpm to work only in one directory and HHVM on the rest

I am trying to test HHVM and php-fpm on the same site, running both. But I want php-fpm to work only on one directory, but I think I am not getting it right location ~ \.(hh|php)$ { fastcgi_pass ...
1
vote
1answer
119 views

Errors when Compiling Nginx with Pagespeed on CentOS 7

I am trying to compile Nginx with Pagespeed from source and I am having a hard time trying to resolve the not found errors I am seeing when I add the configure settings. This is my configure settings: ...
0
votes
1answer
45 views

configuring nginx server blocks

On CentOS, I have been using the default webRoot (/usr/share/nginx/html) until now to run my simple scripts and small applications. The other day, I had to configure nginx server blocks to run ...
0
votes
1answer
74 views

NGINX: HTTP access not working from Chrome, only HTTPS

I 'm trying to publish IBM Connections NGINX allowing access using HTTP and HTTPS . By HTTPS is working but when i try to access by HTTP I get this error in Google Chrome only: This XML file does ...
0
votes
1answer
56 views

nginx giving priority to nested location over outer location block

Can someone shed some light on why this doesn't work the way one would expect it to? In the following nginx configuration, the assumption is that the first nginx will go with the regex-matching image ...
0
votes
1answer
53 views

Nginx: redirect http to https

I know the question has been asked countless times. Still cant get mine to work with the answers i've seen so far. I'm trying to force redirect http to https with nginx. When i visit ...
-1
votes
2answers
27 views

nginx rewrite rule for friendly url

I have problems with nginx to get the .php index files to to friendly urls. for example my apache setup thats working perfect: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ...
1
vote
1answer
59 views

How to upgrade ngx_pagespeed in production server?

I have a LEMP set-up in CentOS 7. I am planning to install the ngx_pagespeed module to it. When I was reading through the docs I came to realise that unlike Apache, I cannot install this module ...
0
votes
0answers
35 views

uwsgi cannot start or stop correctly

I have setup uwsgi and it seems to be working along with nginx, but when i (1) start the service it says it has failed to start, but it is running in the background, (2) when i attempt to stop it, it ...
0
votes
1answer
30 views

How can i set SCRIPT_NAME when using proxy_pass with nginx

I have a perl catalyst application that i'm mounting on a specific url (vs mounting on a subdomain) and am having problems setting SCRIPT_NAME on the request to the backend. This affects the urls ...
1
vote
0answers
35 views

Nginx client_body_in_file_only for file upload performance

In my app, I have nginx proxy to my app server (unicorn). I'm trying to improve my file upload performance. I've read that through various techniques you can prevent your app processes from being ...
0
votes
2answers
61 views

Node.js Express NGINX : static file paths break with name spaced proxy_pass

So I was accessing my server at domain.com:3333 but just switched it it to domain.com/nodeapp using upstream and proxy pass in my nginx config. The redirect works just fine, but now the links to ...
2
votes
2answers
110 views

Cipher String Syntax in nginx

In an nginx configuration file, you might configure a list of SSL ciphers like this ssl_ciphers HIGH:!aNULL:!eNULL:!LOW:!ADH:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS; What's the syntax of ...
0
votes
1answer
63 views

Varnish cache with NGINX files not updating WordPress

It seems that Varnish is missing or not validating cache properly. When I try and purge my cache, I get 200 OK Cache successfully cleared, but my page does not update. I am simply making HTML changes ...
1
vote
1answer
76 views

Manage nginx rewrites in project folder

I am trying to figure out on how to migrate from Apache to nginx, keeping rewrite rules flexible to change for developers. This is our current setup: We have a .htaccess file in the root folder of ...
0
votes
1answer
36 views

Bypass SSL on localhost when hitting nginx status

I have a location for /nginx_status, and I installed an SSL cert last night. server { listen 443; ... location /nginx_status { stub_status on; access_log off; ...
0
votes
0answers
24 views

Configuring /etc/hosts to run an application [migrated]

I am using nginx, until now I was running my php applications on /usr/share/nginx/html which is the default document root when nginx is installed on centOS and like systems. Now I had to create ...
0
votes
0answers
25 views

How to assign different permissions to folders through WebDAV by NGINX

I can't set up Nginx with WebDAV as I need to. The task is: There is a folder '/srv/root' with two subfolders - 'folder1' and 'folder2' and 3 users - 'admin', 'user1' and 'user2'. I want 'admin' to ...
0
votes
0answers
24 views

X2Engine doesn't install because it thinks session.save_path (unix:/tmp/memcached.sock) is not writable

I'm installing X2Engine and I get the following error on the install page: The path defined in session.save_path (unix:/tmp/memcached.sock) is not writable. # ll /tmp/memcached.sock srw-rw-rw- 1 ...
0
votes
0answers
52 views

php-fcgi periodically shutting down for Nginx, Centos 6.5 with Virtualmin

php-fcgi periodically shutting down 1-3 times a week. The server spec is: Server RAM: 512 MB CPU: 1 Core OS: Centos 6.5 Web Server: Nginx 1.0.10 PHP: 5.3.3 MySQL: 5.1.73 Control Panel: Virtualmin ...
0
votes
1answer
72 views

Http 1.1 protocol detected

I have a CentOS server and we had a Retina security scan. I have no idea how to fix this vulnerability. Can you point me in the right direction? We are running nginx.
0
votes
0answers
38 views

what does it mean to host C++ fastcgi application in nginx

I'm new to web services, and I am making a web proxy in c++ using the fastcgi protocol. I don't quite understand how to "host" web services in a web server, so if someone could lead me to an ...
0
votes
1answer
35 views

How to redirect www to non-www globally in nginx?

I know how to redirect to non-www for a single site within nginx, but I have a lot of sites. So how can I do that globally for all of them?
0
votes
1answer
49 views

Nginx HTTPS www to non-www redirect issue

I'm having some issues redirecting from HTTPS www to HTTPS non-www with my nginx config. I'm following the directions provided at (Remove "www" and redirect to "https" with ...
0
votes
1answer
50 views

Change root folder of domain in ISPConfig with NGINX

I have an ISPConfig server (Debian Wheezy) and I have 2 domains: www.abc.com and www.xyz.com. The first one (www.abc.com) works fine and the root folder is /var/www/abc.com/web/ (default ISPConfig ...
0
votes
1answer
126 views

Nodejs Nginx error: (13: Permission denied) while connecting to upstream [duplicate]

I'm trying to run multiple Nodejs applications on Nginx server running on CentOS 7. I noticed that when I run a Nodejs app on some ports I get an 502 Bad Gateway error in the browser so I checked the ...
1
vote
1answer
70 views

NGINX keeps redirecting www.example.com/some-path to example.com/ — How to stop?

I have no experience with NGINX, but about 12 years with Apache. No clue how I got stuck with this server running NGINX, but I'm trying to make the best of it. Anyway, no matter what I do, going to ...
0
votes
0answers
97 views

500 internal server error nginx

We designed our own website on: http://www.vieraphotographics.com Yesterday after working all year long with no problems, when we try to log into www.vieraphotographics.com/wp-admin We get 500 ...
0
votes
1answer
66 views

Nginx - proxy_pass - specific location not working

I am trying to masking a remote URL with Nginx using proxy_pass I'd like to load staging.saas.localhost/_ when the browser url is saas.localhost/uk_staging. For some reason the location in ...
-1
votes
1answer
39 views

Monitor bandwidth per directory [closed]

I have uploads directory and I would like to count the total downloads of files in that directory, in short, is it possible to monitor the consumed bandwidth per directory?
0
votes
2answers
42 views

nginx: set custom header in location directive

I'd like to set a custom "X-Cache-Status" header when the first file in try_files is found, but not when any of the others match. What's the best approach to do that? server { location / { ...
0
votes
2answers
52 views

Compile nginx with bundled shared libraries for Docker to make a tiny image

Docker images are mostly HUGE, and I'm dreaming of a tiny, really tiny image of nginx. The idea is to compile it and create a Docker image with only the nginx binary, config files, the required ...
0
votes
2answers
41 views

Nginx rewrite rules with php args

I have 2 websites, http://localhost/bb -- phpbb http://localhost/dp -- Drupal I wish to redirect $server_name/bb/ucp.php?mode=logout&sid=xxxxx to $server_name/dp/user/logout, the sid should be ...
0
votes
0answers
73 views

Docker PHP-FPM & NGINX

I'm having an issue with my containers communicating to each other. The linking of the containers is working but the php-fpm process isn't working. php container = 172.17.2.106 nginx container = ...
0
votes
1answer
39 views

Nginx Not Passing Rewrites To PHP-FPM

I have the following rewrite rules for nginx. The rules seem to not function correctly, for example the rule for games is supposed to rewrite http://thegamesdb.net/game/2/ to ...
0
votes
2answers
53 views

Redirect loop when forcing SSL with Nginx

I know this question has been asked and answered a million times, but none of the accepted answers are working for me. My site is unreachable due to some sort of infinite redirect loop when I force ...
0
votes
0answers
33 views

Kopf can not access elasticsearch

I have a setup with ElasticSearch, Logstash and Kibana working. With Kibana, I can access the data of the ElasticSearch from a remote host. I installed the latest kopf plugin with : ...
0
votes
1answer
23 views

Trouble getting Unicorn to talk to Nginx

I've seen all of the other questions on here but none of them seem to work for me. Whenever I try and access my site I'm getting a connection refused error through the nginx logs. I'm assuming there ...