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
53 views

phpMyAdmin loading incredibly slow through nginx reverse proxy

So I have a Synology NAS at home with some services running that I need to be accessible from the WWW, but understandably do not want to open ports on my home IP to the wide internet (especially ...
jnko's user avatar
  • 1
0 votes
1 answer
92 views

nginx, serve php files [duplicate]

My nginx virtual host fails to serve PHP files. Instead, it downloads the index.php file when run in a browser. Here's my config: /etc/nginx/sites-available/laravel.local server { listen 80; ...
cookie's user avatar
  • 63
0 votes
0 answers
48 views

Nginx - HTTPS SSL Issue with Certbot

I've setup HTTPS SSL with letsencrypt and certbot and the main domain was pointing to the the machine that is running my site, working fine etc. Until of course I tried setting up the SSL for HTTPS. ...
Bloodshot_pico's user avatar
0 votes
0 answers
64 views

HAproxy, nginx and HTTP/2

I have few servers and for all of them: HAproxy sometimes is giving SSL certs for connection Sometimes nginx is giving SSL certs I need to set up HTTP/2 connections, where currently all are HTTP/1.1....
pbies's user avatar
  • 169
0 votes
0 answers
62 views

NGINX 1.22.1 not correctly sending request round robin

Debian: 12 Nginx: 1.22.1 Goal Have Nginx route request to each server in a round robin fashion What is happening Nginx is only routing request to the first server no matter what What the expected ...
Joseph.Codes's user avatar
0 votes
0 answers
13 views

How to make nginx use a different mongrel to the one which is handling the current request?

On our site we have a 12 mongrel cluster running, and in my local dev version i have a 5 mongrel cluster. nginx (version: nginx/1.22.0) sits in front. One of our processes makes a pdf by shelling out ...
Max Williams's user avatar
0 votes
1 answer
46 views

Proxying a WordPress page from another subdomain

I have an Nginx installed on an Ubuntu server, and I have installed WordPress on blog.example.com. On the WordPress I created a page for gallery which is accessible from blog.example.com/gallery. Now ...
Alpha Geek's user avatar
0 votes
0 answers
107 views

Nginx 502 error with localhost vs 127.0.0.1

I have a web-application running on 127.0.0.1:8080. Initially I configured my nginx.conf by using localhost:8080. Example: location / { proxy_set_header Host $host; proxy_pass http://localhost:...
O'Niel's user avatar
  • 105
0 votes
0 answers
45 views

Nginx - Not distributing traffic to all upstream servers

We have an existing issue on our nginx.. As you can see on the attached screenshot, the requests are not distributed evenly on the 12 servers and only 4 are getting most of the traffic Hoping you can ...
Jessirel's user avatar
0 votes
0 answers
68 views

PHP-FPM triggers "pm.max_children" but does never recover

I have a scenario where I use some JQuery (yes a very old project) that does 10~100 HTTP GET requests async. I just fire them and let the browser handle how many are being done in parallel. I don't ...
Matthijs's user avatar
  • 121
0 votes
0 answers
145 views

Keycloak is automatically changing certificate

I'm using Keycloak Quay 22.0.3 with docker-compose behind a Nginx reverse proxy but I have some troubles due an automatic replace of my certificate generated with certbot. My certificate generated ...
Alessio Raddi's user avatar
1 vote
0 answers
90 views

Unable to redirect HTTPS to HTTP via NGINX

I'm having a very hard time doing a redirect from HTTPS to HTTP. This is giving me the last few days some headache because I can't figure it out :| situation I have a website and a VPS server. The ...
J_P's user avatar
  • 11
0 votes
0 answers
254 views

Reverse proxy for use with iframe

Weather Observations-II this web page has the following link: Videofeed of Weather Condition this page calls iframe link: <iframe width-"1300" height="731" src="http://c500....
William's user avatar
0 votes
0 answers
33 views

Serving brotli files from different root folder nginx

Is it possible to serve brotli version of static html files from different folder in nginx? (Precompressed brotli versions) Moreover I don’t want to put .html file in the same folder. For example: /...
doraemon's user avatar
  • 141
0 votes
2 answers
169 views

How to switch PHP versions in Nginx if fastcgi_pass is pointing to a TCP socket

My question is simple (I hope). Everywhere on the internet I read that if I want to change PHP versions in Nginx, I need to change the UNIX socket of the fastcgi_pass parameter. But my fastcgi_pass ...
Daan van den Bergh's user avatar
1 vote
1 answer
61 views

Target app assets not loaded with nginx proxy_pass

I have a basic nginx proxy running on http://127.0.0.1:8080. This is the nginx.conf: events {} http { server { listen 8080; server_name 127.0.0.1; rewrite_log on; ...
Asmaa's user avatar
  • 31
1 vote
1 answer
141 views

Serve multiple apps with nginx proxy_pass

I'm trying to use a basic nginx reverse proxy to access three different apps, each running inside a docker container. The nginx reverse proxy is served on http://127.0.0.1:8080 and i want to have the ...
Asmaa's user avatar
  • 31
0 votes
1 answer
133 views

Multiple subdomains to log into phpMyAdmin with Nginx

I'm trying to have 2 separate subdomains from 2 different websites have access to logging into the same phpMyAdmin. I'm not sure how to set up the phpmyadmin.conf file so that Nginx knows how to ...
Aaron Catolico's user avatar
0 votes
1 answer
103 views

How redirect ANY site not found in Hestia to another server - Nginx proxy manager

I want: if ANY site not found in (Hestia 192.168.0.37 server) then redirected (Nginx proxy manager 192.168.0.36) Given: Hestia server 192.168.0.37 Nginx proxy manager 192.168.0.36 Site for test ...
dr.ipkins's user avatar
0 votes
0 answers
204 views

Minio server behind Nginx throws error 104 connection reset by peer

I have an Minio instance setup behind Nginx. Whenever I sync large folders using rclone I get error 104 connection reset by peer error for some reason. I tracked the tcpdump just to make sure it's not ...
Luccas's user avatar
  • 1
1 vote
0 answers
121 views

Nginx Multiple rate limiting using incoming header $http_q

I have a rate limit config as follows in the http block: # Rate limit config declaration map $http_q $r_b001 { b001 "1"; } # Zone config limit_req_zone $r_b001 zone=b001:100m rate=...
Rajesh's user avatar
  • 11
0 votes
0 answers
80 views

Do ETags generated on upstream need If-None-Match check? (NGINX)

(Reposting my post deleted after a year of inactivity) Let's assume I use etag off (and if_modified_since off with add_header Last-Modified "" to not make redundancy) in NGINX and I generate ...
Levi Pesin's user avatar
0 votes
0 answers
36 views

Mask Url from path to subdomain using NGINX

I want to achieve url rewrite as such: https://documentation.domain.com/login to https://app.domain.com/login https://api.domain.com/login to https://app.domain.com/login , any sudomain with url {...
Jason The Dynamite's user avatar
0 votes
0 answers
57 views

nginx not running ssi commands in .shtml file

I can't figure out why SSI is refusing to run. I'm on nginx 1.25.2, on Ubuntu 22.04 server { listen x.x.x.x:443 ssl; listen [::]:443 SSL; # other lines include /home/...
Andrew Newby's user avatar
  • 1,124
0 votes
0 answers
485 views

Configure QUIC and HTTP/3 in Ubuntu

I want to install and configure nginx-1.19.0 with HTTP/3 support on Ubuntu 22.04. OpenSSL version is 3.0.2. I was surfing in internet but I didn't find something straight forward to guide me how to ...
Leotrim Lota's user avatar
0 votes
0 answers
71 views

Logging all http requests to domain

I bought a domain name and I would like to log what http requests it receives. Logging the requests headers, url, type and message body. Looking for an easy/affordable solution. Standing up an Apache ...
Nick's user avatar
  • 143
0 votes
0 answers
96 views

NGINX Rewrite path to subdomain with cloudflare results in Too many redirects

I want to achieve url rewrite as such: https://documentation.domain.com/login to https://app.domain.com/login https://api.domain.com/login to https://app.domain.com/login , any sudomain with url {...
Jason The Dynamite's user avatar
0 votes
1 answer
130 views

502 Bad Gateway nginx 1.20.1

I know why is this coming. But I don't know how to fix it. I was installing osticket following this article. https://www.vultr.com/docs/how-to-install-osticket-on-centos-7/ Turns out current osticket ...
achhainsan's user avatar
0 votes
0 answers
263 views

How to return the response Body of the server response instead of Nginx defaulte Error page

I have a api route which clients can call, lets call it /test Now in that /test route, i want to call /auth route to verify the authentication part, In side the /auth/ block there's a another auth api ...
Rajveer Singh's user avatar
0 votes
1 answer
48 views

NGINX: Redirect to Non-www address

I am trying to configure my website with NGINX. I'm a bit out of my depth and have tried all the relevant solutions I could find, so your patience is appreciated :) I want all http traffic to redirect ...
rbok's user avatar
  • 3
2 votes
0 answers
167 views

Docker nginx + php performance

I am using docker-compose to run an nginx container and a PHP container. I have a performance issue, where each 4th or 5th request to a simple PHP script takes several seconds (normally <<1s). I ...
Joaquim d'Souza's user avatar
0 votes
0 answers
50 views

Nginx: How to deny public access to endpoint in proxy_pass?

I have a subdomain app.example.com set up which connects to a phoenix/elixir backend project using sockets on port 4000 using proxy_pass. In my project, I have an endpoint called /admin/auth, which my ...
peppy's user avatar
  • 73
-1 votes
1 answer
69 views

Preview website without DNS like hostcx

I want to make a website like HostCX is this possible with Nginx Reverse Proxy and what is needed to achieve this? When the website google.com is entered it should not be checked based on DNS ...
Noob's user avatar
  • 99
1 vote
1 answer
113 views

How to serve php files from a folder outside of web root folder in nginx

When i go to url www.example.gr i want to load a form where i will be able to submit it to www.example.gr/php/mail.php. My files and folders structure is like this root folder ( /var/www/html/app/ ) ...
chris tsironis's user avatar
0 votes
1 answer
36 views

nginx download the latest file based on filename pattern

I upload my installer files with filename pattern app-installer X.X.exe e.g. app-installer 1.12.exe. Is it possible for nginx to pick the latest version for download link http://.../app-installer.exe? ...
frogatto's user avatar
  • 103
0 votes
1 answer
106 views

Nginx having multiple sites-enabled breaks nginx

I have a weird issue happening in my Nginx server. I am using Nginx as a reverse proxy for multiple services running on my servers internally. This is kind of what I was trying to accomplish: app1....
DevShadow's user avatar
  • 101
0 votes
0 answers
88 views

NGINX Mail proxy IMAP Auth Errors

I need some help getting NGINX to perform IMAP authentication as a reverse proxy into Postfix Mail server on-prem. I am seeing the tracking on my POSTFIX mail server, but IMAP continues to fail. seems ...
user2569708's user avatar
0 votes
1 answer
91 views

Nginx. Override header in cached object, is it possible?

My team uses nginx with cache. The problem is that the application in upstream sends some headers that we would like to override in the cached object. One can see the headers saved in the cached ...
Pier A's user avatar
  • 71
1 vote
1 answer
76 views

What steps can I take to troubleshoot why my server is not accessible over HTTPS after enabling SSL with Certbot?

I'm looking for assistance in diagnosing and resolving this issue. What steps can I take to troubleshoot why my server is not accessible over HTTPS after enabling SSL with Certbot? Are there any ...
Sri's user avatar
  • 13
0 votes
1 answer
29 views

Trying to run Security Onion on AWS behind an ALB (nginx behind ALB)

I've got a wildcard certificate for internal services. I'd like to run Security Onion behind an ALB so I can get valid SSL with a single certificate stored in certificate manager. (Storing it there is ...
jorfus's user avatar
  • 775
0 votes
0 answers
58 views

DirectAdmin Apache/Nginx Reverse Proxy Custom Subdomain Config

I have a particular application on a subdomain that needs a custom Nginx configuration to work. I am using DirectAdmin control panel to make per-domain customisations. However, I am getting confused ...
Mark's user avatar
  • 1
0 votes
1 answer
224 views

Nginx check if parameters exists and if so only allow specific values

I cant seem to find a way to limit some queries. Right now i have this if ($args ~* "(.*&)?page="){ set $wrongP W; } if ($args !~* (.*&)?page=(2|12|24)$){ set $wrongP "${...
Palioras's user avatar
0 votes
0 answers
22 views

self signed for a site accessible through VPN

I'd like to know if what I'm doing is right or is there another way to do this? I have this site that is accessible through VPN and i'd like the end users not to see the "not secured" ...
Reefo Relaxo's user avatar
0 votes
0 answers
28 views

Nginx missing trailing slash redirects to the wrong url behind proxy

We use an nginx webserver behind an nginx proxy. When i try to browse a subpath, the nginx backend webserver (something.example.local) appends a trailing slash behind the url (301 redirect) -as ...
5poharviz's user avatar
0 votes
1 answer
52 views

Get file exif data in NGINX

In the following code I'm setting some variables with info about the image (like the title, URL, etc.) location /photo { ssi on; ssi_last_modified on; set $photosrc /photos/$...
StuckDuck's user avatar
0 votes
1 answer
111 views

Nginx upstream reponse time occasionally very slow

I have a Ubuntu server that handles a lot of traffic and a lot of sites, occasionally Nginx takes a very long time to respond (20-30 seconds some times, and usually the request times out before that), ...
Julien's user avatar
  • 242
0 votes
1 answer
203 views

Showing images using a template .html file in NGINX

I'm using nginx to run my website's server. I'm currently using SSI (Server Side Includes) to have a common across the HTML files on my website which is working fine right now. So now I want to have ...
StuckDuck's user avatar
0 votes
0 answers
45 views

nginx load balancing without proxying trafic

I want to use nginx to load balance http traffic, but without proxying the traffic. Like this user > lb > server > user And not a standard proxy like user > lb > server > lb > ...
Freedo's user avatar
  • 143
0 votes
0 answers
25 views

no effect of cache-control no-store seen in nginx in chrome dev tools, why?

I first downloaded two images. Put them into /usr/share/nginx/html/img directory. One was named pic-1.jpg, another was named pic-2.jpg. Remember, I've not added any cache control headers till date. ...
achhainsan's user avatar
0 votes
0 answers
110 views

Utilising AWS Cloudfront for domain which listens on non-443 port

We have a www.domain.com which resolves to a AWS Load Balancer backed by AWS EC2 Nginx instance. www.domain.com:8888 proxies to a AWS backend web application. www.domain.com:443 serves static html ...
David QC's user avatar