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

Websocket proxy with nginx: Error about POST request in server log, but works in browser

The situation I am running Etherpad, which is proxied via nginx. Etherpad uses Websockets with Socket.io. My nginx config is more or less this one. The location block for socket.io is this: rewrite ...
0
votes
0answers
5 views

Nginx reverse proxy in docker container - wrong IP logged

I am running Nginx in a Docker container as a reverse proxy using the configuration below. It basically redirects the request to another docker container running on the same machine Problem The ...
-1
votes
0answers
8 views

How does my browser know to refresh when I start nginx? [migrated]

This just happened: Pointed Chrome to my domain where no server is running, but the DNS points to my linode's IP I started a nginx server on my linode To my astonishment, the Chrome window ...
0
votes
1answer
10 views

Nginx - subdomains to Apache, index to WP

I am trying to deploy our new Wordpress (with Apache2 in Docker) one-pager over our existing setup. Right below the LB we have an Nginx server that terminates SSL and proxies plain HTTP requests to ...
0
votes
0answers
6 views

Pass host from nginx to rsyslog

I have a cluster of nginx web servers and a separate syslog server running rsyslog. The nginx vhost looks like this: access_log syslog:server=10.0.0.51,facility=local1,severity=info combined; ...
0
votes
1answer
26 views

how set separate log file, to log 400 bad request errors in nginx

I have a nginx to host a django application. I need to log 400 Bad Request errors from my web page to a separate log file in nginx configuration. The docs I found was to give separate response in ...
1
vote
1answer
39 views

Configuring nginx reverse proxy to send TCP keep alive packets to server

We have IIS servers in Azure behind load balancer. Load balancer has unconfigurable timeout of 4 minutes after which inactive connection is killed. We're trying to setup nginx as a reverse proxy to ...
0
votes
0answers
9 views

High cpu usage by 'root' in Ubuntu VPS server [duplicate]

My server was working fine until last week. But I don't know how someone have changed by ssh root password. After that when I checked the CPU usage, it always 160-190% on executing 'top' command. Some ...
0
votes
0answers
11 views

How To Log TLS Mutual Authentication Details?

Is there a way to log the low-level details of the TLS mutual authentication flow (most importantly - the challenge that is sent to the client and the signed response). Solution for any tool is ...
-1
votes
0answers
18 views

convert nginx.conf to .htaccess

I came across a project on github that uses nginx as webserver but I'd like to use it with apache. I've tried an automatic online converter but it simply didn't work and I've no idea how to convert ...
-2
votes
1answer
17 views

Nginx config not redirecting

I have my nginx config and I am trying to redirect from a non www. version of the site to the www. version. server { listen 80; server_name *.example.com example.com; rewrite ^ ...
0
votes
1answer
12 views

Nginx Redirecting from file list

I would like nginx to perform redirects (302) on certain urls while changing part of the url to another based on a file (lets say a csv). For example: https://localhost/foo/100/bar.html to redirect ...
0
votes
0answers
26 views

Haproxy Nginx : How not to forward the local port?

I have haproxy which listening on ports 80 and 443 and behind Nginx listening locally on ports 8000, 8001, 8002 etc... By default, all works fine but when an application web made a redirect 301, it ...
0
votes
0answers
29 views

Can NGINX inspect the TLS request to look for SNI like HAProxy (etc) does?

It seems that, when configuring HAProxy for hostname routing on HTTPS connections, it is crucial to include a tcp-request inspect-delay directive to "give HAProxy a chance to look into the ...
1
vote
1answer
38 views

Nginx & PHP in a subdirectory

I have an app behind nginx. But i need a specific path in this app redirect to a Wordpress Blog Example : example.com/ -------> Redirect to my app example.com/whatever/ -------> Redirect to ...
-1
votes
0answers
14 views

How do I redirect a subdomain back to the root domain in nginx?

I have http://live.example.com and simply want all requests to that subdomain to 301 to http://www.example.com. What is the ngnix configuration needed for that?
0
votes
1answer
65 views

nginx: FastCGI sent in stderr: “Primary script unknown”

Using the latest version of nginx (1.10.0) and php-fpm (PHP 7.0.6) on 64-bit arch linux. When attempting to request index.php for a DokuWiki installation, I get the following error: 2016/05/21 ...
1
vote
1answer
18 views

NGINX password protection for everything, but a single endpoint

I have two EC2 instances on AWS. I'm using NGINX 1.6 for both. The two instances are connected to an AWS load balancer. In order for the instances to be considered "up and running" the load balanced ...
0
votes
1answer
8 views

Django uwsgi deploy. Unable to find 'application'

Has a problem when starting uwsgi: unable to find "application" callable in file dashboard/wsgi.py unable to load app 0 (mountpoint='') (callable not found or import error) uwsgi.ini: [uwsgi] ...
0
votes
1answer
17 views

ssl curl not working

I set up my site I have ssl setup and working, works fine in chrome, works fine for postman. For whatever reason it does not work when twilio or curl trys to access it. It gives me a unable to get ...
2
votes
1answer
52 views

Does NGINX support SNI or does it not?

EDIT New question: Can NGINX inspect the TLS request to look for SNI like HAProxy (etc) does? According to what I've read around (and I've been told), NGINX should not support SNI and I should go for ...
0
votes
0answers
21 views

