Questions tagged [nginx-reverse-proxy]

283 questions
0
votes
1 answer

unable to proxy pass to NGINX server running php spf

I have a main NGINX server to run certs for all my internal servers. I am adding an endpoint for a new NGINX server running php. If I connect directly to the new server the new server works correctly. It's able to connect to the database through my…
0
votes
1 answer

nginx location reverse proxy then return static file (try files)

Is it possible to to something like this location / { proxy_pass https://example.com; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header…
dj_boy
  • 1
  • 1
0
votes
0 answers

nginx reverse proxy 404 error on Ubuntu

I am running Nginx on Linux and attempting to run it as a reverse proxy. However, when I try and set a subdomain to proxy to a program I have running on another server it returns a 404 error. The subdomain I am using is vrs.thomp.site, and the…
0
votes
0 answers

nginx; how to serve some https sites but proxy unknown https sites to another nginx instance?

I have a "main" Nginx instance, that i configure manually. This one faces the internet on my home connection. It has some https sites configured that i consider important for me. Then i have another "playground" Nginx instance that is configured by…
enthus1ast
  • 121
  • 3
0
votes
2 answers

Unable to redirect from non-www to www with Nginx and Cloudflare

I am super new to Nginx and CF and I have deployed my website to example.com and it is working perfectly and it redirects to https as well. But I want to redirect to www all the time. Right now if I type in example.com it doesn't redirect to www. I…
Zak
  • 101
0
votes
0 answers

nginx doesn't serve "/" path

I have a domain example.com which is registered and working. I am now trying redirect all requests to example.com and www.example.com to a specific port. the default config in sites-enabled looks like this: server{ listen 80; listen…
0
votes
1 answer

Nginx Custom 404.php with requested URL as parameter (PHP Should Handle 301 Redirect)

I am rebuilding an Old Website, all pages ends with .php extension. Eg: example.com/contactUS.php example.com/static-article.php I need to change it to Eg: example.com/contact-us example.com/article I am not just removing .php, changing…
Vishnu
  • 1
  • 1
0
votes
2 answers

Accessing webserver over LAN

I have a macOS laptop running a application. The UI uses port 8081 and the API uses 3031. I can access this on the mac system using localhost:8081 and all of the API calls work through port localhost:3031. The mac is on my VPN and I can ssh into it…
0
votes
1 answer

How to use WebP images on Apache behind an Nginx Reverse Proxy

My problem is that I have a CentOS Web Panel: Where I have an Nginx Reverse Proxy running on port 80/443 which is forward the requests to Apache 2.4.52 on port 8181. The modules that Apache uses are: Loaded Modules: core_module (static) so_module…
Diverti
  • 101
  • 2
0
votes
0 answers

Nginx revers proxy getting timeout error issue

I have an AWS elb loadbalancer with three dynamic IPs and domain- example.com, port 443. our client wants to access API but he had outbound firewall rules which required to whitelist dynamic IPs every time. for the resolution, we created a subdomain…
0
votes
3 answers

How Assigin IP address of Ubuntu server to nginx server name

I have ip address of ubuntu server and can connect through ssh like ssh abcd@13.12.9.9 # and this ask me for password and then i connect to this ubuntu server My Question how i set this ip of ubuntu server in nginx server name in proper way so…
Farid
  • 3
  • 3
0
votes
0 answers

Poor server performance with nginx gzip

I enabled gzip on my nginx reverse proxy which is hosted on EC2 free tier (so lightweight server). I noticed that my request latency increased by almost 2x (13+KB compressed to 4+KB). The only issue that I can think of is that the compression on the…
Stuart
  • 1
  • 1
0
votes
0 answers

Nginx Location Redirect

I'm sorry for the beginner question but I've spent a long time trying to get this to work properly with no luck. I have a location block to redirect https://my.domain.com/foo to https://192.168.1.25, which hosts a webapp. When you get to the webapp,…
0
votes
0 answers

how to log the port details in nginx access-log?

I am maintaining nginx as the load balancer for the servers. Now I am maintaining the access-logs, I need the details of the port of which I am receiving the request from the external servers. For example if any external server calls, my server, I…
0
votes
1 answer

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 (GREEN). Finally, we refresh the NGINX configuration…