Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

285
Views
How to reverse proxy to a Node.js app in a domain subfolder with Nginx on CentOS?

I have a domain https://ytdownvideo.com running a WordPress website.

I want to run a Node.js app in a subfolder on the same domain, as follows: https://ytdownvideo.com/youtube/

I am using Nginx on CentOS 7 x64.

How can I configure Nginx to reverse proxy to the Node.js app when navigating to this subfolder?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

First, you will need to run your Node.js app on a different and unused port. For example, 3000.

Then, add the following to your nginx configuration:

location ~ ^\/youtube.*$ {
    proxy_pass http://localhost:3000;
    port_in_redirect off;
}

Restart nginx with:

sudo systemctl restart nginx
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!