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
votes
2answers
24 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 ...
0
votes
1answer
39 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
21 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 ...
-2
votes
1answer
48 views

Low Disk IO but slow downloads speeds [closed]

I'm having some issues with some servers. I run a download website similar to Rapidshare and I've noticed very slow downloads speeds lately. For instance, we have a 1gbps server but even thought disk ...
0
votes
1answer
26 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
votes
0answers
29 views

Nginx does not respond to systemctl command [closed]

I am on CentOS 7, just installed Nginx 1.6.0 from source. All went smoothly, until I decoded to start, stop Nginx using systemctl start nginx.service Which does not seem to effect. All I get is ...
-1
votes
0answers
14 views

Nginx client_body_in_file_only for file upload performance [duplicate]

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
45 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
98 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
50 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
75 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
30 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
18 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
19 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
41 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
70 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
33 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
33 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
44 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
37 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
2answers
82 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
63 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
74 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
57 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 ...
-3
votes
0answers
28 views

Configure squirrelmail / postfix for Nginx [closed]

I have follow this youtube video and triple checked the steps. https://www.youtube.com/watch?v=-0daTIbsi-M I run on Nginx with php-cgi Squirrelmail is installed in the default location but Nginx dont ...
-1
votes
1answer
36 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
39 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
43 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
38 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
33 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
30 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
35 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
22 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
20 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 ...
0
votes
2answers
46 views

Nginx : rewrite request for 'p.test-prd.com.local' to 'www.test.com'

For various reasons, we follow an internal DNS scheme where the internal test site for 'www.test.com' would be 'p.test-tst.com.local'. I won't go into the details why we ended up with the scheme we're ...
0
votes
0answers
40 views

call to .woff file that does not exist leads to 404

I am pulling my hair trying to find out why is this file being called on my wordpress code : http://www.example.com/wp-content/themes/room09/google-fonts/sk05J8GA1NvUxDnk43EgAQ.woff I am using ...
0
votes
1answer
44 views

Is it possible that Nginx blocks itself from requesting another URL on the same instance?

I have a setup that worked in Apache and now it is failing in Nginx with php-fpm: I have one PHP-script that is offering a service, you call the URL and get some data I have a second PHP-script that ...
0
votes
1answer
44 views

Is there a way to restart automatically the HHVM service if I get a '502 Bad Gateway Error'?

I've reported the error on stackoverflow - from time to time my Nginx/PageSpeed+HHVM+MariaDB+WordPress blog stops working. There is some problem with the HHVM service that I don't locate, and I'm ...
0
votes
1answer
314 views

Configure Nginx, Kibana, Elasticsearch

My setup Nginx + Kibana - same box different domain, sub-domain (nginx - example.com, kibana - kibana.example.com) Elasticsearch - 192.168.100.31 I have used the config defined below. Replaced ...
0
votes
0answers
174 views

OpenSSL: unable to get local issuer certificate

I'm trying to enable OCSP Stapling is Nginx. However when I test my SSL certificate, I'm running in to some issues. Any ideas how to fix the 'OCSP response: no response sent' and 'verify ...
0
votes
0answers
26 views

Serving static files with NGINX on Unicorn served app

I've just set up a Sinatra app running on Unicorn and served through a socket by NGINX. I'm trying to get NGINX to serve my static assets with this in my nginx config: * EDIT * (added full server ...
0
votes
2answers
115 views

Https url appended with port 80 using CloudFlare, Nginx, and Thin

I have a Nginx setup for my Thin server running a Ruby on Rails project. Nginx is currently the endpoint for my SSL. I recently had some issues with attacks on my webserver, so I decided to add ...
-2
votes
0answers
23 views

compile Nginx enabling Geo IP using nginx

trying to Compile Nginx enabling Geo IP but i couldn't server@rp-v3-mns:/$ ./configure --with-http_geoip_module -bash: ./configure: No such file or directory
2
votes
1answer
33 views

nginx choosing wrong default site [duplicate]

Firstly, I know i can specify default_server to force a default site, but I want to understand why nginx isn't simply picking the first defined server as documented. At the end of the http section in ...
2
votes
1answer
56 views

Nginx redirect from old domain to new with ssl

I am trying to change the domain name for my site from https://www.myolddomain.se/ to https://www.mynewdomain.se/ The problem is that for my old domain I forced SSL on all pages and therefore all ...
1
vote
3answers
72 views

Increasing nginx performance past 1k req/s

I am trying to scale an nginx installation to the best of it's ability. I am running one nginx instance with 6 worker_processes (6 cores) and 5 backend servers consisting af a uwsgi setup with 10 ...
0
votes
0answers
32 views

Failed to install Nginx from nginx.org, Debian apt preferences messed up?

I'm trying to install Nginx from the latest release on nginx.org However, the latest package is not picked up: $ apt-get install nginx Reading package lists... Done Building dependency tree ...
0
votes
0answers
47 views

Improve speed of WordPress backend on Ubuntu VPS

I have a WordPress site running on my VPS which is quite high-specced (3520MB RAM, 4 Cores). The server runs Nginx and php5-fpm. Although the site is responsive on the front end, the backend tends to ...
0
votes
1answer
24 views

Serving a static page using nginx - getting 404

I'm trying to set up a static page on my website using nginx. The folder has a index.html file along with some static files. The directory structure looks something like this olx --static --fonts ...