<div class="gmail_default"><font face="monospace, monospace">Â Â Â Â Â Â Â Â ProxyPassReverse /zm <a href="http://192.168.0.15:8280/zm">http://192.168.0.15:8280/zm</a></font></div><div class="gmail_default"><span style="font-family:monospace,monospace">Â Â Â Â Â Â Â Â SSLEngine On</span><br></div><div class="gmail_default"><font face="monospace, monospace">Â Â Â Â Â Â Â Â SSLProxyEngine On</font></div><div class="gmail_default"><font face="monospace, monospace">Â Â Â Â Â
<br>PGP Key for <a href="mailto:raphaxx@gmail.com" target="_blank">raphaxx@gmail.com</a>: <a href="https://pgp.mit.edu/pks/lookup?op=get&search=0x87BC5A746072F951" target="_blank">https://pgp.mit.edu/pks/lookup?op=get&search=0x87BC5A746072F951</
</span></span><br></div></div></div></div></div></div></div></div></div>
Hello,
I'm trying to setup a reverse proxy on my apache2 server to serve an
another apache2 server running on a vm, basically my root apache2 is
at 192.168.0.15 and my second apache2 is at 192.168.0.15:8280 [1].
My idea is to have 192.168.0.15/zm [2] as 192.168.0.15:8280 [1].
The question is, how to do it?
I've looked up some guides, but it is difficult to setup.
I'm sorry for not answering to the question directly, but why use apache2?
There are modern alternatives ...
And something completely different like Traefik (https://doc.traefik.io/traefik/getting-started/quick-start/) which is
geared towards modern cloud native infrastructure with containers and workload orchestrators like Nomad or Kubernetes.
Usually you don't configure Traefik with static config file, but with metadata and annotations in K8S and Consul so it is dynamic and reactive.
Or you can use nginx (which is already considered pretty old and clunky,
but it is much easier than apache still).
Hello,
I'm trying to setup a reverse proxy on my apache2 server to serve an
another apache2 server running on a vm, basically my root apache2
is at 192.168.0.15 and my second apache2 is at 192.168.0.15:8280.
My idea is to have 192.168.0.15/zm as 192.168.0.15:8280.
The question is, how to do it?
I've looked up some guides, but it is difficult to setup.
My config:
<VirtualHost _default_:443>
ServerName 192.168.0.15
DocumentRoot /var/www/html
</VirtualHost>
<VirtualHost *:443>
ServerName 192.168.0.15/zm
ProxyPass /zm http://192.168.0.15:8280/zm
ProxyPassReverse /zm http://192.168.0.15:8280/zm
</VirtualHost>
Does it look any good?
Thanks.
Age of something doesn't mean a lot.Age migth mean a lot when we are talking about software. Modern software usually is easier to configure, has sane defaults, more secure and has integration with other modern software. And is much more popular in the community meaning better support.
- TCP/IP is from the 80s and yet we are still using it.
- OSI is newer than IPv4.
- IPv6 is newer than IPv4 and OSI.
Yet we are still talking about the venerable IPv4.
I view adding /additional/ software / daemons as poor form, especially
when the /existing/ software can do the task at hand.
Don't overlook the port conflict.
Why start the email asking why something old is used and then finish
the email suggesting the possibility of using something else old?
On 1/18/22 11:24 AM, Anatoly Laskaris wrote:
I'm sorry for not answering to the question directly, but why useapache2?
- Because Apache is already installed and listening on the port in question.
- Because that's what the OP asked about.
- Because it might be IBM / Oracle HTTP Server which are re-rolls of
Apache HTTP Server.
- $REASONS
There are modern alternatives ...
Age of something doesn't mean a lot.
- TCP/IP is from the 80s and yet we are still using it.
- OSI is newer than IPv4.
- IPv6 is newer than IPv4 and OSI.
Yet we are still talking about the venerable IPv4.
And something completely different like Traefik (https://doc.traefik.io/traefik/getting-started/quick-start/) which is geared towards modern cloud native infrastructure with containers and workload orchestrators like Nomad or Kubernetes.
Usually you don't configure Traefik with static config file, but with metadata and annotations in K8S and Consul so it is dynamic and reactive.
I view adding /additional/ software / daemons as poor form, especially
when the /existing/ software can do the task at hand.
Don't overlook the port conflict.
Or you can use nginx (which is already considered pretty old and clunky, but it is much easier than apache still).
Why start the email asking why something old is used and then finish the email suggesting the possibility of using something else old?
--
Grant. . . .
unix || die
Hello,
Hello,
I've modified a little my config file:
   ProxyPass "zmz" "http://raphaxx.intranet:8280/zm/
   ProxyPassReverse "zmz" "http://raphaxx.intranet:8280/zm/"
My ssl is ok, the ssl redirect is on default.conf
But this ProxyReverse, I've been trying in many ways, another file, and
so on, but nothing works.
About the VirtualHost for the 8280, I'm guessing it was not necessary, because the 8280 is the VM and the VM has its own apache2.
I have a nat rule to redirect 192.168.0.15:8280 to my VM server 192.168.2.100:80 on my root server 192.168.0.15.
About Caddy, I do not want to install another server and deal with
another config.
Thanks!
Age migth mean a lot when we are talking about software. Modern software usually is easier to configure, has sane defaults, more secure and has integration with other modern software.
And is much more popular in the community meaning better support.
I'm was not talking about adding software, I was talking about replacing software.
Time saved in managing complex software that does a simple task can
be applied elsewhere.
In regards to "already having a software" most modern applications don't require "having" them. It works out of the box, usually with one command
and you can switch parts of your infrastructure without pain thanks to containers (or statically linked binaries in golang and rust) without downtime (if done right).
Dynamic ports with service discovery == no port conflicts.
Not that old as apache.
Nginx is still widly used (contrast to apache),
but is being replaced by caddy/traefik. Apache is ancient and I've
never seen it running in production.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 82:11:22 |
Calls: | 6,658 |
Calls today: | 4 |
Files: | 12,203 |
Messages: | 5,333,425 |
Posted today: | 1 |