Questions tagged [nginx-reverse-proxy]
283 questions
0
votes
0 answers
Create SSH tunnel and route MySQL traffic through using NGINX reverse proxy
My company's goal is to route MySQL traffic through an SSH tunnel, but using a reverse proxy through NGINX. We created a Linux box in our Azure environment, but are struggling to complete the process.
I was going to open an SSH tunnel locally, and…
0
votes
0 answers
Why does nginx proxy redirect the request?
I'm trying to pass the API requests to the backend with NGINX reverse proxy.
When I send a get request to /api/testdata, it sends a request to {frontendURL}/api/testData which returns with 301(redirect) status code. After that It redirects the…

szgezu
- 1
- 1
0
votes
1 answer
Understanding Return in nginx
I have a configuration file with a config similar to the below
map $request_uri $redirectWithError {
default "0"
"~* /" "1"
}
location / {
if ($redirectWithError = "1") {
return 404;
}
location / {
proxy_pass
…
0
votes
0 answers
Nginx reverse proxy errors on JS
We have certain sites we need to mask our client IP addresses with a proxy when they browse to those sites. I have built NGINX on AWS Linux 2023. It works with simply google.com but does not work with any site using .js. Not sure what to try next.I…

fixem73
- 1
- 1
0
votes
0 answers
Nginx wordpress proxy pass
after hours of trying and google i thought my last chance to get it solved is here.
i have the following problem:
A Wordpress page is running under myperfectshop.com
The shop just have one product at the moment, which is located under…

Patrick
- 1
- 1
0
votes
0 answers
How to Avoide Passing Regrex Part into proxy_pass in Nginx
I want to foward all request to https://myfrontend/(anything)/front/ to my backend server http://mybackend:8081 and now I setup my nginx like below:
location ~ ^/(.*)/front/ {
proxy_pass http://backend:8081;
}
However, this will pass the (.*)…

Sijian
- 1
0
votes
1 answer
Issue with Web Server running PHP thru Reverse Proxy
I'm using an NGINX reverse proxy, with wild card certs installed on the reverse proxy.
Routing the NGINX reverse proxy traffic to standard web servers that are running Apache2 and NGINX Web services is working great.
However, routing to a server…
0
votes
1 answer
nginx-proxy always returning 301 Moved Permanently
I'm following the example docker compose for an nginx-proxy, but it always returns a 301 Moved Permanently error. I'm using docker hosted in Ubuntu 22.04.
my docker-compose.yml file
version: '2'
services:
nginx-proxy:
image:…

PaulH
- 181
- 1
- 3
- 8
0
votes
1 answer
host not found in "$server_listen_port" of the "listen" directive
With the following nginx config excerpt:
map $server_name $server_listen_port {
default 443;
localhost. 80;
localhost 80;
}
server {
server_name "${ENVIRONMENT_SERVER_NAME}.";
listen $server_listen_port http2 reuseport;
#…

Mr. Developerdude
- 183
- 1
- 10
0
votes
1 answer
Source site static resources are not loaded correctly after setting up a reverse proxy with Nginx Proxy Manager
I created the Nginx Proxy Manager container and the Wordpress container using Docker. But when I set up the reverse proxy for the Wordpress container as usual (not Wordpress), I realized that Nginx is not properly proxying the static content (e.g.…

Otaku
- 3
- 2
0
votes
1 answer
Nginx reverse proxy gives 404 error, but only for a specific domain name
Sorry to repeat a question that has been asked a dozen times before, but I have read each and every answer to those questions without being able to solve my problem.
I am trying to setup an nginx docker container as a reverse proxy to be able to…

ventle
- 1
- 1
0
votes
1 answer
Nginx TCP Forwarding only for subdomain
I have Debian 12 box on Hetzner running Cowmail and Nginx.
Cowmail runs under mail.mydomain.com subdomain (mydomain.com is placeholder) on ports 8069 and 44369.
What I am trying to do is:
Serve static html when visiting mydomain.com (served by…

comand100vip
- 3
- 3
0
votes
0 answers
Cannot connect to website through reverse proxy on local network
I'm having this strange issue. I have a local network running a server with my gitlab instance and some webpages. The configuration of my reverse proxy is following:
server {
server_name my.website.com;
location / {
proxy_pass…

Just Bucket
- 11
- 3
0
votes
1 answer
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 $http_MyHeaderName $port {
Value1 4115;
Value2…

Сергей
- 101
- 1
0
votes
1 answer
Nginx access_log format "timing"?
I'm using a config snippet to setup a reverse proxy with nginx version: nginx/1.14.1 - it has "timing" specified as access_log's format - that causes an error.
## Application specific logs
access_log /var/log/nginx/yourdomain.com-access.log…

Special Monkey
- 1
- 2