Reverse Proxy Apache2

In continuation of the previous reverse proxy solution, here its using apache2 in /etc/apache2/sites-available/kewrunner.com.conf (for example).

<VirtualHost *:80>
        ServerName kewrunner.com
        ServerAlias www.kewrunner.com
        ServerAdmin webmaster@kewrunner.com
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        ProxyRequests Off
        <Proxy *>
          Order deny,allow
          Allow from all
        </Proxy>
        
        ProxyPass / http://127.0.0.1:8090/
        ProxyPassReverse / http://127.0.0.1:8090/

        <Location />
          Order allow,deny
          Allow from all
        </Location>

   </VirtualHost>

Remember to enable reverse proxy module into apache2 and restart it.

sudo a2enmod proxy
sudo a2enmod proxy_http
sudo systemctl restart apache2.service 

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)…