Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nginx]

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

0
votes
1answer
7 views

nginx rewrite based on part of URL

I'm trying to set up nginx rewrites; I have it successfully set up to remove the extension: https://example.com/accounts?id=user-123 points to https://example.com/accounts.php?id=user-123 using just ...
0
votes
0answers
8 views

MEAN stack on NGINX

I have a Angular application running on localhost:4200 and NodeJs api server which is running on localhost:4500. I want to setup reverse proxy, load balancing, static file serving using NGINX. How ...
0
votes
0answers
10 views

mod_speling Case Insensitive URLs not working

I have a ServerPilot server, running on Ubuntu 16.04.3 On it is an app that is a Wordpress website, but has other non-wordpress directories. In these directories is what I am concerned about. I ...
0
votes
1answer
12 views

Nginx not logging $remote_port when coming from cloudflare

We offen receive requests from police to provide the ip and port of visitors. When the requests come via cloudflare(https), the $remote_port variable is empty, when I access the load balancer via it'...
0
votes
0answers
16 views

TCP connections between docker containers timeout after ~10000 connections

I have 2 containers defined in a docker-compose.yml file, and am using them to run some rspec tests in a CI pipeline - the first container executes the tests, the second is an nginx container that is ...
0
votes
0answers
3 views

nginx one virtual domain returns a 404 [on hold]

I have an nginx server running virtual domains. All 10 of them are working, but one of them returns a 404. The blocks are configured the same for the other domains and I have checked the symlinks, ...
0
votes
0answers
7 views

Https request taking 60 seconds or more before my api method starts executing (using nginx, openssl in Windows)

I setup https for my api using nginx and openssl in Windows. Since I moved from http to https periodically some post requests would take up to 60 seconds before my api code started executing the ...
0
votes
0answers
10 views

Set multiple website path for an EC2 instance in nginx

Trying to understand Nginx configuration. I have two websites in the folder /var/www inside my test EC2 instance. | |-website1 |-website2 I am trying to configure the nginx and the IP address of the ...
0
votes
1answer
16 views

SSL Certification with nginx and tomcat

I have an nginx server, which can forward request from subdomains of ropi.io. I want to secure the connection with SSL, so I generated a certificate, called ropi.pem and added it as both the ...
0
votes
0answers
23 views

How do I ensure basic linux server security [on hold]

As the title suggests I am a complete beginner to server administration and I have no idea what I'm doing. So a little backstory first, I recently developed a website and set it up for deployment ...
0
votes
2answers
23 views

Install more_set_headers in nginx 1.15.8

Ubuntu 16 Server - load_module modules/ngx_http_headers_more_filter_module.so does not work out the box from a fresh install. root@ /etc/nginx # nginx -V nginx version: nginx/1.15.8 built by gcc 5.4....
1
vote
2answers
50 views

MySQL Error: Can't create thread to handle new connection(errno= 11) triggered by many Gunicorn API requests

I'm running Ubuntu 16.04.4 LTS on a hosted Virtual Server with a MySQL DB 5.7.23 and a Gunicorn web server, which is providing the web application with an API. Everything is running properly, however ...
0
votes
0answers
9 views

How to whitelist Ip so that the IP can pass the Mod_security rules

I am finding that mod_security 3.0.3 will block wordpress user to post an article. The question is How I whitelist an IP so that I can post an article via the IP ? Mod_security : 3.0.3 OS : Centos 7 ...
2
votes
1answer
52 views

How to ease Nginx when a big file is included in the configuration?

so I had a problem with DDoS, I think I solved it, but the solution is causing me problems. After months of suffering and trying almost everything I finally solved the problem by blocking IPs one by ...
0
votes
0answers
44 views

Kubernetes: 502 Bad Gateway for some assets - with Nginx Ingress

I've configured a Kubernetes cluster as follows: Webapp pod (with a Vue.js and an API, both within each container) Nginx ingress config (with default-http-backend) Database pod (which doesn't seem to ...
0
votes
0answers
10 views

My nginx log not read the web activity in real time

I am confused, my nginx log does not read the web activity in real time. The log will tell what happens after several time (it is hours ). Do you know why? Thanks
0
votes
0answers
5 views

SSL Handshake failure [migrated]

For a long time I connected to an external API in my application (ws.audioscrobbler.com:443), but it suddenly started to deny me a SSL handshake during authentication process, according to this ...
1
vote
0answers
18 views

