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
1 answer
118 views

Running PHP7.4 FPM on Ubuntu. Forgot to install PHP7.2-curl. Wondering if I will need to bring down all the other websites for the change

So I run a server with about 7 websites. Just wondering if adding a module I will have to bring down the php-fpm and thus reboot the nginx process or adding a module. Nginx Ubuntu 20.04 php 7.4 ...
BostonAreaHuman's user avatar
0 votes
0 answers
51 views

Double Nginx installation issue

It seems i somehow have two installations of Nginx on a server, Nginx Amplify reports two installations (see screenshot), one of them not sending updates of course, and occasionally when restarting ...
Julien's user avatar
  • 242
0 votes
0 answers
149 views

inside nginx custom docker image, cron service is running but not the jobs executing

Dockerfile of nginx container FROM nginx:latest # Remove sym links from nginx image RUN rm /var/log/nginx/access.log RUN rm /var/log/nginx/error.log RUN apt-get update && apt-get install -y ...
Rajsekar Reddy's user avatar
0 votes
1 answer
65 views

nginx GET request with internal server name instead of public domain name

I have set up a nginx reverse proxy with Ubuntu Server 22.04 LTS. The Abacus web application should be accessible with https://abacus.contoso.com from the internet. The internal server name is srv06. ...
Fabmic96's user avatar
0 votes
0 answers
132 views

"/etc/nginx/nginx.conf is meant to be read-only" when editing with nano after upgrading Ubuntu 20.04 to Ubuntu 22.04

I am recently upgraded Ubuntu Server 20.04 to Ubuntu Server 22.04. It is a LEMP server running the latest Mainline version of Nginx. After the upgrade, when I try modifying the /etc/nginx/nginx.conf ...
DanRan's user avatar
  • 103
0 votes
1 answer
61 views

Nginx : rewrite rule with multiple urls

Want to rewrite nginx with setup such as www.example.com/abc/xyz/test/ redirect to www.example.com/abc/xyz/test.php So want to make an rewrite rule which will work for all pages with that url like so ...
Tejas Bhosale's user avatar
0 votes
0 answers
206 views

Configuring Nginx Reverse Proxy: Resolving Bad Gateway Issue

I am attempting to set up an Nginx reverse proxy that should be accessible from another server. The purpose is to redirect requests to an upstream test environment. The connection necessitates a ...
Radoslav Enev's user avatar
0 votes
0 answers
117 views

Tune performance of Ubuntu 20 for running Nginx inside a docker

I have a 1gbps server, and I want to squeeze max performance (RPS) from it. The setup is an Ubuntu bare metal server, on it, there is a docker with Nginx in it. Although the server is supposed to ...
0xPwn's user avatar
  • 101
-1 votes
1 answer
30 views

Server Response Time Fluctuation on VPS for Static Files

I monitored some of my VPS (shared CPU from major suppliers), and response time changes over time from 50ms to 2000ms. There is no traffic on the server and there is no database. So is this because of ...
doraemon's user avatar
  • 141
0 votes
1 answer
144 views

How can I setup Nginx with a transparent socket?

Similarly to this Cloudflare blog post, I am trying to setup Nginx with a transparent socket (with the IP_TRANSPARENT socket option). I want to do this to implement a reverse TCP proxy that ...
dippynark's user avatar
  • 232
0 votes
0 answers
138 views

Odoo 16 on Nginx: can not enter editor mode after enabling TLS

Odoo doesn't work as expected after enabling TLS on Nginx (Ubuntu 22.04). When I click on the editor button on Website or eLearning section, the browser keeps on waiting with the running circle. I ...
Ringle Lam's user avatar
1 vote
0 answers
54 views

Load Balancer Server Accessible in Browser But not via `curl localhost`

These are my 3 servers. Load Balancer-192.168.1.72 Server-01-192.168.1.79 Server-02-192.168.1.80 In Load Balancer Server, I've configured these things in /etc/nginx/conf.d/load-balancer.conf upstream ...
achhainsan's user avatar
0 votes
0 answers
148 views

Print custom header parameter's value in nginx access log

I have a situation where consumer is passing a service a custom header parameter "Userid", I am trying to log it to nginx access log. This is what I tried and it is not working- log_format ...
datastax's user avatar
0 votes
0 answers
101 views

Why does nginx proxy redirect the request?

I'm trying to pass the API requests to the backend with NGINX reverse proxy. When, I send a get request to /api/testdata, it sends a request to {frontendURL}/api/testData which, returns with 301(...
szgezu's user avatar
  • 1
1 vote
0 answers
321 views

How to configure Nginx to proxy more than 200K MQTT connections?

I need to proxy a lot of MQTT connections (over 200K) and distribute them over a number of ports at the backend server. Below is my Nginx configuration. load_module /usr/lib/nginx/modules/...
Yehan Pemarathne's user avatar
0 votes
0 answers
52 views

reverse proxy for nodejs application with https

Hi I am hosting a node js application on my raspberry pi. The app itself is already configured to use https. I want to setup a reverse proxy so I don't need to directly expose the node js app. but ...
user20338's user avatar
  • 271
