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
1answer
35 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 index....
1
vote
0answers
33 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
30 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
50 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 ...
0
votes
1answer
14 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
26 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
34 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
58 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
41 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
27 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
90 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
73 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
25 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 ...
1
vote
0answers
43 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 ...
0
votes
1answer
35 views

Nginx, “No such file or directory” on request, with duplicate path segment?

I am having an issues with trying to serve content from a subfolder of my Nginx 1.9.15 install, which is running on MacOS X 10.11. The configuration in my nginx.conf is (there is no other root entry): ...
0
votes
0answers
30 views

Change path of cookie: proxy_cookie_path for fastcgi (PHP)

I know there is proxy_cookie_path in nginx for changing the path of a cookie when using a nginx as a reverse proxy. (It works similar to overriding the domain of a cookie.) However I'd like to do the ...
0
votes
1answer
85 views

PDOException could not find driver - Homestead Laravel

Upon running: php artisan migrate I recieve: [PDOException] could not find driver With me being unable to run database migrations through artisan. As far as I can see my Nginx instance ...
0
votes
0answers
54 views

Configure NGINX : ngx_http_mp4_module and limit download speed video

I compiling nginx for streaming videos on my web site by these options : nginx version: nginx/1.9.15 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013 ...
2
votes
1answer
36 views

Does nginx really need dac_override in its AppArmor policy?

I am building an AppArmor policy for nginx in Ubuntu 14.04 and I cannot make it work without enabling the dac_override capability. Does nginx really need this enabled or is there some way to work ...
1
vote
0answers
22 views

Nginx+gunicorn 404

