aboutsummaryrefslogtreecommitdiff
path: root/config/hex-zero.conf.apache
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-12-09 18:52:21 -0500
committerB Stack <bgstack15@gmail.com>2020-12-09 19:00:49 -0500
commita595cf273756a67a9d754eaf65ae04358bcbd292 (patch)
treef584ae9e63f643224390268750720858f5c858a2 /config/hex-zero.conf.apache
parentadd init script, and rename main script (diff)
downloadhex-zero-a595cf273756a67a9d754eaf65ae04358bcbd292.tar.gz
hex-zero-a595cf273756a67a9d754eaf65ae04358bcbd292.tar.bz2
hex-zero-a595cf273756a67a9d754eaf65ae04358bcbd292.zip
add some example files, and experimental logging
Diffstat (limited to 'config/hex-zero.conf.apache')
-rw-r--r--config/hex-zero.conf.apache23
1 files changed, 23 insertions, 0 deletions
diff --git a/config/hex-zero.conf.apache b/config/hex-zero.conf.apache
new file mode 100644
index 0000000..821b7b8
--- /dev/null
+++ b/config/hex-zero.conf.apache
@@ -0,0 +1,23 @@
+# Apache example config for hex-zero application
+<VirtualHost *:80>
+
+ ServerName 0x0.ipa.example.com
+
+ ServerAdmin webmaster@localhost
+ DocumentRoot /var/www/html
+
+ #LogLevel info ssl:warn
+
+ ErrorLog ${APACHE_LOG_DIR}/error.log
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
+
+ # This reverse proxy definition exists for when you run hex-zero on
+ # loopback and want to use apache to protect it either with
+ # authentication or TLS. This hostname and port number must match the
+ # hex-zero.conf values for APP_HOST_LISTEN and APP_PORT.
+ # And the hostname and path must match APP_URL from the same file.
+ ProxyPass /hex-zero http://localhost:3031/
+ ProxyPassReverse /hex-zero http://localhost:3031/
+
+</VirtualHost>
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
bgstack15