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

Nginx TLS setting conflict

I want my Nginx's SSL on the default website only support TLSv1.1 to achieve the effect of the browser's "unsupported encryption protocol" preventing others from directly access my source IP,...
nightisovered's user avatar
0 votes
0 answers
2k views

How to setup content range in NGINX?

I use django framework and I try to setup NGINX that server play video in browser chunk by chunk. nginx.conf proxy_cache_path /tmp/mycache keys_zone=mycache:100m; server { listen 80; ...
affil's user avatar
  • 1
0 votes
0 answers
66 views

How to enable SSL for app running inside Portainer like port 3000? [duplicate]

I have portainer running on Ubuntu on port 9443 SSL and I am running docker images inside portainer and one of them uses port 3000. But wondering how to make it so it can run on SSL on port 3000. My ...
Scott Yu - builds stuff's user avatar
0 votes
0 answers
2k views

Why does Nginx only respond on Port 80?

I tried to change nginx' port 80 to 81 in nginx.conf file but my sample site is not responding despite listening to port 81. The sample website only responds on port 80. Also , sample site on http://...
Cihat Şaman's user avatar
0 votes
0 answers
696 views

Nginx chrome ERR_SSL_PROTOCOL_ERROR when not trying to use ssl

I've set-up Nginx both default and a config in sites-enabled and yet I get ERR_SSL_PROTOCOL_ERROR when trying to connect. I never configured anything to use ssl and trying to connect with http results ...
K1ll3rM's user avatar
0 votes
2 answers
5k views

How can I configure my nginx server to accept different subdomains and also port?

I have a server running on Ubuntu/Nginx. I have subdomains running from different internal ports. I want to expose one application to the public but not associate it with any domain/server name. Below ...
Albert Alberto's user avatar
0 votes
0 answers
155 views

does anyone have a solution for me to access a subfolder of my application behind nginx proxy?

I have two servers with different IP addresses: Tomcat serving my webapp https://app1.domain.com (centos6) Nginx acting as waf via https://nginx.domain.com (centos7) Nginx is running on port 443, ...
user11665472's user avatar
0 votes
0 answers
2k views

wildcard url in ingress-nginx kubernetes Ingress to redirect to path based url doesn't seem to pass regex value

Trying to setup a wildcard url in ingress-nginx kubernetes Ingress to redirect to path based url it doesn't seem to pass the wildcard regex value. The url would be something like "https://test....
nnarcise's user avatar
0 votes
1 answer
5k views

Configure nginx to serve query string parameter

We have one NextJs site, with next export we get one out folder which we want to serve from Nginx. In out/login there is one '[[...parameter]].html'. When we deploy site using pm2 it is working if we ...
Satish Lamak's user avatar
0 votes
1 answer
850 views

How to serve phpMyAdmin to localhost/phpMyAdmin instead of localhost:8080 using nginx in docker

In my project, I am using Django and nginx, but I want to manage my cloud databases through phpmyadmin. Django is working fine but I can't do the same with phpmyadmin because it is running in apache ...
Ram Awasthi's user avatar
0 votes
1 answer
2k views

NGINX reverse proxy upstream not connecting to specific port

I am trying to get to one of the backend servers, but I am getting this error: 27#27: *21653 connect() failed (111: Connection refused) while connecting to upstream, client: 84.255.55.25, server: ...
Nathaniel Cutajar's user avatar
0 votes
1 answer
313 views

NGINX Reverse Proxy And Cache MS Graph API

I'm building a web based company directory which has roughly 450 employees. The data source being used is the Microsoft Graph API (Azure AD). This API requires you to make a request for every employee ...
Justin's user avatar
  • 113
0 votes
1 answer
905 views

nginx giving 500 for images and for some api's

We have a site deployed on crafter, when we access it directly with "IP:port" it works fine. But when we are accessing it with Nginx reverse proxy, it gives 500 for images and other api's. ...
Satish Lamak's user avatar
0 votes
0 answers
1k views

coturn server behind nginx reverse proxy not gathering candidates

I am trying to deploy coturn on a server which is behind a restricted network, with only ports 80 and 443 (TCP) allowed. As I have several services working in the same server, they are all behind a ...
pabpazjim's user avatar
0 votes
0 answers
190 views

Apache2 behind NGINX: MOD_REWRITE only works without HTTPS

For days I can't get my head around the following problem: We have an application (Faveo) which has two requirements for going through the setup wizard: HTTPS & MOD_REWRITE. Faveo is running on ...
HeadKnockr's user avatar
0 votes
0 answers
377 views

How to reverse proxy to a container then through domain name to access the site

I set up a WordPress site with docker composer via Portainer. The site can access by the IP address. How can I set reverses proxy and access the site by domain? I tried to put the proxy block in the ...
Kevin wang's user avatar
0 votes
0 answers
2k views

Nginx with SSL behind another Nginx (with nginx-proxy)

I have two VMS. The first is VM1 and the second is VM2. The first is a VPN server and the second is a client. On VM1 the Nginx is installed as a reverse proxy from the official Docker repository. On ...
Kirill Gonchar's user avatar
0 votes
0 answers
294 views

How do i redirect proxy nginx?

I am running 2 geoserver and nginx container. I want to call https://xxx.xxx.com/geoserver the other one https://xxx.xxx.com/geoserver2. The geoserver containers are running behind proxy container. ...
nginxfault's user avatar
0 votes
0 answers
2k views

nginx alis works but it is not returning correct mime type

I have setup one nginx rule location ~ /(sitemap.*) { alias /var/www/html/sitemaps/$1; } This works good for cases that I want like example https://example.com/sitemap-1.xml returns ...
Kristi Jorgji's user avatar
0 votes
1 answer
564 views

How to disable postgresql port for out-server connection?

I installed on my dedicated server ubuntu 20.04, docker, and container with postgressql. I have problem beacouse I want that ubuntu blocked all connection with postgressql, out-server from domain, ip ...
mxcdh's user avatar
  • 121
0 votes
0 answers
127 views

Creating a new reverse proxy configuration in Nginx routes to a different config

I have been banging my head on the wall with this. Any help that can be offered would be greatly appreciated. I have handful of websites/services running on various different servers. I have a reverse ...
sammo22's user avatar
0 votes
1 answer
154 views

Nginx Redict without modifying url

I want to make a redirection from one domain to another but from one page only. Example: https://domainA.com/site/page to https://domainB.com/site/page In nginx I put: location /site { ...
Isaac Palacio's user avatar
0 votes
0 answers
1k views

using virtual subdomains on nginx on localhost laragon server to be dynamic

i have this config file domain.beta.conf server { listen 80; listen 443 ssl; server_name ~^(www\.)?(?<version>(.+\.))?domain.beta$ domain.beta root "X:/xx/www/domain" ...
yvgwxgtyowvaiqndwo's user avatar
0 votes
1 answer
609 views

Forward HTTP (or TCP) request through NGINX using subdomain to a specific port

I want to expose a local web server through a remote webs server. The remote host has already an Nginx and a web application (webmail). The remote server works as a gateway for the local webserver who'...
ender.an27's user avatar
0 votes
0 answers
53 views

How to not redirect if images are located in specific subdirectory with nginx?

I current;y have configured to redirect if a user tries to direct access images by browser for all images but I don't want them redirected if the images are located in a specific subdirectory which is ...
TravelWhere's user avatar
0 votes
1 answer
2k views

Can't start Nginx, Brotli configuration error

I have a nginx server setup as a reverse proxy for apache2 on a Debian 9 OS. Apache2 is running on a different port than 80. I was trying to renew my site's certificate using certbot, and I ran this ...
Talha Imam's user avatar
0 votes
2 answers
2k views

Force nginx reverse proxy to resolve AAAA record only (and ignore A record) of a domain?

I am trying to use nginx on my VPS (mydoamin.com with A and AAAA record) with public static IP address (both IPv4 and IPv6) to create an IPv4-to-IPv6 proxy to make a IPv6-only home server reachable ...
muede's user avatar
  • 1
0 votes
0 answers
2k views

What is the ideal value for threads on thread_pool in nginx config?

I have a machine with 2x CPU 24 Cores, 48 Threads Total: 48 Cores, 96 Threads. My nginx default configuration came configured with threads=32 thread_pool pool_name threads=32 max_queue=0; Should i ...
melk's user avatar
  • 1
0 votes
0 answers
894 views

How to pass https requests to http in nginx

I have a self signed certificate, I deployed my front end react app on nginx which is served by using HTTPS but front end is making call to back-end spring-boot app over HTTP and when i check inspect ...
Satish Lamak's user avatar
0 votes
0 answers
316 views

Disable module for specific site or enable module for specific sites

I'm running nginx-1.21.4 with dav-ext module compiled in nginx as dynamic module. The thing is this module intereferes with Nextcloud SabreDAV functionallity so I would like to know how (1)how to ...
peris's user avatar
  • 508
0 votes
1 answer
1k views

Can’t login through webdav on nginx

EDIT Nextcloud builds its own Webdav implementation, Sabredav. Could it be the following nginx modules be interfering? --with-http_dav_module --add-module=/var/tmp/nginx-dav-ext-module Someone knows ...
peris's user avatar
  • 508
0 votes
0 answers
852 views

Limiting upload bandwidth in Nginx

I'm trying to limit the upload rate (bytes/second) for a downstream client connected to an Nginx proxy. I'm managed to do this through the configuration below, but I'm not sure if this is the best ...
lbj-ub's user avatar
  • 101
0 votes
0 answers
4k views

Conteinerized Keycloak behind Nginx reverse proxy requests localhost

Working setup I have a configuration of external VPS with public IP that has Nginx reverse proxy (A) internal server with Nginx (B) standalone application (not containerized) Keycloak 17.0.1 Which ...
hrust's user avatar
  • 101
0 votes
0 answers
152 views

Sync a local file with server to be served

I have a little website which serves a pdf file using nginx. I change the file once a week and I need it to sync with the file that's on the server. My approach was using scp (ssh), however, I can ...
Frogieder's user avatar
0 votes
1 answer
633 views

Nginx www does not work

I really do not know why my nginx configuration does not work for www. My configuration is: server { listen 80; server_name postimg.cz www.postimg.cz; return 301 https://$server_name$...
Bazim's user avatar
  • 1
0 votes
2 answers
934 views

301 redirect url based off of a category in the url

Does anyone know how to redirect a url that contains a parent category of a product? Basically I want to redirect a ton of products to a simple landing page that I created, so instead of making ...
nightcrew's user avatar
0 votes
1 answer
2k views

Setup A Default Redirect In Nginx

I need a way to redirect clients when no existing path is defined. When I put a return 301 config in, nginx seems to ignore any location configs. It redirects everything. The hostname in the ...
Coldburn's user avatar
0 votes
0 answers
424 views

How to redirect nginx based on sub path?

I have grafana and jenkins running on same azure vm. For jenkins: http://localhost:8080 For grafana: http://localhost:3000 I thought to set nginx in such a way. customdomain.com/grafana should go to ...
user2331760's user avatar
0 votes
2 answers
985 views

How to disable 8080 external access to jenkins?

I have installed nginx along with jenkins on ubuntu 21 machine. Configured nginx to redirect 80 traffic to 8080 using the steps in this link Now, able to redirect the traffic from 80 to 8080. So, to ...
user2331760's user avatar
0 votes
1 answer
827 views

What is the Apache equivalent of Nginx set_real_ip_from and real_ip_header for proxy protocol?

Nginx has set_real_ip_from and real_ip_header proxy_protocol directive to restrict the trusted IP address of the TCP load balancer. https://docs.nginx.com/nginx/admin-guide/load-balancer/using-proxy-...
Waiho's user avatar
  • 23
0 votes
0 answers
151 views

NGINX location block pipes everything to index.php except images

I have an API server that pipes all traffic to an index.php script that uses the PHP $_SERVER['REQUEST_URI'] variable to interpret the URL and serve up the correct response. This works perfectly for ...
andrewniesen's user avatar
0 votes
0 answers
2k views

Real Client-Ip with Cloudflare, Docker, Traefik and nginx set up as a mail proxy (Client-Ip in PHP script, not in upstream mail server)

I set nginx as a mail proxy, but i have trouble detecting the real Client-Ip in the php authentication script called by nginx via auth_http. I am not interested in getting real-IP on the upstream mail ...
Frugan's user avatar
  • 141
0 votes
1 answer
1k views

Can not redirect https with upstream directive

With such config a I get redirecting to google.com server { listen 80; proxy_ssl_server_name on; rewrite_log on; location / { proxy_pass https://google.com; } } but if I ...
Artem's user avatar
  • 101
0 votes
0 answers
302 views

Configuring virtual host subdomains on a Digital Ocean server using Nginx

So I just installed and configured Nginx 1.20.2 on my Digital Ocean Ubuntu 18.04 instance. I have purchased a domain through Namecheap, let's call it testdomain.io. I wanted to be able to access my ...
user avatar
0 votes
0 answers
73 views

How to redirect to /index.php?/Test/ in nginx?

I have a nginx server. I want to redirect /index.php?/Test/ request to another server. I tried many example but I don't successfully. I used example: location / { if ( $query_string = "/Ajax/...
M. Jeremy's user avatar
0 votes
0 answers
2k views

Error 502: Deploy Django application with Gunicorn and Nginx

I have developed a web application with Django and I am trying to publish it in a virtual machine created with Azure. To do that I'm using the following software stack: Ubuntu (20.04) Django (3.0.7) ...
El_Merendero's user avatar
0 votes
1 answer
831 views

Nginx reverse-proxy pass front-end application matching url from HTTPS to HTTP

I everyone. I'm very new to Nginx. My situation is like this. I have a Php application which that handles both backend and front-end, and also I have another ReactJs application as a micro-frontend ...
Dananjaya Ariyasena's user avatar
0 votes
1 answer
181 views

nginx reverse proxy sending links in http

I have an nginx reverse proxy running based on the working setup here. It is sending the page to our backend (apache) correctly except the page comes back with all links in http (page itself is https)...
chanc's user avatar
  • 1
0 votes
0 answers
460 views

Rewrite rule not woking on Nginx

I want to redirect from /sitemap.xml to /sitemap_index.xml. So, I contacted the plugin developer and received the following rewrite rule. # START Nginx Rewrites for Rank Math Sitemaps rewrite ^...
cheonmu's user avatar
  • 35
0 votes
1 answer
3k views

Nginx reverse proxy reach my site but can't get pictures

I've been struggling for 3 days with Nginx reverse proxy to realize i think, a easy thing. I have to simply reach many backend node-red (nodeJS) application from Nginx but always, with different ports....
dinastar66's user avatar

1
256 257
258
259 260
345