All Questions

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

How to route requests with the same query parameter to the same backend servers?

I have three Nginx reverse proxy servers with ModSecurity installed acting as WAF servers which route requests to my Kubernetes Cluster ingress-nginx, Istio service mesh is installed on the Kubernetes ...
Sinux's user avatar
  • 85
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
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
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
87 views

Http outperformed Http2 ,why, please help me to figure out?

I'm currently conducting performance testing on my NGINX web server container and I'm encountering some unexpected results. My tests show that HTTP performance is outperforming HTTP/2, despite SSL and ...
Mhd HZ's user avatar
  • 1
0 votes
1 answer
43 views

map nginx $http_MyHeaderName to port

I want to create a mapping on nginx between $http_MyHeaderName and $port. I have much local hosted IIS sites and depending on header value nginx has to send request to one of them. Config: map $...
Сергей's user avatar
0 votes
0 answers
127 views

In NGINX, is there a directive to limit the time it takes to establish new client connections?

In Nginx there's the client_header_timeout directive that sets a timeout for receiving the complete headers of an http request from a client. In the docs it is not specified if this timeout includes ...
user2464424's user avatar
0 votes
1 answer
843 views

Redirect http calls inside iframe to https using nginx

I have an https website that needs to render an iframe of a external website that only works with http. The external http endpoints is all inside a url like: http://external-website.com/foobar Browser ...
Alan Nicolas de Oliveira's user avatar
0 votes
0 answers
187 views

javascript and css files are encoded in nginx

I have a reverse proxy that returns only the javascript and css in some encoding. I do not know if it is encoded or just not decompressed. This is wat the server returns: ���^ style.css��;ks�:��;S��d�...
somedude's user avatar
1 vote
1 answer
82 views

Redirecting specific subdomain with NGINX to point to a different website while using SSL

I have the following NGINX configuration: # HTTP Redirect server { listen 80 default_server; listen [::]:80 default_server; server_name _; return 301 https://$host$request_uri; } # ...
Rietty's user avatar
  • 113
0 votes
1 answer
679 views

Serve file using nginx web server

Hi I have static file (song.mp3 under /song directory in the VM) that I would like to serve under path /song using nginx web server. If anybody visits the path in browser, the file should start ...
user89978's user avatar
0 votes
0 answers
90 views

Serving Static files from different folders

How can I publish multiple folders on a server to different locations or disks on a server? Example... mydomain.com/files I want /files to be able to see the contents of folders in c:/myvideos or f:/...
Jhon Lozano's user avatar
0 votes
0 answers
102 views

Nginx Downloads Slow From Browser - CURL/WGET Are Fine

I'm trying to serve large files (50-800mb) from a VPS using Nginx to host map files for a game server. Oddly, when downloading map files in game or in a browser I'm hitting only ~15mbps. When ...
user3731591's user avatar
1 vote
2 answers
459 views

404, 50x error handling HTML pages in nginx is not detected

