forked from jamesrwhite/minicron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapache.conf
25 lines (22 loc) Β· 848 Bytes
/
apache.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<VirtualHost *:80>
# Add FQDN/URL for your minicron server and
# add your webmaster or your admins email address
servername minicron.domain.local
serveradmin [email protected]
# 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>