#!/usr/bin/bash # @app pluie/alpine-apache # @author a-Sansara https://git.pluie.org/pluie/docker-images if [ ! -z "/app/vhost" ]; then cat < "/app/vhost" ServerName $HTTP_SERVER_NAME SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 SetHandler proxy:fcgi://127.0.0.1:9000 AllowOverride None Require all granted DirectoryIndex $WWW_INDEX Options -MultiViews +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ $WWW_INDEX [QSA,L] # IncludeOptional /app/vhost2 EOF fi