nginx version: nginx/1.18.0 This is my 'nginx' conf default 'vhost': cat /etc/nginx/sites-enabled/000-default server { listen 80; listen [::]:80; server_name example.org; return 301 ...
Mévatlavé Kraspek's user avatar
0 votes
1 answer
316 views

Redirect nginx port 80 to http2 443 fails [duplicate]

Searched tons of links on the web, I don't get why this conf doesn't redirect properly from http://example.com to https://example.com My nginx conf: # HTTPS server { listen 443 ssl http2; ...
Mévatlavé Kraspek's user avatar
0 votes
1 answer
727 views

map nginx $request_uri to port

I want to create a map between nginx $request_uri and $port I have many location and each location works with its own port. for example I have: location /path1 { proxy_pass 127.0.0.1:10000 } ...
FIFO's user avatar
  • 1
1 vote
1 answer
5k views

What's the difference between Nginx 'keepalive_time' and 'keepalive_timeout'?

In official Nginx docs a new directive added since v1.19.10 named keepalive_time 1h: Nginx keepalive_time Doc Limits the maximum time during which requests can be processed through one keep-alive ...
Mohamad Reza's user avatar
0 votes
0 answers
364 views

Safari can't open my http link to my website

So I have a basic Nginx configuration that redirects any request to my site to www and HTTPS: server { listen 80; listen [::]:80; server_name www.goodjobs.ro goodjobs.ro; return 301 ...
Alex Totolici's user avatar
0 votes
0 answers
101 views

Add ssh to nginx configuration file

Is there a possibility to use the nginx utility tool for redirecting requests for the services of my Docker-based application to the HTTP port 80? The implementation contains three services, one of ...
Alin's user avatar
  • 1
0 votes
0 answers
129 views

fatal: repository not found (git + http + nginx + fastcgi)

I am trying to serve git repositories using Nginx. I have the following configuration for Nginx server: worker_processes auto; error_log /var/log/nginx/error.log notice; pid /var/run/nginx.pid; ...
enriquesb's user avatar
0 votes
0 answers
386 views

nginx regular expression reverse proxy location

I try to create a location based reverse proxy. My config does not work as expected. It should pass every request that is made to /api & /auth to the backend, and everything else to the frontend ...
Marc's user avatar
  • 127
1 vote
1 answer
419 views

I need to redirect http to https connection with nginx on rest service and need to test it on postman or soapui

here is my nginx.conf file: What should i change to make it work and how to get certificate user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; # Load dynamic ...
Boro's user avatar
  • 31
0 votes
2 answers
3k views

Access nginx from local network

I have nginx running on ubuntu and PHP and can access it remotely at example.com. I am doing some development work and which to access it from another machine on the same network, and ideally would ...
user1032531's user avatar
1 vote
0 answers
3k views

Nginx - remove HTTP Header from response

Hey guys. I have the following question: Is it possible to remove or change the value of a header that was added a few lines earlier? Here is the whole scenario: Setup my-website.com.conf ... server { ...
bananensplit's user avatar
0 votes
1 answer
463 views

nginx allow sending redirect from app to client

I am trying to redirect a user back to my mobile-app after successful login. (linking back to the app) For this, I send a 307 response with this link: exp://192.168.178.33:19000?steamId=...
greterpiffin's user avatar
2 votes
2 answers
544 views

How to disallow IP-based HTTP URL accesses to an Nginx webserver?

For example, my server is at Internet-accessible IPv4 address 192.0.2.4. The associated DNS name is my-website.example. I would like to block an HTTP client that attempts to access https://192.0.2.4/. ...
JamesThomasMoon's user avatar
0 votes
0 answers
606 views

Downloading large excel file in angular using xlsx library(net::ERR_INCOMPLETE_CHUNKED_ENCODING 200)

I am doing an excel file download using angular + springboot and the api returns application/json file. The transfer-encoding:chunked is always enabled and i see responses return http 1.1 . I posted ...
user2868864's user avatar
1 vote
1 answer
1k views

What happens to existing HTTP and Websocket connections when the NGINX configuration reloads?

Let’s say we have a pretty standard blue/green deployment setup. NGINX is currently proxying all traffic to the live server (BLUE). We then deploy an updated version of our code to the idle server (...
rationaltiger24's user avatar
0 votes
0 answers
1k views

Nginx server response time is unexpectedly high for one in hundreds of requests

I'm using Nginx to serve .ts files for live streaming (HLS). Everything works fine but there is a problem with the response time of the files. Occasionally, some .ts files received from the server ...
SH Rahgoshay's user avatar
0 votes
0 answers
167 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 ...
AtomX's user avatar
  • 125
5 votes
3 answers
10k views

Risks of enabling nginx upstream keepalive

Using nginx as HTTP reverse proxy for Apache with PHP backend (I need .htaccess flexibility for webmasters). Seeing http/1.0 used in Apache logs made me look up on how to enable keep-alive connection. ...
logut's user avatar
  • 53
0 votes
0 answers
709 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
1 answer
596 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
1 answer
479 views

nginx empty response after reboot

I bought a new VPS, installed Ubuntu server 20.04, nginx,php7.4-fpm,MariaDB via apt. I scp uploaded my (working on my Ubuntu 20.04 laptop) PHP project. I could see the 'thank you for using nginx' page,...
Sam's user avatar
  • 25
0 votes
3 answers
2k views

NGINX routes to the wrong virtual host when Host header contains colon character

My nginx.conf has several "server" sections, and a catch-all server section. Here is an example nginx.conf to give you an idea: user www-data; worker_processes auto; worker_cpu_affinity auto;...
Pēteris Caune's user avatar
1 vote
0 answers
740 views

Nginx Redirect from HTTP to HTTPS works in Firefox but not in Chrome

with my Nginx configuration (see below) redirecting from http to https works fine when accessing the page (http://example.com/) with Firefox. But for some strange reason it does not work with Chrome. ...
tab269's user avatar
  • 11
3 votes
2 answers
13k views

Use multiple server blocks in NGINX on same host and same port

I want to configure the server such that the root of the server serves some static files, which a specific endpoing, /nextcloud serves nextcloud on the same domain. Here is my nginx.conf - ...
sealionuss's user avatar
0 votes
0 answers
166 views

Bizarre intermittent, but long lasting failure to connect to just one server

I have a bizarre connection issue with just one server that I have no idea how to diagnose. Basically I'm setting up a self-hosted email service using iRedMail and everything works fine for a while ...
Brad Robinson's user avatar
0 votes
1 answer
1k views

CentOS - make Samba share available via nginx

I have a collection of files on a Windows share named \\winserver\bucket. On a CentOS server, I am able to mount it so the content is available for perusal. I created an empty directory named /mnt/...
Tony's user avatar
  • 101
0 votes
0 answers
173 views

http request via https

Here is a scenario - http request are sent from monitoring client to an address like https://something.com:9443 which on the other end is (though) handled by nginx configured only as http server. If ...
pMM's user avatar
  • 1
0 votes
0 answers
743 views

Nginx proxy_pass to http or https different behavior

Good day! We have a nginx-based proxy with next config: server { server_name proxy; listen 80; underscores_in_headers on; access_log /var/log/nginx/access.log bodylog; location / { ...
Alexey's user avatar
  • 1
0 votes
1 answer
88 views

Assume platform performance based on Nginx - ngx_http_stub_status_module

Nginx is placed in front of a microservice architecture on which we don't have any insight. We retrieve the metrics exposed by the http stub status and would like to compute an indicator of the ...
PierreJ's user avatar
0 votes
0 answers
1k views

What are NGINX reverseproxy users doing to prevent HTTP Request smuggling?

Since NGINX does not support sending HTTP/2 requests upstream, what are the present NGINX reverseproxy users doing to mitigate HTTP Request Smuggling vulnerability? I understand that the best way to ...
Sai Vishnu's user avatar
0 votes
2 answers
240 views

How to make nginx receive and send data to both server1 and server2?

I have nginx as reverse proxy. I want to send data to both server, not just one not load balancing (just send data that it receive from port 80 to server1 and then server2). Server1 will be a web ...
JUDQ's user avatar
  • 1
2 votes
1 answer
781 views

Is rate limiting delay included in nginx $request_time?

If requests are delayed by nginx rate limiting (rate limit exceeded, but within burst rate), is this delay included in the nginx $request_time total? The nginx docs state that $request_time is "...
vezult's user avatar
  • 430
1 vote
0 answers
2k views

nginx 502 error for api call from application but working in postman and curl request

Environment: Laravel Version: 5.8.29 PHP Version $ php --version: PHP 7.2.24 (cli) NGINX Version $ nginx -v: nginx version: nginx/1.14.0 (Ubuntu) Problem Statement: Everything works fine, except for ...
Maqsud's user avatar
  • 111
0 votes
1 answer
59 views

Create a proxy server

I want to create a HTTP and HTTPS proxy server, to use with cURL curl -vvv "ifconfig.me" -x user:password@myproxy:8000 I am trying Nginx, but I can not get to work with user and password, ...
Rodrigo's user avatar
  • 55
1 vote
1 answer
262 views

Nginx try_files doesn't work inside server block

http { include mime.types; default_type application/octet-stream; server { root /websites; listen 80; server_name localhost; # don't work try_files /logo.png /logo.jpg /error; ...
Safar Safarli's user avatar
1 vote
1 answer
2k views

uWSGI aborts responses, loses connection to nginx

I'm running a small web application written in Python, running in uWSGI and served through nginx. There's a component that generates ZIP files for downloading, which occasionally can be quite large (...
Felix's user avatar
  • 46
3 votes
1 answer
500 views

Can I listen to multiple domains in one ip on HTTP/3?

I'm using NGINX. I found that NGINX throws error when I set multiple domains for one HTTP/3 port. server { listen 443 http3 reuseport; listen 443 ssl http2; server_name ...
lunuy lunuy's user avatar

1
2 3 4 5
9