Nginx subdomain redirection

I have a site that is subdomain intensive. Each client has their own subdomain and "unknown" subdomains display a landing page asking the user to associate themselves with a client. Basically, ...
0
votes
0answers
27 views

Can we not enable ngix to act as reverse proxy and webserver, based on url?

This is my config file server { listen 80; server_name localhost; root /var/www/example/public/; location / { try_files $uri $uri/ $uri.html =404; } location /api { ...
-1
votes
1answer
39 views

Write shell script that listens to a port and executes an action

Could anyone give me directions as for how to write a shell script that constantly listens to a port and when someone/something sends an HTTP request to that port, it executes an action as sudo? I ...
0
votes
1answer
43 views

what is causing wordpress file empty error on uploads?

I can't seem to figure out why I get the following when I try to upload anything in wordpress... for both media uploads and wordpress import xml: "Sorry, there has been an error. File is empty. ...
0
votes
1answer
23 views

Running a python script on Nginx

This question might sound a bit odd to the people hanging out here, but i am just trying to start learning server side programming Is it possible to run a python script directly in a Nginx server ...
-1
votes
2answers
22 views

php to limit included file to access below and upon directory tree

I am trying to find solution for this problem for days. I have structure like this. index.php /app /plugins/ /users/%site%/functions.php /other stuff all requests goes to ...
0
votes
0answers
44 views

Rundom Facebook og: tags not found - operation timeout

I have a vps (Centos 7.2 64bit/CPanel/5GB Dedi Ram & 2GB Boost/CPU i7 2900-3.4ghz(4 Cores)/200GB Disk) with apache 2.4 and nginx 1.10.0, and I have set up wp multisite(subdomains) 4.5.2 with WP ...
0
votes
1answer
13 views

Nginx - can't open php files from a different directory -ERR: failed (13: Permission denied)

I have set a nginx, php-fpm, mysql and phpMyAdmin on my laptop (running Arch Linux). Everything was ok till I tried to move the root in my home directory. Here is the nginx configuration file I'm ...
0
votes
0answers
11 views

How to protect private key on windows server

How can I secure the private key I use for my nginx instance on a Windows server? I assigned the privileges to the same local user as the nginx is running. The assigned permissions are read and ...
0
votes
1answer
21 views

Disable Cloudlfare SSL on nginx to use certificate

I use Nginx to host a wordpress site which is configured to use exclusively SSL. A while ago, I activated the Strict SSL option and the HSTS option from Cloudflare. Now I want to disable it and only ...
1
vote
1answer
18 views

Permission Denied for fastcgi_pass using PHP7

I'm running LEMP with PHP7.0. I've got this in my server block fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; But when I open the site, it returns a 502 Bad Gateway. Below is the error log. *1 ...
0
votes
1answer
16 views

NGINX accessing the files in the wrong path

I have a codeigniter application that has the following directory structure <HOME> |_ <web> | |_<API> | |_index.php |_<admin> The developers have an ...
1
vote
0answers
15 views

Install Mod_Security for Nginx without need to recompile

I've got LEMP all setup. Now I would like to add mod_security. I tried to research but all I could find are instructions on how to recompile nginx. Is there a way to add mod_security without needing ...
0
votes
0answers
24 views

NGINX PROXY 0000 1204 0000 0000 0000 0300 0000 8000

After last update of nginx all my pages are getting: 0000 1204 0000 0000 0000 0300 0000 8000 0400 0000 0000 0500 ffff ff00 0004 0800 0000 0000 7fff 0000 0000 0807 0000 0000 0000 0000 ...
0
votes
1answer
33 views

Nginx default_server not working

I'm running nginx 1.2.1 with a couple of services. They all use their on domain and listen on 443 only. I want to lock out people who IP scan my server and don't know the domain. If there is no ...
-2
votes
0answers
14 views

Nginx to Apache: location and try_files

How would these nginx directives (location, try_files, auth_) be written to work in an Apache .htaccess file? Example #1: location /pay/ { index index.php; try_files $uri $uri/ ...
0
votes
1answer
13 views

How to log request forwarded to fpm at Nginx

How to configure Nginx to log requests send to php-fpm into log? Goal is to have e.g. script path information ofter Nginx location etc. have been applied to.
0
votes
1answer
21 views

Editing hosts file nginx on Ubuntu 14

I'm not even sure what the name for what I'm doing is, which is why the question's title is probably incorrect. On my local (Mac) computer, when working on a website who's domain name DNS is still ...
0
votes
1answer
17 views

How to disable timeout for nginx?

On a local development machine, I have a nginx reverse proxy like so: server { listen 80; server_name myvirtualhost1.local; location / { proxy_pass http://127.0.0.1:8080; } server { ...
1
vote
0answers
35 views

Need guidance on tracking path of incoming HTTP requests

I'm running a WordPress (version 4.5.2) blog (served by Apache) on Google Cloud Platform instance which is completely firewalled from the internet using GCP's Networking settings. Only connections ...
1
vote
1answer
35 views

What is the purpose of magic try_files statement?

Maintaining the system which was setup by a 3rd party found the following in the nginx vhost configuration server { listen *:80; listen *:443 ssl; ssl_certificate /path/to/cert.crt; ...
0
votes
0answers
16 views

cluster server between two networks with connectivity of 95% of times [closed]

I have a server, now I want to cluster it between two networks, that 5% of times this two networks are disconnected from each other. I don't know what's happened in this interval. I read some about ...
0
votes
0answers
23 views

Tumblr like blog aliasing nginx and dns

In short, I'm trying to make user1-blog.example.com point at user1-blog.blogo-matic.com with no redirect. So Lets pretend that a users wants to have a blog at user1-blog.example.com and wants to ...
1
vote
1answer
72 views

Log requests for a specific location

Have the same problem. Tried with named location, but i always get the same thing, access log created for specific location (/calendar) is empty, and logs are stored in general access log (/) in a ...
0
votes
1answer
48 views

Nginx php5-fpm varnish taking high CPU. Load average is over 32

I'm on a server with the following config: 32 GB RAM 12 core processor and it's running single wordpress on nginx, varnish, php5-fpm, fastcgi. Everything was running fine, but suddenly after ...
0
votes
1answer
10 views

Inherit proxy_set_header when using it in location block

I am trying to set up a bunch of virtual hosts on Nginx and I want to set some headers before passing the request upstream. I have some headers that I always want to set and then I have some headers ...
0
votes
1answer
40 views

SSL for Webserver with nginx

I am totally not familiar with SSL and all tutorials are pretty confusing for me. I want to ask you one thing - I have from rapidssl this two certs: intermediate.crt & web_server.crt. I had to ...
-2
votes
0answers
23 views

openssl won't install properly (I don't think) missing /usr/lib64 files

I just installed openssl 1.0.2g and when run openssl version it reuturns OpenSSL 1.0.2g 1 Mar 2016. I'm trying to update openssl so that I can take advantage of ALPN. nginx is referencing the old ...
1
vote
0answers
30 views

Nginx trailing slash redirect issue

I am running a Wordpress website with Nginx + Varnish. I am getting The page isn't redirecting properly error if I am adding or removing trailing slash in the configuration file. Please suggest the ...