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

learn more… | top users | synonyms

0
votes
0answers
3 views

Can I install echo module (dynamic) without recompiling nginx?

Nginx has dynamic modules. So can I load module without reconfiguring/recompiling nginx?
0
votes
0answers
18 views

502 Bad Gateway when trying to write session with PHP and nginx on a debian vagrant box

I'm using a Vagrant box with Debian 8.5 with the following stuff packages. tmux curl wget nginx php7.0-fpm php7.0-cli php7.0-curl php7.0-gd php7.0-intl php7.0-mysql php7.0-memcached memcached php-...
0
votes
1answer
16 views

joomla blank page on new server

I copied joomla web folder to same directory from ubuntu 14.04 to ubuntu 16.04 server. All setting are unaltered. After making sure vhost fastcgi points to php7.0-fpm.sock instead of php5.-fpm.sock ...
2
votes
1answer
1k views

Can not optimize php5-fpm to work without errors

I have installed ngix + php5-fpm. I am happy with it but I can not optimize php5-fpm so that it works without errors. Each fixed error creates a different error. First I had the the default settings ...
1
vote
1answer
198 views

phpMyAdmin tries to install Apache

I'm playing up with installing new environments on my server, Nginx webserver in conjunction with HHVM. I installed both, then came to MariaDB and installed it as well. I can confirm server's working ...
1
vote
2answers
18 views

NGINX loads DOM but returns 502 for Images and Assets

I'm creating a custom 50x.html page, but can't seem to load the assets from my usr/share/nginx/html directory. I think the problem lies from my upstream settings for the reverse proxy for my ...
0
votes
2answers
29 views

Nginx unexpected end of file

