summaryrefslogtreecommitdiff
path: root/doc/examples/hydrilla.example.com.conf
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/hydrilla.example.com.conf')
-rw-r--r--doc/examples/hydrilla.example.com.conf49
1 files changed, 49 insertions, 0 deletions
diff --git a/doc/examples/hydrilla.example.com.conf b/doc/examples/hydrilla.example.com.conf
new file mode 100644
index 0000000..0d94c05
--- /dev/null
+++ b/doc/examples/hydrilla.example.com.conf
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: CC0-1.0
+
+# Sample Apache2 configuration file for Hydrilla server (over unencrypted HTTP).
+#
+# Copyright (C) 2022 Wojtek Kosior
+
+
+# Please adapt this file according to your needs can place it file under
+# Apache2's available site configs directory which will be
+# /etc/apache2/sites-available/ or similar. Then, enable it using the following
+# command:
+# a2ensite hydrilla.example.com
+# The new configuration will only take effect after you restart/reload Apache2
+# daemon.
+
+# Keep in mind that due to some external limitations Haketilo will not connect
+# to HTTP Hydrilla servers running elsewhere than localhost. To get a working
+# public Hydrilla server you should obtain a TLS certificate and use the
+# attached hydrilla.example.com.tls.conf file instead of this one.
+
+# This configuration file assumes Hydrilla is installed under Python's default
+# load path and that the attached hydrilla.wsgi sample script has been saved as
+# /var/lib/hydrilla/wsgi/hydrilla.wsgi
+
+<VirtualHost *:80>
+ ServerName hydrilla.example.com
+ ServerAdmin admin@example.com
+
+ DocumentRoot /var/lib/hydrilla/malcontent_dir
+
+ <Directory /var/lib/hydrilla/malcontent_dir >
+ Require all granted
+ </Directory>
+
+ <Directory ~ "^/var/lib/hydrilla/malcontent_dir/(resource|mapping)/" >
+ ForceType application/json
+ </Directory>
+
+ WSGIScriptReloading On
+
+ <Directory /var/lib/hydrilla/wsgi >
+ Require all granted
+ </Directory>
+
+ WSGIScriptAliasMatch "^/((resource|mapping)/[^/]+[.]json|query)$" "/var/lib/hydrilla/wsgi/hydrilla.wsgi/$1"
+
+ ErrorLog ${APACHE_LOG_DIR}/error.log
+ CustomLog ${APACHE_LOG_DIR}/access.log combined
+</VirtualHost>
25272'>doc: cookbook: Add entry about Wireguard VPN....Marcin Karpezo 2020-05-25doc: cookbook: Add subsection about session locking with xss-lock....Chris Bøg 2020-05-05doc: cookbook: Fix sbcl-ttf-fonts package name....Jean-Baptiste Note 2020-04-30doc: cookbook: Rename stumpwm package to current state....Marcin Karpezo 2020-04-25doc: cookbook: Fix quotes....Nicolas Goaziou 2020-04-24doc: cookbook: Use @file for file names and extensions....Nicolas Goaziou 2020-04-24doc: cookbook: Fix misuses of double spacing....Nicolas Goaziou 2020-04-22doc: cookbook: Explain how to use bind mounts....Matthew Brooks 2020-03-30gnu: Add sbcl-stumpwm-ttf-fonts....Oleg Pykhalov 2020-01-17doc: cookbook: Avoid URL reference to the manual....Ludovic Courtès 2019-11-26doc: cookbook: Add cross-references to the Guile manual....Ludovic Courtès 2019-11-26doc: cookbook: Use @result{} & co. instead of a '>' prompt....Ludovic Courtès 2019-11-26doc: cookbook: Use Texinfo quotes....Ludovic Courtès 2019-11-26doc: cookbook: Add cross-reference about ./pre-inst-env....Ludovic Courtès 2019-11-26doc: cookbook: Use @lisp for Scheme snippets....Ludovic Courtès 2019-10-30doc: Explain how to switch profile from empty shell in "Profiles in Practice"....Pierre Neidhardt 2019-10-28doc: Link to SICP Info page in "A Scheme Crash Course"....Pierre Neidhardt 2019-10-28doc: Finish importing the "Packaging Tutorial"....Pierre Neidhardt 2019-10-28doc: Fix some typos in "Guix Profiles in Practice"....Pierre Neidhardt 2019-10-25doc: cookbook: Use "@lisp" for Scheme snippets....Ludovic Courtès 2019-10-24doc: Add "Guix Profiles in Practice" to the cookbook....Pierre Neidhardt 2019-09-18doc: Add Guix Cookbook....Ricardo Wurmus