server/config/apache.conf
<VirtualHost *:80>
# Add FQDN/URL for your minicron server and
# add your webmaster or your admins email address
servername minicron.domain.local
serveradmin webmaster@domain.local
# This section specifies your authentication settings
# Make user your AUTHUSERFILE is created using htpasswd
<Proxy *>
AuthType Basic
AuthName "Authentication Required"
AuthUserFile /etc/apache2/htpasswd.users
Require valid-user
</Proxy>
# This section redirects all traffic from port 80 to
# minicrons port 9292 using mod_proxy and mod_proxy_http
ProxyPass / http://localhost:9292/
ProxyPassReverse / http://localhost:9292/
# Logging
ErrorLog ${APACHE_LOG_DIR}/error.minicron.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.minicron.log combined
</VirtualHost>