2022 Developer Survey is open! Take survey.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

curl request via Nginx with mTLS enabled

When Nginx is configured to verify server's TLS chain like this: proxy_ssl_trusted_certificate some.pem; proxy_ssl_verify on; proxy_ssl_verify_depth 3; and testing using a curl command, will ...
user avatar
0 votes
0 answers
18 views

How to setup Nginx container load balancer failover

I am creating an API application which I want to deploy in the cloud and my application is made up of the following containers: Nginx Container: API Gateway API container SQL Server Database ...
user avatar
0 votes
0 answers
13 views

Fix 502 Bad Gateway

I have Nginx running on Ubuntu server (digital ocean), I've setup LEMP stack for hosting the Wordpress website. I'm getting 501 Bad Gateway when I try to reach website using the IP address. I see this ...
user avatar
  • 101
0 votes
0 answers
16 views

Nginx failed open /etc/nginx/html/sockjs-node - no such file or directory error

I am trying to dockerize three applications, two frontend applications using react and one nodejs backend application, the two frontend applications use the same backend with different ports. The ...
user avatar
0 votes
0 answers
11 views

Nginx reverse proxy + Vercel hosted app not working together

I have a Wordpress site running Nginx that exists on https://www.exampleurl.com I have an app running on Vercel - https://github.com/cwackerfuss/react-wordle - that I want to run under https://www....
user avatar
  • 113
0 votes
0 answers
21 views

Reverse Proxy not showing client IP

I've setup a reverse proxy and everything seems to be functionally fine however it looks like nginx is not correctly registering remote visit IP addresses and logs everything as coming from my server ...
user avatar
  • 1
0 votes
0 answers
17 views

Nginx server under load balancer, when /folder is found redirects to /folder/ but changes the host url

I have nginx server setup in google cloud. Server is being accessed from a host domain through gcloud pointing. Like this: https://server.com/test/ points to instance group with one of instances with ...
user avatar
0 votes
0 answers
13 views

Why is the Nginx server unreachable despite the ports being open?

I am in a very unusual situation and I have spent almost 8 hours trying to figure out what the problem is. The setup I have a server running Debian 11. Inside this server, I have a setup a CentOS ...
user avatar
  • 101
0 votes
0 answers
5 views

Tunneling a LEMP server through an oracle instance with wireguard. Cannot get Nginx Certbot certificates on LEMP server. How to debug?

I have a LEMP server at home running Ubuntu 22.02 and an Oracle cloud instance running Ubuntu 20.04. The Oracle cloud instance is acting as a Wireguard server. The LEMP server at home is acting as the ...
user avatar
  • 103
0 votes
0 answers
48 views

Nginx 502 Issue with the API & php-fpm

I've configured the new dev machine but can't get nginx working with the API as it is supposed to. The current error is that 'curl localhost/api' returns a 502. Host: Nginx PHP 8.1.x, php-fpm ...
user avatar
0 votes
0 answers
11 views

How to properly cache content in NGINX like in Plus version?

I saw official NGINX tutorial regarding content caching and tried to modify it according to my needs. I use CDN (Cloudfront), but the performance doesn't convince me. If my server was more faster it'd ...
user avatar
  • 105
0 votes
1 answer
16 views

How can I find out where a port number for a React website is saved?

I have a Debian machine, I can see that a React website is running on port 4173 but can't find out where it is so that I can change the port. I assume it is in some config file somewhere. it's not in ...
user avatar
0 votes
0 answers
9 views

Does proxypass put a toll on network traffic for streamable sources?

First of all I have never tried it and it may not be possible, but I do imagine a case when things like AWS S3 services offers files on their "buckets", and some part of security procedure ...
user avatar
0 votes
0 answers
15 views

ubuntu server nginx not working ufw configured

I have fresh installation of Ubuntu server 22.04. I can't connect to my docker container. Here is some more information: ufw status Status: active To Action From -- ...
user avatar
  • 101
0 votes
0 answers
9 views

Running docker app on my domain using nginx reverse proxy

I have a docker app and it works on http:// localhost:8000. This app also works on http://my_domain.com. I would like to run my docker app through nginx reverse proxy. Therefore, I have done the ...
user avatar
0 votes
0 answers
12 views

Nginx redirects .com and .cloud to .com when trying to use dynamic cert folder name

