Nginx multipe proxy pass locations

Содержание

I need to proxy pass my domain to 2 different apps! the first one is the main API and the second one is a WebSocket.

My configuration looks like this but it won’t work quite well! when I hit the / it’s fine but when I go in /ws location it shows me default Nginx page 404

Related

Join 1M+ other developers and:

  • Get help and share knowledge in QA
  • Subscribe to topics of interest
  • Get courses tools that help you grow as a developer or small business owner

Nginx, Prestashop — TTFB too much slow Question
Nginx users list — how to display Question

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

The config looks good to me, all is in order. With that in mind, is there anything listening on port 8889. It seems to me this might be the culprit to further look into.

Please do see If anything is listening to that port. I’m eager to see

Thanks for your answer but there was no other application listening on that port. I fixed this issue by just removing some lines that I thought is useless. IDK how it is fixed. it was the weirdest problem I ever had

I’m glad to hear you managed to solve the issue.

Weird indeed to have to remove some lines on a working config. If you happen to remember them, please do post them, I’m curious to look into it more.

Yeah. here is the working production configuration that I came up with:

question
Nginx, Prestashop — TTFB too much slow

Hello DO community, I have installed nginx as web server for my prestashop store. I activated all cache (in prestashop back-office), But I get an TTFB (Time To First Byte) so slow.. like 8sec 🙁 I don't know where I can checked to.

question
Nginx users list — how to display

How can I have a list of the users existing on my nginx installation, beside the root one?

question
Error when starting Nginx

I have been following the instructions on this article: .

question
Having problems with DNS setup

Hi and apologize for what it probably a pretty easy question for most, but tbh I'm completely lost with, I've read the tutorial on how to link my droplet to domain name, but still not sure what I have to do to get it to work. I'm currently.

Looking for something else?

Sign up for Infrastructure as a Newsletter.

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

You get paid; we donate to tech nonprofits.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

DigitalOcean Cloud Control Panel

© 2022 DigitalOcean, LLC. All rights reserved.

  • About
  • Leadership
  • Blog
  • Careers
  • Partners
  • Referral Program
  • Press
  • Legal
  • Security Trust Center
  • Pricing
  • Products Overview
  • Droplets
  • Kubernetes
  • Managed Databases
  • Spaces
  • Marketplace
  • Load Balancers
  • Block Storage
  • API Documentation
  • Documentation
  • Release Notes
  • Tutorials
  • QA
  • Tools and Integrations
  • Tags
  • Product Ideas
  • Write for DigitalOcean
  • Presentation Grants
  • Hatch Startup Program
  • Shop Swag
  • Research Program
  • Open Source
  • Code of Conduct

Before you can do that To complete this action, sign in to your Community account or create a new one.


Источник: www.digitalocean.com