0 votes
0 answers
263 views

Dockerized Nginx Reverse Proxy - Real IP

I have following problem. I have a docker compose setup which spins up a frontend service using Nuxt3 and a backend API based on golang.This two containers are exposed via an Nginx reverse proxy ...
Sol's user avatar
  • 1
1 vote
0 answers
937 views

Nginx 1.25.2 HTTP/3 works over CURL, but doesn't work in any browser

I am trying to configure nginx 1.25.2 with HTTP/3 support on Ubuntu 22.04. I build it using BoringSSL library. But when I try to connect to my server using browser, I don't get anything.("Unable ...
Sanch3s's user avatar
  • 11
-1 votes
2 answers
195 views

How can I keep network routing internal?

I have a web server behind Nginx reverse proxy. When I access the server with a client from the same internal network via its secure URL, how can I ensure the traffic routing stays within the internal ...
Marc's user avatar
  • 1
0 votes
1 answer
33 views

Understanding Return in nginx

I have a configuration file with a config similar to the below map $request_uri $redirectWithError { default "0" "~* /<uri>" "1" } location / { if ($...
Sai Dinesh bijjam's user avatar
0 votes
1 answer
130 views

Why is there a large deviation in wait time for nginx server

I have an Nginx server that acts as a reverse proxy and a static file server. My users complain that sometimes the response is slow. I tried examining the .her file to understand the issue better and ...
0xPwn's user avatar
  • 101
0 votes
0 answers
45 views

Nginx: could not build map_hash, you should increase map_hash_bucket_size: 64 even when its set under http (stream module used)

since I can only ask questions here but its more of a solution for other people that have this issues I hope its still fine to be posting here, I didnt know a better place since I don't own a website ...
Felix941's user avatar
0 votes
0 answers
156 views

Block ChatGPT bot at an nginx level

I want to block access for ChatGPT for a whole website, but still allow it to see the robots.txt file located in the public root directory (my robots.txt basically also tells ChatGPT not to crawl the ...
Álvaro Franz's user avatar
0 votes
0 answers
29 views

Nginx wordpress proxy pass

after hours of trying and google i thought my last chance to get it solved is here. i have the following problem: A Wordpress page is running under myperfectshop.com The shop just have one product at ...
Patrick's user avatar
0 votes
0 answers
117 views

SELinux on RHEL8 with Gunicorn and nginx has problems with saving file into diretory

I have Django application running on RHEL8 via Gunicorn and nginx. All works fine in case of testing with SELinux disabled. When I enable SELinux, there is a problem with saving the picture from ...
Marek's user avatar
  • 1
0 votes
0 answers
28 views

NGINX- different web paths to different folders

I need to redirect different web paths to different folders on server. http://test.local/site1/ => /srv/site_1/src/public http://test.local/site2/ => /srv/site_2 tried such config, but it does ...
holden321's user avatar
  • 117
0 votes
0 answers
19 views

How to Avoide Passing Regrex Part into proxy_pass in Nginx

I want to foward all request to https://myfrontend/(anything)/front/ to my backend server http://mybackend:8081 and now I setup my nginx like below: location ~ ^/(.*)/front/ { proxy_pass http://...
Sijian's user avatar
  • 1
0 votes
0 answers
18 views

React web app routes not working with query string by using nginx when there is query param

What is mistake hear, I am using this to solve nginx in ubuntu location / { try_files $uri /index.html$is_args$args = 404; }
Dharam Pandya's user avatar
-1 votes
2 answers
64 views

Nginx forwarding presenting wrong certificate

I have a little problem with nginx. We have two subdomains we own, let's call them domain1.com and domain2.com. For domain2 we don't have further subdomains, for domain1 we have several. If someone ...
Richard Rosner's user avatar
1 vote
2 answers
205 views

Issue with setting up nginx for wordpress

I have a following wordpress nginx configuration in my /etc/nginx/sites-available/wordpress: index index.html index.htm index.nginx-debian.html; location / { proxy_pass http://nextjs; ...
OdifYltsaeb's user avatar
0 votes
1 answer
90 views

Nginx returns different SSL certificates for one domain

Problem summary: one nginx server one domain with SSL certificate when accessing the site from one network, nginx returns the correct current certificate (1), and when accessing from other networks - ...
Allmektiger's user avatar
0 votes
0 answers
71 views

Nginx as http proxy in two different networks and must use udp

I face a challenge, nginx as http proxy in two different networks and must use udp. There are some conditions: Two different networks: A network and B network, they can't connect directly. One proxy ...
Carlos Yuan's user avatar
0 votes
0 answers
175 views

Forward local generated Secure Websocket traffic (wss) through an HTTP/HTTPS proxy to reach internet

I have a python webex_bot application (https://github.com/fbradyirl/webex_bot) which uses websockets for webex cloud communication. The problem is that the server in which the bot is being hosted on, ...
panchis's user avatar
0 votes
2 answers
490 views

How to change the basic auth default header in nginx?

I set basic auth in my nginx location / { auth_basic "Restricted Area"; auth_basic_user_file /etc/nginx/.htpasswd; } So after i saved and restart nginx. The browser ...
Мохамед Русланович's user avatar
0 votes
0 answers
49 views

applying Nginx SSO with authorization to selected subdomains

I need an open source SSO tool integrated with Nginx like authelia. It must be able to manage users' access to different sites. For example, the "s.com" domain is protected by SSO. This ...
sh91's user avatar
  • 1
0 votes
1 answer
142 views

iredmail on ubuntu 22.04.3, nginx proxy, roundcube

before that, i've hosted some websites from my synology nas. But now, i need to create a mailserver. 've installed iredmail on ubuntu server, and created a new Nginx server ( on other hw) for the ...
Dávid Csorba's user avatar
0 votes
1 answer
222 views

Issue with Web Server running PHP thru Reverse Proxy

I'm using an NGINX reverse proxy, with wild card certs installed on the reverse proxy. Routing the NGINX reverse proxy traffic to standard web servers that are running Apache2 and NGINX Web services ...
Surfingjoe's user avatar
0 votes
1 answer
372 views

nginx-proxy always returning 301 Moved Permanently

I'm following the example docker compose for an nginx-proxy, but it always returns a 301 Moved Permanently error. I'm using docker hosted in Ubuntu 22.04. my docker-compose.yml file version: '2' ...
PaulH's user avatar
  • 181
2 votes
1 answer
283 views

Should there be an explicit catch-all NGINX `server` block to dismiss HTTPS requests for the domains **not** served by the server?

The most common NGINX config I see is the one below, where it is made sure that all relevant HTTP requests are redirected and the irrelevant ones are dismissed, but usually I only see one server block ...
toraritte's user avatar
  • 220
0 votes
1 answer
161 views

host not found in "$server_listen_port" of the "listen" directive

With the following nginx config excerpt: map $server_name $server_listen_port { default 443; localhost. 80; localhost 80; } server { server_name "${ENVIRONMENT_SERVER_NAME}.&...
Mr. Developerdude's user avatar
0 votes
0 answers
165 views

One nginx config for both local dev and production

I have a website with the following architecture: Many services running as part of a docker stack Fronted by single nginx as reverse proxy nginx does HTTPS termination with certbot Developed locally ...
Mr. Developerdude's user avatar
0 votes
0 answers
132 views

Configure Keep Alive for connections coming from Cloudflare

I have two servers, an NGINX load balancer that receives connections from Cloudflare and two Apache applications that receive requests forwarded by NGINX. [Cloudflare] → [NGINX] → [Apache 01/Apache 02]...
Tom's user avatar
  • 289
0 votes
0 answers
48 views

system load spikes causing php-fpm pools to fill and cause micro outages

kind of at my wits end at this point and looking for some help. 2 physical Web servers CentOS NGINX PHP5 php-fpm 2 physical DB Servers CentOS NGINX elastic search zookeeper couchbase as user load ...
John Bell's user avatar
0 votes
1 answer
238 views

How to setup Nginx and Varnish reverse proxy for Node.js?

My website on the Astro framework (Node.js SSR adapter) is deployed on 1 shared-cpu-1x@256MB fly.io instance in the Amsterdam region, which automatically handling gzip, TSL termination. Initial setup ...
Predaytor's user avatar
0 votes
1 answer
295 views

Source site static resources are not loaded correctly after setting up a reverse proxy with Nginx Proxy Manager

I created the Nginx Proxy Manager container and the Wordpress container using Docker. But when I set up the reverse proxy for the Wordpress container as usual (not Wordpress), I realized that Nginx is ...
Otaku's user avatar
  • 3
0 votes
0 answers
87 views

Exposing ports on VPS

I'm running some services inside Docker and been having some issues with it: I have a NodeJS app (TLS stream communication) running on a custom port (let's say 2321). I exposed the port from my ...
Matic's user avatar
  • 1
0 votes
0 answers
150 views

nginx proxy_next_upstream with upstream variable

I find it very convenient (mainly for testing) to be able to change the upstream according to an url parameter: upstream balance { server 111.111.111.111 weigth=5; server 222.222.222.222 weigth=6; ...
Georg Pfolz's user avatar
0 votes
2 answers
122 views

Incorrect Permissions and Ownership in /etc/nginx/sites-available Folder for Containers

I seem to have encountered an issue with the default permissions and ownership of the containers within my /etc/nginx/sites-available directory. The current permissions and ownership structure appears ...
Sylvester DeMouser's user avatar
2 votes
1 answer
140 views

What is the difference between `return` in `server`, `if`, and `location`?

return in server block The Securely Deploy a Django App With Gunicorn, Nginx, & HTTPS uses the following HTTP-to-HTTPS redirect block: # Redirect HTTP to HTTPS server { server_name ....
toraritte's user avatar
  • 220
1 vote
1 answer
134 views

Should there be a `server_name` directive present if only one website is served with NGINX?

The Mozilla SSL Configuration Generator omits the server_name directive whenever generating config for NGINX (e.g., see the one for NGINX 1.22.1 & OpenSSL 3.0.2). After reading through a couple of ...
toraritte's user avatar
  • 220

1
3 4
5
6 7
343