All Questions
409
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 $...
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 ...
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 ...
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�...
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;
}
# ...
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 ...
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:/...
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 ...
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 ...
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;
...
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
}
...
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 ...
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 ...
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 ...
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;
...
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 ...
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 ...
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 ...
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 {
...
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=...
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/. ...
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 ...
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 (...
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 ...
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 ...
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.
...
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 ...
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$...
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,...
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;...
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.
...
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 -
...
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 ...
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/...
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 ...
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 / {
...
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 ...
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 ...
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 ...
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 "...
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 ...
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, ...
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;
...
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 (...
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 ...