logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Redirect / Proxy / Map subdomain to domain with port number
Author
Omly



Joined: 01 Jan 2022
Posts: 1
Location: Netherlands

PostPosted: Sat 01 Jan '22 16:15    Post subject: Redirect / Proxy / Map subdomain to domain with port number Reply with quote

Hi all,

I got a flask server accepting only POST requests on
https://domain.com:13000/data

Can anyone help me redirect / proxy / map
https://domain.com:13000/data
to https://abc.domain.com subdomain?

https://domain.com:15000/data
to https://xyz.domain.com subdomain?

data => Apache2 => https://xyz.domain.com => https://xyz.domain.com:13000/data
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Sun 02 Jan '22 10:02    Post subject: Reply with quote

Hi Omly,

this may work for you

Code:
ProxyPass /data https://xyz.domain.com:13000/data
ProxyPassReverse /data https://xyz.domain.com:13000/data
Back to top


Reply to topic   Topic: Redirect / Proxy / Map subdomain to domain with port number View previous topic :: View next topic
Post new topic   Forum Index -> Apache