Nginx catching wildcard subdomain rather than exact

I'm having some issues with my nginx setup. Im trying to set up a subdomain for another system path, but for some reason, nginx redirects to a catch-all wildcart rather than the exact. Config looks ...
2
votes
1answer
26 views

Nginx $upsteam_cache_status custom header will not appear

I am trying to debug the nginx proxy cache and to do so I need to see the $upstream_cache_status value. My config is as follows: http { ... proxy_cache_path /tmp/cache_nginx levels=1:2 ...
0
votes
0answers
15 views

nginx: rate limiting error on request body of nextcloud

I run nextcloud behind nginx acting as reverse procx performing tls edge termination. When I sync I get the following error in nginx: 2019/02/16 06:34:39 [warn] 2206#2206: *3000 a client request body ...
0
votes
1answer
36 views

Nginx location to find images in the root directory

I inherited a web project from a client who threw a bunch of images and PDF files in the root directory of their site so they could easily send links to those images/files to their clients. Moving ...
0
votes
1answer
19 views

unexpected end of file

I am trying to get revese proxy working. I followed below https://github.com/nthnnl/odoo-nginx-reverse-proxy I am getting ginx: [emerg] unexpected end of file, expecting ";" or "}" in /etc/nginx/...
0
votes
0answers
14 views

Running web server along side Grafana with reverse proxy

I followed these steps below to setup Grafana on Ubuntu 18.04 https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-grafana-on-ubuntu-16-04 One of the steps is to setup reverse ...
-2
votes
0answers
41 views

Server configuration 1,5k ssl [closed]

I've been trying to configure the server with... but unsuccessfully I'm using centos 7 nginx-openresty-dynamic-ssl lua-resty-auto-ssl Would it be necessary to use docker and traefik? for the ...
0
votes
1answer
25 views

How to configure https with nginx with a public ip without domain name

I have a public IP (for eg: 123.123.123.123) and I would like to install the ssl on a nginx server (for using https). I have a folder in /etc/nginx/ssl where I store my .crt and .key. Here is my nginx....
0
votes
1answer
27 views

Reverse NGINX proxy in front of two Docker containers is not working

I have this configuration: upstream frontend_upstream { # FrontEnd part based on `frontend` container with React app. server frontend:3000; } server { ... listen 80; server_name ...
0
votes
0answers
17 views

nginx healt check of wsgi app behind another nginx

I have 1 wsgi app that run on 2 nginx box. Let's call the 2 box : ++ box-1.mydomain.com (192.168.1.1) ++ box-2.mydomain.com (192.168.1.2) All will have to able serve 'myapp.mydomain.com' At each box, ...
0
votes
0answers
71 views

Ingress NGINX client closed connection while SSL handshaking

We have ingress-nginx running for a while and about 10% of requests ending up with some SSL handshake problem. Here is an example of a failing connection: 2019/02/14 10:15:35 [debug] 237#237: *4612 ...
1
vote
0answers
8 views

prohibit use of ip adress to access to website (use of container nginx reverse proxy)

I use docker compose to run two containers: one with a nginx reverse proxy (nginx-proxy) one with netdata I want to disallow access to netdata with the ip address. This IP cannot get certificate (I ...
0
votes
0answers
31 views

Add Subdomain with different IP on Google Domains

I am hosting a site on Github pages that uses a custom domain from Google Domains. My custom resource records look like this. Note that although the data for the CNAME is "mygithubusername.github.io"...
0
votes
1answer
40 views

nginx: Upstream SSL, how is it encrypting on the backend?

I've been researching this question, and cannot find a definitive answer. I am really trying to get a grasp on this before deploying to production, and most nginx resources I've found aren't very ...
0
votes
0answers
15 views

Nginx multiple reactjs app in same domain

Below is the configuration I currently have, to serve three different react apps on same domain based on user agent. Also the API is hosted under same domain on particular sub-route. upstream app { ...
0
votes
0answers
17 views

Nginx running on different port on Windows server with IIS on port 80

I have a windows server with IIS running on it with a whole bunch of applications. For one of the application, we need to install Nginx for reverse proxy. We have to call dynamic files from a vendor. ...
0
votes
0answers
21 views
+50

Openssl: generated cer and key from pfx don't match

I'm trying to convert a pfx to cer and key format to use them with Nginx. I'm using the following commands: openssl pkcs12 -in input.pfx -out mycerts.cer -nokeys -clcerts and openssl pkcs12 -in ...
0
votes
0answers
21 views

Should NGINX resolve proxy_pass from localhost?

I'm newbie in nginx, please help. Here is my simple config: server { listen 80; server_name kama.com.local; location / { proxy_pass http://localhost:7565; proxy_http_version 1.1; ...
0
votes
0answers
7 views

Is it possible to insert a comment with sub_filter on NGINX?

I'd like to use sub_filter to insert a comment on all pages, something like: sub_filter '<html>' '<html> <!-- Comment. --> '; However, the part between (start of comment) & (...
0
votes
0answers
13 views

NGINX use different try_files statement for GET and POST

I have the following location block: location / { try_files /cache/blitz/$http_host${request_uri}/index.html /cache/blitz/$http_host${request_uri}index.html $uri $uri/ /index.php?$query_string; } ...
0
votes
0answers
18 views

Nginx rewrite and proxy_pass can't find object

For our project, we use RabbitMQ and also show the information via nginx but nginx can't show the queue information: http://domain:15672/#/queues/%2Ftest/%2Fnode_processor # works http://domain:9000/...
0
votes
0answers
28 views

Domain redirects to wrong nginx vhost site

I have ubuntu 18.04 server with 2 dedicated ip addresses: eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 195.161.41.218 netmask 255.255.255.0 broadcast 195.161.41.255 ...
-1
votes
0answers
7 views

nginx not connecting with node server routes [duplicate]

I'm having trouble with setting up my digital ocean server with node. I have a simple node app with express routes. I'm using Nginx to connect with reverse proxy port 80 & 443. I've tried multiple ...
1
vote
0answers
21 views

NGINX - Client-side authentication continues working even after USB token has been removed

I have a website running on apache2, on which the client is authenticated by a SSL certificate stored on a USB drive. Between the client and the web server, there is a NGINX reverse proxy. ...
0
votes
1answer
38 views

Nginx 1.15.8 need load 1k+ ssl cert

erro -> nginx: [emerg] BIO_new_file("/etc/letsencrypt/live/$sslwww/fullchain.pem") the configuration with map or with if are not working what I can do for them to work? do not just find the path ...
0
votes
1answer
33 views

nginx proxy pass forward subdirectory & preserve url

I have setup two servers with nginx - https://dev.imagecompressor.io at 35.231.119.158 https://imagecompressor.io at 176.9.41.138 I am trying to forward https://imagecompressor.io/site to https://...
0
votes
0answers
29 views

Can I use nginx to redirect to a most recent file?

I was wondering if it is possible to have nginx rewrite a URL to point to the most recent (last naturally sorted) version of a file? Basically, I have a directory full of revisions of a file, like ...
0
votes
0answers
25 views

Nginx reverse proxy in subdirectory to docker image

I am trying to spin up a docker instance of WordPress behind an Nginx reverse proxy that redirects a subdirectory of /blog to the docker instance. I’m having issues when trying to set options in the ...
0
votes
0answers
36 views

Setting up a Laravel project on AWS Fargate

I am trying to run a Laravel Docker Project on AWS Fargate. The project builds and runs successfully on local machine. I am able to browse to http://localhost:8000 and it works just fine. However, ...
1
vote
1answer
50 views

how to force Nginx to override header?

I'm trying to display my sitemaps. Browsers display my sitemap index as xml but treat post sitemaps as plain text. I tried to override content type with below configuration but it didn't help. ...
-1
votes
0answers
58 views

Nginx display html as text with full set of headers [closed]

I have been compiling nginx with custom ngx_http_header_filter_module.c and ngx_http_special_response.c Everytime it has been compiled and installed successfully, but when i try to visit my url nginx ...
0
votes
0answers
29 views

limit_req_zone for the whole PHP

I'm protecting wp-login.php via below rule: location = /wp-login.php { limit_req zone=one burst=1 nodelay; include fastcgi_params; fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; } My ...
1
vote
1answer
29 views

How do I figure out how my certbot is configured?

I need to change the domain on my server, which I've been using certbot to get certificates for successfully. I need to switch it to a different domain though. I did not set it up initially so I have ...