From 538e086ec551de349dc81a03f2f6896e60e1870e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20T=C3=A1vara?= Date: Fri, 29 Jul 2016 16:05:00 -0500 Subject: [PATCH] Doc: Setup Apache HTTP proxy with Minio (#53) --- README.md | 1 + docs/setup-apache-http-proxy-with-minio.md | 59 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 docs/setup-apache-http-proxy-with-minio.md diff --git a/README.md b/README.md index f11024d..14f9d13 100644 --- a/README.md +++ b/README.md @@ -25,4 +25,5 @@ Note: You can also refer to [Awesome Minio](https://github.com/minio/awesome-min - [Generate Let's Encypt certificate using Concert for Minio](./docs/generate-lets-encypt-certificate-using-concert-for-minio.md) - [Setup Caddy proxy with Minio](./docs/setup-caddy-proxy-with-minio.md) - [Setup Nginx proxy with Minio](./docs/setup-nginx-proxy-with-minio.md) +- [Setup Apache HTTP proxy with Minio](./docs/setup-apache-http-proxy-with-minio.md) - [Rclone with Minio](./docs/rclone-with-minio.md) diff --git a/docs/setup-apache-http-proxy-with-minio.md b/docs/setup-apache-http-proxy-with-minio.md new file mode 100644 index 0000000..78c77c1 --- /dev/null +++ b/docs/setup-apache-http-proxy-with-minio.md @@ -0,0 +1,59 @@ +# Setup Apache HTTP proxy with Minio Server [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/minio/minio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) + +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 goint to set up a new VirtualHost for example.com + +## 1. Prerequisites + +Install Minio Server from [here](http://docs.minio.io/docs/minio). Remember the address and port. + +## 2. Installation + +Install Apache HTTP server from [here](https://httpd.apache.org/#downloading). 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`` + +```sh + + ServerName example.com + ErrorLog /var/log/httpd/example.com-error.log + CustomLog /var/log/httpd/example.com-access.log combined + + ProxyRequests Off + ProxyVia Block + ProxyPreserveHost On + + + Require all granted + + + ProxyPass / http://localhost:9000/ + ProxyPassReverse / http://localhost:9000/ + + RemoteIPHeader X-Forwarded-For + +``` + +Note: + +* Replace example.com with your own hostname. +* Replace ``http://localhost:9000`` with your own server name. + + +### Step 2: Start Minio server. + +```sh +$ minio server /mydatadir +``` + +### Step 3: Restart Apache HTTP server. + +```sh +$ sudo service httpd restart +```