I have a small server on which I want to dynamically load ssl certs for multiple domains. The problem is that the 2 domains that I currently have (domain.com and domain.cloud - "domain" is ...
user avatar
  • 23
-1 votes
0 answers
31 views

Nginx RTMP to Telegram not working through Stunnel

I already tried to find an answer but couldn't find anything on this board or on Google. I followed a guide on YouTube on how to set up a Nginx server on my old MacBook Pro to stream a RTMP video from ...
user avatar
  • 1
0 votes
0 answers
12 views

Adding Cloudflare SSL Results in 522 Error

Currently I'm trying to install a Cloudflare SSL certificate on my Ubuntu server that uses Nginx. I am following this guide on how to do so, but once I successfully install the certificate as per the ...
user avatar
  • 1
0 votes
0 answers
18 views

How can i solve this CORS problems?

I've deployed the same backend code node.js (test site and production site) on the same Nginx server and separated it by virtual-host. I've no problem when connecting to a test part. However, when I ...
user avatar
1 vote
1 answer
46 views

connect() failed (111: Connection refused) while connecting to upstream with static website

My goal is to have 2 docker containers: nginx container (based on nginx:latest) to work as reverse proxy container with static website (based on nginx:alpine) Later I will add 1+ .net core backend ...
user avatar
  • 113
0 votes
0 answers
15 views

How to pass an html site from another server via nginx reverse proxy?

I am trying to load an Angular app from another internal service when calling localhost:81/internal?pageId=10. But all that happens is that nginx redirect me in the browser to localhost:80. I have ...
user avatar
  • 101
0 votes
0 answers
6 views

Nginx reverse proxy routes subdirectory to root location proxy path on first page visit each browser session

Short: I have two different servers behind an nginx proxy. When I try to reach one of them I will always be redirected to the other one which is located at the root location. This happens ONCE. The ...
user avatar
  • 101
0 votes
0 answers
48 views

Nginx signal process started

I cant reach the server from nginx. It keeps telling me this weird signal process started error. I feel like I have tried everything to fix this. Been giving permission to ubuntu where the file is ...
user avatar
0 votes
0 answers
22 views

nginx and httpd. (99: Cannot assign requested address)

i have a dedicated not managed server and use centos7 as OS, after a reboot and a new secondary ssd on my server, the httpd and nginx services no longer start. the ips configuration was not touched ...
user avatar
  • 101
0 votes
0 answers
23 views

Pm2 and Nginx wont communicate and SSL handshake failed

Hello I am fairly new to ubuntu and pm2 and Nginx but have been having this inconsistent problem for a few days and have no clue how to fix it as google doesn't tell me anything. Keep it me it used to ...
user avatar
1 vote
1 answer
14 views

nginx one site redirects to another

I have couple domains on my server. There is wordpress multisite and vanilla php site. All WP sites are working correctly but if vanilla php site redirects to main WP site. Here is config of main WP ...
user avatar
  • 13
0 votes
0 answers
14 views

How to configure nginx proxy on tomcat?

There is a raised nginx in docker that looks at the Internet with a public address. There is a site that is running on tomcat in docker on another machine with a private address. I need to configure ...
user avatar
0 votes
1 answer
20 views

How to force SSL on Nginx & Varnish

how can i redirect only to https in Nginx and varnish. I use varnish cache in port 80 and Nginx listening on 8080. Works fine in http, but i need to add SSL. my configuration is as follows server { ...
user avatar
  • 1
0 votes
1 answer
25 views

Nginx more_set_input_headers throwing an error

i am running Ubuntu 16.04.2 LTS. i am trying to upgrade my Nginix from nginx/1.10.3 to nginx/1.21.0. when i run the upgrade and test the configuration file i get the below error root@myserver:/home/...
user avatar
-2 votes
0 answers
21 views

Connect domain name with Linux VPS server ip using nginx

I have a VPS Linux (Ubuntu) server and I would like to connect a domain name with my server IP through nginx. I have checked the following: $ sudo systemctl reload nginx nginx.service is not active, ...
user avatar
0 votes
1 answer
16 views

Is it possible to pad columns in nginx access/error logs?

I've recently enabled ipv6 on my site, and while I don't often have a need to manually look at an access_log file, on the occasion that I do it's now very jarring that my first (IP) column is ...
user avatar
  • 1,034
-1 votes
0 answers
22 views

Ngrok more stable

Lately i was trying to build a localhost live streaming service for some small events on my community using nginx and ngrok(i don't want to have trouble with all that port opening) but when i was ...
user avatar
0 votes
0 answers
18 views

nginx is getting GET / request although its wrong

So I run a nginx container with docker-compose: services: nginx: build: context: . dockerfile: Dockerfile restart: always container_name: webserver_nginx hostname: nginx ...
user avatar
0 votes
1 answer
20 views

NginX: Serve application under sub path

I have multiple single page applications running each in their own container under the home directoy which is quite straight forward. Now I would like to route to those applications under the same dns ...
user avatar
  • 111
0 votes
0 answers
26 views

link custom domain (name.com) to Azure vm laravel & nginx

Good day, I have a Laravel application on an Azure Virtual machine using Nginx in the ubuntu VM. I wanted to link it to the custom domain I purchased on name.com... Those are the steps that I did so ...
user avatar
0 votes
1 answer
16 views

Nginx can't serve static file from home directory

I have a index.html file in both locations /home/ubuntu/web/build and /var/www/html There is no other complicated rules. However only root /var/www/html works! # root /home/ubuntu/web/build; ...
user avatar
  • 121
0 votes
1 answer
50 views

Running docker app on my own domain

I have a VPS Linux (Ubuntu) server with specific IP and I would like to run my app on my own domain http://my_domain.com. I have built a docker container and it works well on localhost 0.0.0.0:80. ...
user avatar
0 votes
0 answers
32 views

How to make Nginx reverse proxy wait until upstream comes online?

I have a server app that listens on a UNIX socket, and Nginx serving as a reverse proxy. Now I want Nginx to wait until my app comes online when e.g. I deploy an update and restart it, without ...
user avatar
  • 111
1 vote
1 answer
55 views

NGNIX enforce HTTPS

for my Webapp (Angular App) we are using NGNIX as web server. I have a task where I need to make sure all assets/images are loaded over HTTPS. In the Browser Dev tools, I see the request is sent over ...
user avatar
0 votes
1 answer
23 views

Allow IPs overriding deny rule

If one blocks IPs using a deny rule, e.g. deny 123.124.2.0/24; Is it possible to then allow certain IPs in that range/CIDR block? I would like to block all AWS (Amazon) IPs, but there are a small ...
user avatar
0 votes
1 answer
27 views

Certbot - Failed authorization procedure

I want to generate a Let's Encrypt certificate for my server, so that I can renew it automatically. I ran the command certbot --nginx -d testpbx.info.eu and got the following error. certbot --nginx -d ...
user avatar
0 votes
0 answers
18 views

Nginx proxy_pass is not passing customized header into the server

I have Nginx installed on my machine and serve 2 domains. https://example.com/ -> Frontend. https://api.example.com/ -> Backend. I'm communicating backend application through the frontend, But ...
user avatar
  • 101
0 votes
0 answers
8 views

getting 412 precondition failed with ngx_cache_purge when trying to purge cache

I am new to this and just started using nginx for my pet projects. now i would like to install and use ngx_cache_purge module from https://github.com/nginx-modules/ngx_cache_purge, since it has some ...
user avatar
  • 101
0 votes
1 answer
24 views

Regex to remove certain patterns from urls

So i've tried this multiple times but to no avail. Basically, what I am trying to do is check if the URL has a certain language locale and remove it and do a 301 redirect to the parent url without the ...
user avatar
0 votes
0 answers
21 views

NGINX - reverse proxy but one subfolder to static local directory

I'm having trouble figuring out the basic syntax for proxying most traffic to a local Solr install but leaving one path/dir requests being sent to a static html directory. Do all secondary, tertiary, ...
user avatar
  • 591
1 vote
1 answer
29 views

Please help, trying to set dynamic reverse nginx proxy but it fails

Please help, I am trying to set up a dynamic reverse proxy so that I won't require to make direct changes to nginx. What I want to achieve is to create a default locations say: location ~ ^/staging/v1/...
user avatar
0 votes
0 answers
21 views

NGINX should not change the URL in the Browser Address Bar

I hope you can help me on the following matter. I have NGINX Running and want to forward to .html (virtual pages) to index.php?view=$args without changing the URL, which is shown in the Browser ...
user avatar
0 votes
1 answer
14 views

Can i use different client certificates for different locations using nginx

I have two different location on my Server: server/locationA server/locationB I want to restrict access to these locations using two client certificates certA and certB. locationA should only be ...
user avatar
0 votes
0 answers
16 views

ERR_TOO_MANY_REDIRECTS using Nginx and Application load balancer

I have set up an ALB on AWS with a certificate to redirect traffic over https, in my target group I have a Nginx to do a proxypass with my target instances. Currently I have a CAS 4.0.1 application ...
user avatar
0 votes
0 answers
24 views

nginx how to replace try_files with proxy_pass having multiple paths

I have a set of rules in Nginx of this type: location ~ ^/race/[a-z0-9\-_]*/session/[a-z0-9\-]*/topic/[a-z0-9\-_]*$ { try_files $uri $uri/ /race/period/session/team/topic/index.html; } location /...
user avatar
  • 548

1
2 3 4 5
323