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

Updating $PATH for Laravel in Ubuntu 20.04

In order to get #laravel command to work make sure its included in the $PATH $ composer global require laravel/installer…

MySQL: Automate MySQL Dump

Need to backup all the databases daily mysqldump --all-databases --single-transaction --quick --lock-tables=false > full-backup-$(date +%F).sql -u root -p Then edit…

Satellite Server: katello-service

Time for some upgrades and backups of the satellite server, first inspect the current services running and enabled [root@rhel75lab ~]#…

Working with date command

Quick reminder on how to use date command: %a – Displays the locale’s abbreviated weekday name. %A – Displays the…