1,986 questions
-1
votes
1
answer
51
views
Nginx ignores default_server and redirects direct IP requests to the wrong server block [closed]
My server runs Nginx behind Cloudflare (orange cloud enabled).
Direct domain requests are correctly proxied through Cloudflare.
However, direct IP requests still hit my real Nginx, and instead of ...
Best practices
0
votes
3
replies
48
views
I want to make "HTTPS proxy cache server" with nginx that controls large size of git source
i'm newbie in nginx and proxy server.
We have a problem about googlesource 429 Error, caused by many requests
and because of bandwidth, we took a long time to get googlesource.
We reviewed to make ...
0
votes
1
answer
38
views
Can't get Nginx to use one module over another
trying to setup NGINX as a forward proxy in my environment. I'm using the https://github.com/chobits/ngx_http_proxy_connect_module as it seems to be what people recommend for handling HTTPS traffic.
I'...
0
votes
1
answer
51
views
Redirect user to subdirectory in nginx based on cookie set earlier through wordpress
I have two wordpress sites installed under two sub-directories of the same domain. Each site is in a different language. English version example.com/en and Spanish example.com/es
These are served by ...
0
votes
1
answer
39
views
Redirect of www and http/s help in nginx [closed]
I've been working to understand nginx more from the configuration side. The thing I'm struggling with the most is primary redirect processes. Between handling the https and www redirects, my head is ...
0
votes
0
answers
27
views
i am not able to require the client to import their certification into nginx for mTLS
i have my backend server on node ts and hosted using docker with a reverse proxy with nginx .. all on ec2 my question is how can i require mTLS encryption from the user if i give him the certification
0
votes
1
answer
49
views
Nginix catch-all domain configuration file serves the default SSL certificate
I am building a domain name management app that handles multiple domain names and serves different landing pages based on the domain name.
I have set up a DNS system that works using PowerDNS, any ...
0
votes
0
answers
151
views
How to configure Nginx to prompt the user to select a client certificate from OS certificate store (e.g., e-Token on macOS/Windows)?
I'm trying to configure Nginx to require and request a client certificate during HTTPS handshake — specifically in a way that prompts the browser to show the user a selection dialog from the Keychain ...
0
votes
0
answers
181
views
NGINX cache always returning MISS in browser although its caching
I am trying to learn caching using nginx to cache my NEXT APIs. This is my
nginx.config
worker_processes 1;
events {
worker_connections 1024;
}
http {
proxy_cache_path /tmp/nginx/cache ...
0
votes
0
answers
141
views
How to exclude http requests for static files from nginx rate limiting
I'm using below nginx block. I want to exclude all requests for js and CSS files from nginx rate limiting. With my below nginx directives, rate limiting is excluded to all files apart from /api route. ...
0
votes
0
answers
22
views
Is VPS a keyword for Nginx conf?
In my Hostinger VPS, I found this in the default pre-configured Nginx, in sites-available :
server{
listen 80;
vps xxxxxx.hstgr.cloud;
The VPS keyword seems to replace the server_name but I ...
0
votes
0
answers
107
views
Forwarding CF-IPCountry Header to Backend with NGINX Ingress and Cloudflare
I’m currently running a GKE cluster with the NGINX Ingress Controller to manage incoming traffic. My domain is proxied through Cloudflare with IP Geolocation enabled, which adds the CF-IPCountry ...
0
votes
1
answer
46
views
SSL certificate for a sub domain showing not secure on a public network
I have multiple NextJs app and some Java backend API services that I deployed on a windows server e.g gigmobilitytest.accionmfb.com, octopustest.accionmfb.com etc. The application are naturally only ...
0
votes
1
answer
82
views
Nginx reverse proxy setup for redirects
I have an website running in https://localhost:7443/__admin. I have nginx running in the same host in https://localhost:8443.
I want the users to launch the webapp with the url https://localhost:8443/...
0
votes
0
answers
100
views
Nginx : Invalid condition "yes" in nginx.conf
I have an environment variable set as
vod_enable_encryption = yes
which I'm attempting to check using an If block in nginx.conf.
Nginx isn't able to resolve the condition and throwing the following ...
0
votes
0
answers
82
views
nginx wont proxy_pass to service on 127.0.0.1:8080 with ssl
I am trying to proxy_pass to a local service (fossil scm) on http://127.0.0.1:8080.
http://scm.domain.de and https://scm.domain.de returns ERR_CONNECTION_REFUSED.
https://scm.domain.de:8080 returns ...
0
votes
0
answers
71
views
How do I return a response from the destination server in case of an error in Nginx?
I need to always return in case of errors. 400, 401, 403, 404, 500... my html pages with errors if the response is from the destination server is text/html, otherwise I can return the server's ...
0
votes
0
answers
42
views
Nginx serves files at root (/) but not at subpaths (/admin, /user)
I have set up Nginx on my server to serve static files for a front-end application. The root URL (http://xxx.85.127.14/) correctly serves files, but when I try to access http://xxx.85.127.14/admin I ...
0
votes
0
answers
84
views
How to correctly set up Nginx in a server with all applications running in Docker
I have been trying to figure out how to setup nginx correctly for a long time without success. All my searchs on the internet have given me the same answer, but it does not work.
My objective:
I want ...
-1
votes
1
answer
72
views
Nginx DNS Resolver in docker depend on the conditions of the transformation
I want to understand why this happens. When I use proxy_pass without regular expressions, everything works great, the DNS is resolved, and so on.
location /images/ {
proxy_pass http://sfs-...
1
vote
0
answers
48
views
How do I get non-dockerized Nginx (with SSL) to reverse proxy to dockerized backend (docker composed Springboot with Postgresql)?
I have set up Nginx to run on a VPS server and installed SSL using LetsEncrypt. Both Nginx and LetsEncrypt are typical standard installation on the server machine running Ubuntu. I then loaded ...
0
votes
0
answers
40
views
Returns 404 for only 1 route via nginx
this is my nginx.conf file, my react app is hosted on nginx and calling api endpoints, my api end points starts something like this
https://export.
https://report.
etc.
9 out of 10 endpoints are ...
0
votes
0
answers
79
views
In Safari, requests without a trailing slash are not redirected to those with a trailing slash
I am serving static content with Nginx, and I have a question about the behavior of requests without a trailing slash. While everything works fine in Chrome, Safari behaves differently.
When I access ...
-1
votes
1
answer
242
views
trouble reaching localhost with docker/nginx
I'm trying to set up a local dev environment with docker and nginx. I'm new to both. I have one directory with the config files (docker-compose, nginx.conf, and dockerfile and a sub-directory with php ...
1
vote
0
answers
78
views
the wordpress admin page does not work with my nginx configuration
I installed Wordpress and my site in the /var/www/html/guce directory; and when I put root on my nginx configuration the wp-admin admin page does not work, when root is put on /var/www/html; It works ...
1
vote
0
answers
63
views
Url.Link() in ASP.NET app behind reverse proxy returns wrong host/port
I have a ASP.NET Web API controller which inherits from a custom class which in turn inherits from System.Web.Http.ApiController. In one of my actions, I return a URL to another action of the same ...
0
votes
1
answer
197
views
Why nginx log rotation works on access but not on error log
I know that I can use logrotate to rotate the logs of NGINX, but for me it represents an additional configuration file to deploy, so if it can be avoided its better...
I found some answers to include ...
0
votes
1
answer
1k
views
MIME type issue with nginx and pdf files
So I wanted to create a web application in angular that, amongst other things, shows pdf files to the user. The pdf files are stored in a database, and are retreived by and sent to the user with a ...
-2
votes
1
answer
72
views
How to serve static files for a special user
i have a page where the user has static files (pdf) and images (created from the pdf on)
there is a structure like
/files/user1/img/foo.jpg
/files/user1/pdf/foo.pdf
/files/user2/img/bar.jpg
/files/...
0
votes
0
answers
20
views
Problem: Inconsistent CORS headers despite unified configuration
Problem Description
In a FastAPI application with Nginx as reverse proxy, I'm receiving inconsistent CORS headers in responses, although the requests are successful.Identical GET requests to the same ...
-3
votes
1
answer
68
views
Load-balancing using nginx over orderers in Hyperledger Fabric
I created a network using Hyperledger Fabric and Docker. There are 3 orderers and 2 organizations in this network. I will test this network with Hyperledger Caliper. The network and Caliper are ...
0
votes
0
answers
48
views
React, Django. Gunicorn, nginx , docker setup for production ready and not ablet to server static files for both frontend and backend
This is the current project director for my project as of now
Project/
│── .env
├── docker-compose.yml # Docker Compose configuration file
│
├── Frontend/ # React ...
0
votes
0
answers
32
views
How do I configure nginx for proxy_pass and ssl redirect?
I'm using this guide to set up nginx to serve a dash application, but unable to connect to the webserver with https. Here's my nginx.conf file:
events {
worker_connections 1024;
}
http {
...
0
votes
1
answer
53
views
Nginx: Prevent /index from being appended to the root URL with .html rewrite rule
I'm serving a static HTML site with Nginx using the following configuration:
server {
# some configs
# Web root and file handling
location / {
root /var/lib/jenkins/workspace/test;...
-1
votes
1
answer
90
views
How do I force nginx basic authentication for files starting with a certain mask?
I want my nginx instance to switch to basic authentication when serving all files starting with /dev-*.* mask.
For example, if the /dev-phpinfo.php is requested, only a specific user may be able to ...
0
votes
0
answers
85
views
Blank page in Laravel/PHP + Nginx app configured in Dockerfile deployed by Cloud Run
Deployment of the laravel app all seems fine and the docker builds successfully but when I try to access the root page, all I see is a fully blank screen even though the logs seem okay?
Dockerfile:
...
0
votes
0
answers
220
views
How to mask/hide URL with Nginx Proxy Manager?
First of all, thanks in advance for taking some of your time to read this.
I would like to get some help.
I'm using Nginx Proxy Manager Proxy Hosts option to convert this: http://10.0.0.10:3001/status/...
0
votes
1
answer
308
views
The POST request body as part of the cache key in NGINX caching is not working as expected
I am attempting to use NGINX as a reverse proxy in front of a GraphQL server and leverage NGINX caching. In my configuration, I intend to cache the response of POST API requests, considering both the ...
0
votes
0
answers
18
views
I am trying to serve my Nodejs API using nginx server blocks
My app is running on port 3000, but when try to access my endpoints via my https://site-url, the errorlogs show that i am trying to access static files and i get response from my API,can anyone help ...
0
votes
0
answers
24
views
NGINX subdomain config causing too many redirect
I am having issue where my portfolio website which in on my domain works fine but the subdomain giving me too many redirects.
my config for therohankumar.com
server {
listen 80;
listen [::]:80;...
1
vote
1
answer
56
views
Nginx listens http but not https
here is my nginx config file,
server {
listen 80;
server_name api.xxxx.io;
client_max_body_size 50M;
listen 443 ssl;
ssl_certificate /etc/nginx/ssl/public.crt;
...
1
vote
0
answers
244
views
Combine Basic Auth and Bearer token in nginx reverse proxy
Nginx reverse proxy configuration
upstream frontend {
server frontend:4200;
}
upstream backend {
server backend:4000;
}
server {
listen 80;
location / {
auth_basic "...
-1
votes
1
answer
58
views
GitLab Accessible via IP but 404 Error with Domain Configuration through Nginx Proxy Manager
I have installed Nginx Proxy Manager (as a Docker image) on 192.168.1.124 and added my GitLab server located at 192.168.1.186. When I set external_url in the gitlab.rb file to http://192.168.1.186, I ...
0
votes
1
answer
66
views
Get content removed file nginx config when haven't restarted nginx
I accidentally deleted the nginx configuration file named 'content' without an extension. I haven't restarted nginx yet. I tried using nginx -T but it didn't reload the content of the deleted file. I'...
0
votes
0
answers
53
views
Do I need to use REGEX/URL rewriting for my BeEF / Nginx reverse proxy config?
I am running BeEF on an Nginx Virtual Server, behind Nginx which is acting as a reverse proxy. Furthermore, the webpage which the BeEF hook will sit on is also on a separate virtual server, also ...
1
vote
0
answers
137
views
Nginx proxy changing POST requests to GET on upstream server
I'm using Nginx as a reverse proxy with SSL to route requests to a backend server. However, when I send POST requests, they’re received as GET requests on the backend.
server {
listen 80;
...
0
votes
1
answer
55
views
Conceal nginx based servers [closed]
I am setting up a server running nginx and I need some configuration tips. For example, my goal is to ensure only people accessing the correct subdomain with main domain is given access to my nginx ...
1
vote
0
answers
116
views
NGINX not forwarding custom headers from authentication service to backend service
I’m using NGINX as a gateway to forward requests from some client to a backend service, with an authentication service in between. The authentication service do nothing for now just response 200 and ...
1
vote
1
answer
43
views
Creating an nginx redirect while removing two subdirectories from the path
I have the following nginx redirect which needs to redirect all requests to a different domain name. It works fine.
However the request url will be like:
https://example.com/abc/123/TOKEN
How can I ...
0
votes
0
answers
55
views
How do I setup a global error.php page for NginX
I have a setup with 10-20 virtual servers.
I want to have an error file that ALL the 404 (or 403) errors from any virtual site will go and I want that file to be php not html.
And when I say all, I ...