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

0
votes
0answers
40 views

Nginx secure port 443 is not opened/ connection refuse

I have installed nginx on my ubuntu VM. There I want Nginx to listen 443 port. My configurations are as follows. server { listen 443; server_name wso2test.com; ssl on; ...
0
votes
0answers
29 views

Mount all Nginx virtual hosts at subpathes of the default host

I have a Nginx setup with several virtual hosts (defined by server blocks for every linux home directory). To allow a preview for domains that currently do not have a DNS entry pointing to my host, ...
0
votes
1answer
70 views

NGINX Permissions: 'sudo nginx' vs 'sudo service nginx start'

I'm doing a capistrano Setup here with nginx 1.6.2 and Unicorn. But Under my current setup nginx doesn't create the server i have written in con file. Im sure its a permission error for my user's ...
0
votes
0answers
51 views

How to apply nginx secure link by file extension

We have defined a location with secure link enabled. It's working well if we try to play an mp4 file, but what we need is that the policy of the secure link only applies to files with m3u8 extension. ...
1
vote
1answer
24 views

Nginx domain matching for TLD wild card

I'd like to catch dev.*.sometld in NginX. But NginX doesn't accept: server_name dev.*.sometld; And I don't want to do: server_name dev.*; How can I match exactly "dev.*.sometld"? Thanks!
7
votes
2answers
2k views

Strange Bittorrent Log On My Server

I don't know if the following log has something to do with my site being down sometime. I have lot of websites on my server and they don't have any logs like the following: 117.169.1.85 - - ...
0
votes
1answer
50 views

GET 6C6CCDBA-AFF1-E54F-A6A6-0D7A76E35801 in NGINX log [closed]

Fitrst I got notification from Nagios that NGINX down. When I checked server - there was lot full swap and memory. I found odd entries in log: 65.49.14.146 - - [04/Jan/2015:16:06:11 +0200] "GET ...
0
votes
1answer
43 views

Wordpress mu 404 with LEMP stack + Ispconfig3

I have a Centos dedicated server with Nginx, PHP-FPM and ISPConfig3 as control panel I installed Wordpress in a sub-domain and enabled Wordpress mu : ex.domain.com I added the following rules in ...
1
vote
0answers
59 views

Nginx always gives “502 Bad Gateway”

I am using axis2 web server. I want to access it through Nginx. Here is my nginx configs server { listen 443; server_name malintha.com; ssl on; ssl_certificate ...
0
votes
1answer
60 views

Rewriting ASCII-percent-encoded locations to their UTF-8 encoded equivalent

For example, “å” can be encoded as /%E5 and /%C3%A5 (utf-8). All my filenames are UTF-8, so the ASCII variants return a 404. I want both variants to work. I have tried rewriting the incorrect URLs to ...
1
vote
0answers
136 views

Unable to apt-get install nginx-extras package on top of nginx 1.7.9

I am attempting to install Phusion Passenger for nginx on a dev Ubuntu box following this guide from the passenger website. I have Nginx installed and running already, version is 1.7.9-1~trusty. I ...
0
votes
1answer
20 views

Nginx location: CGI and Nagios

Nginx should redirect any CGI requests to "/usr/share/nagios/sbin" under the following conditions: location ~ \.cgi$ { AND location /nagios { Each condition works fine on its own. ...
2
votes
1answer
90 views

SELinux: no audit errors but nginx permission errors

I try to isolate a SELinux problem with nging/munin. I see that error message in "/var/log/nging/error.log": [crit] 8802#0: *55 connect() to unix:/var/run/munin/fcgi-html.sock failed (13: ...
2
votes
1answer
56 views

Why does passenger-install-nginx-module neither install Nginx nor implement Passenger support on Centos7 while the output indicates the contrary?

Introduction At the moment there are approximately 100 Puppet agents that connect to the Puppetmaster. Sometimes it takes a while before implemented changes on the Puppetmaster are picked up by the ...
1
vote
1answer
53 views

Nginx and Tomcat Reverse Proxy not Working

I had trouble configuring Nginx and Tomcat Server on Cent OS. Here's the nginx.conf: server { listen 80; server_name subdomain.test.com; root ...
1
vote
0answers
54 views

Nginx, proxy_pass and vm backends

My intention is to have several webapps run on different VMs, all put through a nginx proxy. The main Problem is, that the URL gets changed, e.g. http://example.com/app1/ Gets to the webapp (but CSS ...
-1
votes
1answer
45 views

nginx static file cache using wrong path [closed]

In the .conf of a website I'm trying to get the static file caching to work. Currently have the configuration for caching this: location ~ \.(?:jpg|jpeg|png|gif|ico|ttf|woff|map)$ { expires 3d; ...
1
vote
2answers
60 views

Nginx SSL certificate served for all server name resolving the server IP

Given I have 2 subdomains configured in the DNS (so pinging both reply for both with the IP address of my server) and for those subdomains I have 2 different TLS certificates. I have configured nginx ...
0
votes
0answers
31 views

install sharelatex with R / knitr support in docker

I'm trying to use sharelatex on my own server. Therefore I downloaded available docker images: https://github.com/tiagoboldt/sharelatex-docker https://github.com/cfriedline/docker-sharelatex Both ...
1
vote
1answer
51 views

Unicorn workers timing out intermittently

I'm getting intermittent timeouts from unicorn workers for seemingly no reason, and I'd like some help to debug the actual problem. It's worse because it works about 10 - 20 requests then 1 will ...
1
vote
0answers
98 views

gitlab slow when running on nginx subdomain

I'm trying to run gitlab on a subdomain. I installed the latest gitlab version using the omnibus installer on my vserver (running Ubuntu 14.04.1) and disabled the bundled nginx and configured the ...
0
votes
1answer
73 views

Should Varnish Hits Touch PHP?

I have a reasonably large Drupal site sitting being Varnish on a box with 4GB of memory. I had thought (hoped? assumed?) that standing Varnish up in front of Nginx/PHP-FPM would take the load off of ...
2
votes
2answers
119 views

nginx - [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)

this made me crazy! I want to use nginx on port 81 and apache on 80. apache works correctly but when I want to start nginx I get this error: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address ...
0
votes
0answers
54 views

Magento with nginx try_files not work

I have a server running Magento E-commerce application and it is running using Nginx. Recently I installed a Wordpress blog under document root like this: http://example.com/blog When I/m dealing with ...
0
votes
0answers
59 views

Can't get working Nginx secure link with rtmp

I'm trying to get Nginx secure link works with rtmp but I don't know what I'm doing wrong. Any help is appreciated. My Nginx conf: location /on_play { # set connection secure link ...
2
votes
1answer
76 views

wordpress nginx ssl redirect loop

So I'm setting up an nginx server and installed wordpress and SSL. The site is working perfectly on both http and https but when I try to redirect http to https via nginx's server block, both http ...
2
votes
0answers
35 views

400 bad request from a proxy cache

So we have an nginx proxy cache that is used to maintain uptime even if npm goes down. On occasion this server (noticeably once every few months) starts returning 400 bad request for every response ...
1
vote
1answer
52 views

Is it possible to let nginx serve static files from a zip archive?

I am looking for a solution to distribute a webapp as a single deployable. Analogous to the way you deploy java webapps in an app container - a war file (which is actually a zip file). So instead of ...
0
votes
1answer
80 views

Nginx reverse proxy without SSL termination

I'm trying to set up Microsoft Remote Desktop Web Services on a Windows 2k12 server. This is fully functional, however I would like (need to) put a reverse proxy (Nginx) in front of it. I only have ...
0
votes
0answers
30 views

nginx 3rd party healthcheck module: still useful, works w 1.6 and 1.7?

The 3rd party module for healthchecks: https://github.com/cep21/healthcheck_nginx_upstreams has not been updated for 5 years. Is it still the right tool to use for health checks? Works w 1.6 and 1.7 ...
0
votes
0answers
37 views

Nginx routing not working in sub directory

i'm having trouble with routing Klein PHP urls using Nginx. Here is the current file setup i'm using. api -- index.php Klein -- index.php And here is the configuration i'm using. server { ...
0
votes
0answers
36 views

nginx: act as an in line reverse proxy (listen on one nic, servers on other nic…)

I have used nginx with great success with the nginx host using a single nic. The question here is: How to handle with the nginx host will have two nics, one on the 'public' network (visible through ...
-2
votes
1answer
56 views

Is it possible to make Nginx listen to different ports?

I created one Nginx with one Linux Azure VM, is it possible to make nginx listen to different ports so that when I change the port number, the content would be different. I found there would be a ...
0
votes
3answers
32 views

Nginx Site File Location

I'm attempting to deploy a new (first-time) Nginx server on Ubuntu. I am following DigitalOcean's tutorial, found here. As the tutorial suggests, I am place each site on the host inside ...
0
votes
1answer
31 views

Nginx cannot show the right web page

I created one html file under one user file, and I want Nginx to serve this html file. But the website always show the default one. I am new to Nginx, I want someone help me with this. Any ...
0
votes
2answers
115 views

Nginx: [emerg] “server” directive is not allowed here in /etc/nginx/nginx.conf:76

The Nginx configuration is just like the default: I couldn't find any clue about this error. Can anyone help me? Any help would be grateful. Thank You.
2
votes
0answers
51 views

nginx with php and two node.js routes

I have two routes i want to pass two node processes(websocket route, angular app), while a 3rd route needs to pass to a php application that acts as a rest api to the angular app. i'm not terribly ...
0
votes
0answers
48 views

Suspicious web activitin in nginx logs

I'm seeing some strange entries in my NGINX logs: 2.71.139.98 - - [26/Dec/2014:12:36:24 +0000] ...
-2
votes
1answer
35 views

nginx subdomain with fastcgi [closed]

I want to use seafile with nginx. For testing I install it into a VM and accessing it via IP-Address. I take this description seafile with https to make it running. it works, when in the nginx.conf ...
1
vote
1answer
99 views

My nginx main file within /usr/share/nginx/main on aws is 5.2GB in size

I am deleting all cache files and unused files since my AWS instance reaches 100% capacity nowadays. My setup is Nginx serving though php5-fpm with opcode cache. I have enabled access_log main in the ...
1
vote
3answers
126 views

How to suspend Nginx requests during backend upgrades

I'd like to have Nginx suspend (hold) http requests for short periods of time, while I upgrade or restart the backend service, do a database migration, or some other administrative task, without ...
2
votes
1answer
65 views

nginx domains using SSL cert listening but inaccessible

I have multiple domains and multiple domains using SSL certs running under nginx. All domains are basically using the exact same config, substituting for names of course, except for the HTTPS-enabled ...
1
vote
1answer
48 views

Nginx rewrite part of URL

i'm trying to make a redirects from URL's with option ID to URL's with option URL_key i've assigned. I have two column table with ID i'd like to substitute and URL_key as substitute. 11337 bar ...
0
votes
3answers
47 views

aws ec2 security group and centos ip tables

I try to change the SSH port from 22 to another port (218). In AWS EC2, I shall add the rules in security group or in IP Tables? Is there any guideline/references recommended for EC2 Security ...
0
votes
0answers
100 views

using nodejs https module with ssl certificate proxy with nginx without adding ssl certificate in nginx

I am using nodejs https module with nginx proxy. I have multiple ssl certificate and I want to run all https sites using node without adding all certificates in nginx ssl server. Is any way to proxy ...
0
votes
1answer
198 views

Vagrant, nginx 404 - fastcgi sent in stderr unable to open primary script

Was googleing a lot of and didn't find solution for this. Have found few accepted answers here on stackoverflow, but they didn't helped me. I am using vagrant for development, or at least trying to ...
2
votes
0answers
101 views

Multiple Domains Name on one server with Nginx

I'm struggling to configure two different domains name on my dedicated server... I've already one DN configured like this in the vhost DOMAIN_1.net.conf : server { listen 127.0.0.1:8080; ...
2
votes
0answers
28 views

Do we get a access.log entry for content served from cache in nginx

For a configuration that looks like http { proxy_cache_path /etc/nginx/cache keys_zone=one:10m; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; server { ...
1
vote
0answers
25 views

why basic auth loops when using nginx and monit

I was trying to configure nginx so that http://example.com/monit will access http://127.0.0.1:2812, which is the url monit is listening. Two authentication was set, via nginx(nginx.conf file) and ...
1
vote
0answers
49 views

Rewrite a url to a a new URL and then send the new URL to a PHP script

I have URLs that contain a cache busting string. I want to rewrite these URLs without the cache busting string, and then send the rewritten URLs that match a certain criteria (e.g. audio/video files) ...