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

143
Views
Prevent Apache2 from redirecting to different port

so, for various reasons, i'm forced to host a website on an apache2 server (server A). this is not the server that is publicly accessible in my network, so another server (server B) is relaying requests to server A through a reverse proxy that i have written myself using express.js

server A exposes its website on port 8080, and server B is routing traffic from port 80 and 443 to it. SSL is completely handled by the proxy.

now, it seems like whenever apache uses a redirect to, for example, correct something in the url (turning https://example.com/something into https://example.com/something/) it appends :8080 after the domain. so it turns https://example.com/something into https://example.com:8080/something/

how can i prevent this from happening?

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!