Questions tagged [nginx-reverse-proxy]

283 questions
0
votes
1 answer

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 from normal IPv4 networks. The A record of the…
muede
  • 1
  • 1
0
votes
0 answers

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 looks like this. I had a domain registrered for…
hrust
  • 101
  • 1
  • 2
0
votes
1 answer

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 add upstream instead of host upstream…
Artem
  • 101
  • 1
0
votes
1 answer

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). I know that the configuration change needs to…
chanc
  • 1
  • 1
0
votes
1 answer

Get real requester IP in containerized NGINX reverse proxy

I have Docker Swarm stack with nginx as reverse proxy set up on OVH vps. I was trying to make use of allow/deny directives in location, but if I set deny all; it wouldn't work even for the ip's added with allow directive. After looking at access…
Pepsko
  • 21
  • 1
  • 2
0
votes
1 answer

reverse proxy to distinct internal servers

At our institution we have single static public IP but multiple applications hosted for internet access. In an attempt to access application on different internal servers through a single server found reverse proxy can do this job. The following is…
user3792463
  • 101
  • 1
0
votes
1 answer

Wildcard redirect https://www.*.abc.com to *.abc.com nginx

I would like to redirect all traffic from www.*.abc.com to *.abc.com without www prefix . i have 1000+ subdomains on the same application which use only one nginx virtual host file in sites enabled directory .
sambit
  • 101
  • 2
0
votes
1 answer

Setting up NGINX to route from IP address and port to URL

What I am trying to do is route services to local URLS based on their port numbers. For example I have a gitlab server and Postgresql server running in docker on an Ubuntu server. They are accessible via host IP:port but I want to be able to…
wojg21
  • 1
  • 1
0
votes
1 answer

NGINX: reverse proxy path to subdomain and append the rest

I have the following NGINX configuration file: server { server_name devices.example.org; ssl_protocols TLSv1.2; ssl_certificate /etc/ssl/web/example.crt; ssl_certificate_key /etc/ssl/web/example.key; location ~* ^/(.*)(.*)?$ { …
Vapire
  • 105
  • 3
0
votes
1 answer

Nginx is failing to load css, js and png of tomcat server

I'm trying to deploy the tomcat & Nginx server on a single AWS EC2 instance. I have 3 instances & on each instance, I wanted to deploy Nginx & Tomcat server. Below is my configuration file /etc/nginx/nginx.conf user www-data; worker_processes…
Dinesh
  • 1
  • 1
  • 1
0
votes
0 answers

ssh and sshfs connection through nginx reverse proxy problems

I have a small annoying problem with ssh and sshfs connection to a server that is behind an nginx reverse proxy. I use sshfs remotely to mount some folders from the server and ssh to connect to it and both get disconnected when idle. I solved the…
lucian
  • 131
  • 1
  • 7
0
votes
1 answer

wordpress post, page url redirect to local proxy_pass docker container hostname on nginx

I have successfully setup a wordpress site running on a dockerized nginx. When the wordpress site is up and running, I can go to the home page: https://my_domain.com or any links or at wp-admin/...(after logged in at /wp-login.php which is…
0
votes
0 answers

wordpress nginx in docker lost css styles, js because embed file hostname in html not updated

We are trying to install wordpress on nginx on docker. The domain pointing to it is ssl enabled and when accessing the website, html is loading well but css, js, images are all lost. The reason is html still using wordpress hostname(which i think…
0
votes
0 answers

matrix-synapse delegation fails due to "No such file or directory" error on delegating server

I am setting up delegation on a synapse server. I follow the official docs and seem to have everything in place. I get the following error on example.com nginx logs when I enter the homeserver "example.org" in a client, that is supposed to delegate…
0
votes
1 answer

Nginx Query String rewrite

I have a configuration as below, but I am getting 500 error. Where could this error be? upstream masterservers {server 192.168.1.1:8000;} upstream slaveservers {server 192.168.1.2:8001;} map $request_uri $redirect_to { "target=master" …
MrTux01
  • 103
  • 1
1 2 3
18
19