supervisorctl says that gunicorn procces have a RUNNING state and I thought that it is success. But something is wrong yet. Resource available only by IP Nginx config: upstream hello_app_server { ...
1
vote
0answers
9 views

PHP-FPM child processes are created and not going away

I have a ubuntu 15.04 server with 160GB of RAM and 40 cpu cores. Nginx is the web server and varnish is used for the cache. The site is in wordpress with very high traffic on weekdays. The www.conf is:...
0
votes
0answers
195 views

400 Bad Request while creating websocket between client and nodejs with Nginx as reverse proxy

I am trying to create a websocket using Nginx as a reverse proxy and nodejs at the back. I'm using ws library in nodejs. When I test it using wscat tool everything works fine but as I make request ...
0
votes
0answers
31 views

Listening to 127.0.0.1:9000 but var/run/php5-fpm.sock failed (2: No such file or directory)

I have a webserver configured to accept FastCGI requests at 127.0.0.1:9000 like below. /etc/php5/fpm/pool.d/www.conf: listen = 127.0.0.1:9000 /etc/nginx/sites-enabled/mysite: location ~ .php$ { ...
2
votes
0answers
50 views

Haproxy and nginx rtmp

i am trying to use haproxy in front of rtmp nginx server it does connect but it does not play the video i have 2 servers 1 server is where rtmp nginx installed and second server where haproxy ...
1
vote
0answers
29 views

Is it a good design to have multiple proxy layer?

I have 3 Django applications (Django + Nginx for static files) in autoscaling group in AWS. All are served as subdolfers of a single domain http://example.com/app1 http://example.com/app2 http://...
0
votes
0answers
11 views

nginx not working on AWS Ubuntu server instance [duplicate]

I am new to aws and server setups and all. I wanted to try out Amazon AWS, so I got an Ubuntu 14.04 instance. I installed nginx using sudo apt-get install nginx. When I used the public DNS AWS ...
1
vote
0answers
93 views

Can I deny in nginx based by URI and IP?

Basically I have an wordpress site (with a ecommerce store and a social login). I have denied all access to wp-login.php based on ip address. The problem is that social login uses this wp-login file. ...
2
votes
1answer
38 views

Troubleshooting nginx caching for static assets

I have a Django website where users post images for the whole community to see (kind of like 9gag). I use Azure storage to save and serve the images. The webserver is an nginx reverse proxy + ...
0
votes
0answers
40 views

nginx reverse proxy with rtmp

I am trying to use nginx reverse proxy to connect to a nginx rtmp server 2 servers a and b a = nginx with rtmp ( videos loacated here ) b = nginx reverse proxy the reverse proxy is working good ...
0
votes
0answers
23 views

Allowing cross origin requests (CORS) on Nginx for 502 responses

Solution for 404 error works fine. Are there any way to make nginx send 5xx errors to client as well with CORS?
0
votes
1answer
19 views

Nginx and Redirects

I have nginx which I use as proxy towards Apache servers.nginx listens on <public_ip>:8087. server { listen 8087; server_name leodev alias another.alias; location / { ...
0
votes
0answers
42 views

nginx won't start after updating GitLab

I tried updating GitLab by running sudo apt-get update and sudo apt-get install gitlab-ce. Everything seemed fine during the install, but after it finished, nginx stopped working and I can't get it to ...
0
votes
0answers
28 views

Redirecting with a reverse proxy nginx

I have a reverse proxy nginx that listens on port 8888. The frontend is listening to 8000. The problem is the following: the browser is redirected to http://frontend:8000/user/username. At this stage, ...
0
votes
2answers
35 views

nginx permission issue serving static file - RedHat 7 SELinux issue

This is a new installation which I followed the passenger+nginx guide. This will eventually be a rails site, but for now I am trying to get static files to serve, and am unable to figure out the ...
0
votes
0answers
16 views

Difference between Nginx from nginx.org repo or epel repo?

I was trying to install ngingx from the epel repo on RHEL7.1 and was running into errors regarding missing packages. the nginx version on the epel repo is 1.6.3-8. I then tried to install nginx ...
0
votes
1answer
33 views

reorder url parameters (GET) with nginx or apache

Is that possible to reorder the GET parameters from a request (alphabetical) before it hits my application ?
0
votes
1answer
102 views

Nginx rewrite certain port to subpath (nginx + uwsgi + django)

My goal is to rewrite everything under http://localhost:8000 to http://localhost/foo I followed every step mentioned in this link, but still couldn't get it work. Here's my settings: urls.py (...
0
votes
1answer
255 views

Wiring uWSGI to work with Django and nginx on Ubuntu 16.04

I am trying to follow this tutorial to setup uWSGI with Django and nginx on Ubuntu16.04. It all works fine up until the very last step (oh the irony...) where I try to execute this command: sudo ...
0
votes
1answer
42 views

Reverse proxy for nginx configuration for subpath

I currently have this configuration for a reverse proxy in nginx server { listen 8888 default_server; root /usr/share/nginx/html; index index.html index.htm; ...
0
votes
1answer
83 views

Haproxy, Nginx Pretty Url not working

Hi I'm having trouble setting up pretty urls from nginx behind Haproxy. Haproxy.cfg global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy stats socket /...
0
votes
0answers
16 views

nginx as reverse proxy when upstream DNS entry may not exist at nginx startup

I have a scenario where I need a reverse HTTP proxy to sit in front of several web servers which are dynamically provisioned. We are currently using nginx. The back-end web servers have dynamic ...
0
votes
1answer
90 views

ownCloud Unable to Connect to Local Database on Fedora 23 (LEMP stack, selinux permissive)

The Problem I am having a very strange issue where ownCloud seems unable to access my SQL database, using nginx, mariadb, and php-fpm running on Fedora 23. When I attempt to access the page, I get ...
2
votes
0answers
34 views

What is the right way to host different Django apps as nginx locations

I have a static website (www.example.com) and a Django app (example.com/app1) running on a single server machine (machine 1). Both the website and the app are served using nginx. I am using gunicorn ...
1
vote
0answers
36 views

client_body_buffer_size threats

in my current nginx configuration I got: client_max_body_size 100M; client_body_buffer_size 1M; client_max_body_size I need to be set so big. Unlucky I often got notices when ppl ...
2
votes
1answer
48 views

(Pacemaker) Nginx uses primary IP address instead of virtual IP to communicate with web servers

I have set up a two-node cluster (active/passive) with Corosync/Pacemaker and nginx as a reverse proxy. OS is RHEL7 and the machine has only one network interface at the moment. I configured two ...
0
votes
1answer
87 views

nginx with nginx communication using http2 without ssl

I've nginx-proxy and nginx-server docker containers. client browser < > nginx-proxy is http2 and 443 via proxy_pass. nginx-proxy < > nginx-server is http1 and I'd like to move it to ...
1
vote
1answer
50 views

Force nginx to close connection

We have a setup that looks like this: Client -> AWS ELB (tcp load balancing)-> NGINX (ssl termination) -> application server. We want to gracefully take application servers out of the load balancer. ...
1
vote
1answer
38 views

Nginx + Wordpress language redirect

i am currently trying to configure an Nginx installation with Wordpress multisite used for language support. The multisite is configured: mysite.com (not used) mysite.com/it mysite.com/en Basically ...
0
votes
0answers
31 views

Trouble with Passenger in multiuser RVM environment

I have Passenger 5.0.28 installed as a gem, and configured with NGiNX 1.9.15. In other environments where I didn't have to set up multi-user for RVM this works fine, but now I'm having trouble getting ...