Reverse Proxy Apache

Neat trick after subdomain is created, want to preserve the url for example lets look at this lab hack (its been edited to not reveal actual address, but it certainly works)

#Reverse Proxy in Apache Syntax

<VirtualHost *:80>
    ServerAdmin kewrunner@gmail.com
    ServerName subdomain.example.com
    ProxyPreserveHost On

    # setup the reverse proxy
    <Proxy *>
        Order allow,deny
        Allow from all
    </Proxy>
    ProxyPass / http://123.45.66.789:1234/
    ProxyPassReverse / http://123.45.66.789:1234/
</VirtualHost>

When including the ProxyPassReverse it will preserve the subdomain url instead of revealing the IP:PORT on the browser. Just makes for a cleaner finish. Glad it helps

RELATED POST

Veritas Volume Manager: Growing a disk group and expand the filesystem

Validated by Mr Man! Lets start off on node2 [root@node02 ~]# vxdisk list DEVICE TYPE DISK GROUP STATUS sda auto:none…

Virtual Machine Manager: Error starting domain

Starting up the KVM error occurred Error starting domain: Requested operation is not valid: network 'default' is not active Locate…

Git Commands

How to initialize a Git repo: Everything starts from here. The first step is to initialize a new Git repo…

Lab Hack: Raspberry Pi running VMWare ESXi

As strange as the title sounds, yes I am running VMWare ESXi on a Raspberry Pi 4 Model B (4GB)…