aboutsummaryrefslogtreecommitdiff
path: root/config/hex-zero.conf.apache
diff options
context:
space:
mode:
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