I have nginx set up in a docker container (https://hub.docker.com/r/aptalca/nginx-letsencrypt/). Some changes were made (adding the last location block) and now nginx fails to start. Using the nginx ...
0
votes
2answers
25 views

Nginx redirects: enforce subdomain and SSL

There are a lot of questions on ServerFault that cover parts of this question, but I'm having a hard time piecing them together. I have a fresh nginx server with a Wildcard SSL cert installed. All ...
24
votes
4answers
35k views

how to restrict access to directory and subdirs

I need to restrict access to any files or subdirs in direstory "testdir". My conf: ... location ~* ^.+\.(jpg|txt)$ { root /var/www/site; } location /testdir { deny all; ...
2
votes
1answer
1k views

Nginx: wild card subdomain redirect URL to page with request

I am trying to convert: http://test.example.com/file.php To either http://www.example.com/file.php?subdomain=test or http://test.example.com/file.php?subdomain=test Depending on ...
0
votes
0answers
14 views

nginx display image404.php if image not found

Having to move a .httacess into nginx version: nginx/1.11.2, most of it with success but one rewrite is still troubling me. ##Return default placeholder image when image file on server not found ...
0
votes
0answers
9 views

Reverse proxy CouchDB web frontend (Futon) without exposing CouchDB API

Is it possible to just reverse proxy Futon, without exposing the CouchDB root and RESTful API? I have the following nginx config: server { # This should never be hit, as the port isn't open, # ...
0
votes
3answers
1k views

Make files without an extension go through the PHP parser on nginx

Due to legacy reasons I need to get the following scenario working on nginx and I seem to be struggling. Say I have a file in the document root just called 'info' without any file extension. Now this ...
-1
votes
1answer
14 views

Are web requests logged to both access and error logs?

I'm trying to count the number of requests my nginx reverse proxies served in the last 30 days. I'm doing this by counting all the lines in access logs plus the rotated access logs. I have logs for 30 ...
7
votes
3answers
5k views

nginx stop/reload on windows failed for Access is denied

I am running nginx on Windows Server 2008 R2 (x64) as a windows service. I am using Windows Service Wrapper for that. (Actually, I have followed this tutorial: http://mercurial.selenic.com/wiki/...
0
votes
1answer
29 views

Could it be an Nginx bug when using regex?

I'm cleaning up our configuration so I thought of using regex since I'll be able to remove tons of lines. I'm wondering why the new rule is not working properly or works differently. The rule below ...
1
vote
1answer
1k views

Why is Perl Cgiwrap Sock refusing connection to nginx?

Could anyone shed some light on the following line in my nginx error logs. I'm trying to get Perl and Nginx talking to each other, but so far no success. unix:/var/run/nginx/cgiwrap-dispatch.sock ...
0
votes
1answer
1k views

Configure Monit to monitor PHP5-FPM on Ubuntu/Nginx setup

System: LEMP running on Ubuntu 14.04 I'm trying to configure the tool Monit to restart Nginx or PHP-FPM if ever there is a problem. It is correctly monitoring Nginx however under status for PHP-FPM ...
0
votes
2answers
1k views

Dynamic throttling of bandwidth

I am planning on setting up streaming server. Streaming is done kind of like YT does it; there will be a large number of audio content and each user can listen to it right on the website. In order ...
1
vote
5answers
3k views

nginx: php-fastcgi running but php files not executing

I have recently set up a nginx server with PHP running as FastCGI process. The server is running with HTML files however PHP files are downloading instead of displaying and PHP code is not processed. ...
1
vote
3answers
474 views

Can not change nginx 1.2.5 default website

I just installed nginx version 1.2.5 on a new server and discovered that I can not change the default file for default website. In /etc/nginx/sites-available/default file I have the following lines: ...
0
votes
1answer
21 views

Nginx won't start — .sock file not found/no such directory

I'm trying to run my django application using uwsgi and nginx. It's been working for the past month, but today I edited file in the /sites-enabled/ dir and now nginx won't start. Here are the error ...
0
votes
1answer
1k views

Cannot Start Nginx Compiled from Source

I am trying to compile Nginx from source based on the original compiled Nginx server running on my DigitalOcean server ( Ubuntu-14.04 64x ) but with a few extra modules. I can get everything installed ...
0
votes
0answers
151 views

Running FastCGI applications with nginx

In an attempt to reduce RAM usage for a small internal application server, I am trying to migrate from Apache to nginx. The server needs to serve Munin graphs (and run the accompanying FastCGI Perl ...
1
vote
1answer
23 views

nginx. Deny two points anywhere in URL

I need configured nginx server, that him show 403-page if URL it contains two points (..) anywhere in URL. Example, if URL is "site.sit/index.php?log=../conf.php - web-server should detect an attempt ...
0
votes
2answers
36 views

Permission Denied to PHP Files on Centos 7 with nginx

I have problem WHAT I DID Install Centos 7.2 with nginx 1.10 -- create a nginx server block sudo mkdir -p /var/www/example.com/html -- set permission sudo chown -R nginx:nginx /var/www/example.com/...
0
votes
1answer
72 views
+50

Nginx as a proxy for Apache server running WordPress

I am facing a similar problem as this question where I am using Nginx as a proxy for Apache server (Ubuntu) running WordPress. The internal links of the website all give 301 redirects to localhost. ...
1
vote
1answer
1k 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 ...
0
votes
1answer
17 views

Nginx proxy_set_header Host for RPC management

We're experimenting with an RPC service (linkerd) that acts as a glue between our microservices – reading off their locations from a local Consul cluster etc. Now Linkerd expects to see the Host ...
0
votes
0answers
14 views

Conditional proxy_intercept_errors directive

Hi I have the following proxy config: location / { proxy_pass http://localhost:8080/; proxy_set_header Host $host; proxy_set_header X-Real-IP ...
0
votes
1answer
1k views

Moving Zend Framework 2 from apache to nginx

I would like to move site that uses Zend Framework 2 from Apache to Nginx. The problem is that site have 6 modules, and apache handles it by aliases defined in httpd-vhosts.conf, #httpd-vhosts.conf &...
1
vote
1answer
5k views

nginx rewrite rules for Joomla!

I've got nginx installed on Ubuntu from the repository (v0.7.65), and while with my default site configuration works wonders with WordPress pretty URLs and nginx-compatibility plugin (so far), it ...
1
vote
1answer
18 views

How to create subdomains using nginx and proxy_pass for each

I currently have nginx setup for my server at my.server.com. Using the current configuration I access different applications using http://my.server.com/app1 or http://my.server.com/app2. I have an ...
0
votes
4answers
117 views

Optimal value for Nginx worker_connections

Nginx worker_connections "sets the maximum number of simultaneous connections that can be opened by a worker process. This number includes all connections (e.g. connections with proxied servers, among ...
13
votes
3answers
8k views

Redirect all http requests behind Amazon ELB to https without using if

Currently I have an ELB serving both http://www.example.org and https://www.example.org. I would like to set it up so any request pointing to http://www.example.org is redirect to https://www.example....
0
votes
0answers
13 views

Nginx 502 timeout error while using Registration with Django

I am using Django-registration-redux as email app to send registration emails and I am getting error while configuring it with Zoho.com. Following is my code for Nginx datahunt: upstream ...
2
votes
1answer
33 views

Allow SSL connection on port 8081 with nginx

I have a problem to acces to the port 8081 in https. Here you will find my configuration in nginx: server { listen 443 ssl default_server; server_name _; ssl on; ssl_certificate /...
-1
votes
0answers
13 views

Convert apache rewrite to nginx, (if file exist in cache directory serve it from there) [on hold]

How to convert this rewrite rules to nginx: RewriteCond %{DOCUMENT_ROOT}/cached/%{HTTP_HOST}/index.html -f RewriteRule ^/*$ cached/%{HTTP_HOST}/index.html [L] RewriteCond %{DOCUMENT_ROOT}/cached-...
2
votes
1answer
2k views

Kibana 4, Logstash dashboard: how do I require Nginx authentication when saving but allow anonymous views?

I would like to require auth_basic nginx authentication to save all kibana 4 dashboards but allow anyone to view dashboards without authentication. I recently installed an ELK (Elasticsearch 1.4.5, ...
0
votes
0answers
21 views

Nginx clean url

I'm a beginner on Nginx and I'm having a hard time figuring out how to create clean URLs. Currently, I have URLs that looks like this: localhost/real-estate/search/residential/?t=private-homes ...
0
votes
0answers
14 views

Configuring Nginx to serve a UWSGI app from a location under a nodejs server block

I have a UWSGI Django API running which is configured like this in NGINX: upstream django_api { ...
1
vote
1answer
22 views

Filtering Berkeley Research Scanning Nginx logs with Logcheck

I'm getting Nginx log entries from http://researchscan1.eecs.berkeley.edu/ (and others), with lots of special characters in the requests, which I'm trying to filter out. E.g.: 2016/07/19 09:54:49 [...
3
votes
2answers
29 views

nginx serve static files and change route/path

I want to serve static file with nginx from a directory like /data/content/video/ from a url route thats totally different like www.url.com/reports/video-name.mp4 I have tried several rewriting rules ...
0
votes
3answers
2k views

Jenkins has no list of available plugins / can't update

I just installed Jenkins 1.575 on Ubuntu 12.04LTS. When I go to the plugins section to add plugins, nothing shows up. If I go to Advanced and click check now, it just hangs at Updating.... I am ...
0
votes
2answers
1k views

Chroot doesn't work in PHP5-FPM + nginx

I have added two line in: "/etc/php5/fpm/php-fpm.conf". There are: chroot = /home/user/www/public_html chdir = / In the server section of my: /etc/nginx/sites-available/default: root /home/user/...
0
votes
1answer
2k views

Nginx ignore query string for caching certain files

I know my setup is a bit crazy, but whatever.... I set up Nginx on Openshift to cache map tiles (for a map viewer, you can guess the purpose, :-) ) that are served from my home network, which has ...
55
votes
8answers
34k views

How can I use environment variables in Nginx.conf

[Cross-posted and edited down from http://stackoverflow.com/questions/21933955 as it was considered too sysadmin-like for StackOverflow.] I have a docker container running Nginx, that links to ...
0
votes
1answer
34 views

Masking a IP address using URL forwarding without frames and nginx [on hold]

I currently have a domain, thelavender.net. Under this domain, I have two sub-domains, wiki.thelavender.net and jira.thelavender.net. These domains are being hosted on an Ubuntu Server VM running ...
0
votes
0answers
19 views

Receiving a 403 forbidden error after it was working fine a few days ago? [on hold]

I'm currently using Namecheap to host my site. I developed a custom signup form and I am using Parse Cloud Code to make a POST call to Mailchimp for me. Everything was working fine until a few days ...
3
votes
1answer
1k views

nginx & php-fpm [debug] 11: Resource temporarily unavailable

New Development The core php error logs are below, but the site specific error logs show this. The memory on my php.ini file is : memory_size 1024; so it's not php's memory limit. I've also ...