Setup Apache HTTP proxy with MinIO Server Slack

Apache HTTP is an open source web server and a reverse proxy server.

In this recipe we will learn how to set up Apache HTTP with mod_proxy module for connecting to MinIO Server. We are going to set up a new VirtualHost for

1. Prerequisites

Install MinIO Server from here. Remember the address and port.

2. Installation

Install Apache HTTP server from here. Usually, mod_proxy module is enabled by default.
You can also use your OS repositories (e.g. yum, apt-get).

3. Recipe steps

Step 1: Configure the reverse proxy.

Create a file under the Apache configuration directory, e.g., /etc/httpd/conf.d/minio-vhost.conf

<VirtualHost *:80>
    ErrorLog /var/log/httpd/
    CustomLog /var/log/httpd/ combined

    ProxyRequests Off
    ProxyVia Block
    ProxyPreserveHost On

    <Proxy *>
         Require all granted

    ProxyPass / http://localhost:9000/
    ProxyPassReverse / http://localhost:9000/


Step 2: Start MinIO server.

minio server /mydatadir

Step 3: Restart Apache HTTP server.

sudo service httpd restart