V
V
Viktor2014-06-06 20:42:06
System administration
Viktor, 2014-06-06 20:42:06

How to proxy requests to apache 2 on Mac OS X?

Ladies and gentlemen, I appeal to your help!
There is a machine on MacOS X and several running on it on different ports of the apache2 web server. It is required to redirect requests to the server like this:

http://exampledomain.local:80/ -> http://localhost:8899/
http://example.com:80/ -> http://localhost:2345/

The options are given as an example, many instance web servers can be launched. Accordingly, I want to achieve such an effect when the user enters in the address bar, for example, example.com , and technically receives the page from one of the web server instances running on the "left" port.
Yes, yes, I know it's http proxying , but how do I set it up?
How can this be done with some console utility? That is, options with the GUI are fundamentally not suitable.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Podporin, 2014-12-11
@gremlin_tomsk

mod_rewrite +VirtualHost?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question