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

433
Views
Establish connection from apache angular app to rest api node js

I deployed an angular app hosted in apache server into an VPS. And I got an URL something like this : http://myip.com/angularApp/

In same VPS is running pm2 with a REST api developed in nodejs using express (CORS are enabled). Route for these are like: http://myip.com:4000/api/users, http://myip.com:4001/api/clients

Problem is, when angularApp tries to consume the REST api, the URLs are => http://myip.com/api/users, http://myip.com/api/clients

fyi:
I also tried to do the same in nginx but it not worked too.
Works fine in: Running static angular files in express. Running angular in dev mode only consuming rest api.

Any idea for solving this? ty

over 4 years ago · Santiago Trujillo
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!