containing a short apache-config snippet for delivering the pmg-docs via apache.
Mostly added for consistency between pve-docs (containing pve-docs-mediawiki)
and pmg-docs (containing pmg-docs-apache, because it does not have a wiki)
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Architecture: all
Description: Proxmox Mail Gateway Documentation
This package contains the Proxmox Mail Gateway documentation files.
+
+Package: pmg-docs-apache
+Architecture: all
+Section: doc
+Depends: pmg-docs,
+Suggests: apache2,
+Description: Proxmox Mailgateway Documentation - Apache2 config
--- /dev/null
+debian/tree/pmg-docs-apache/README
--- /dev/null
+debian/tree/pmg-docs-apache/pmg-docs.conf /etc/apache2/conf-available/
--- /dev/null
+Include the shipped config-snippet in the virtualhost you wish to serve
+the documentation from:
+
+```
+Include /etc/apache2/conf-available/pmg-docs.conf
+```
+
+If pmg-docs is the only vhost on the host you can also globally enable
+the config-snippet:
+
+# a2enconf pmg-docs.conf
+
+in both cases reload apache2 afterwards
+# systemctl reload apache2
+
+Now you should be able to access the documentation at:
+
+* Admin Guide and Manual pages
+http://your-server/pmg-docs
+
+* API Viewer
+http://your-server/pmg-docs/api-viewer
--- /dev/null
+Alias "/pmg-docs" "/usr/share/pmg-docs/"
+
+# redirect main page to the reference docs
+RewriteEngine on
+RewriteRule "^/$" "http://%{HTTP_HOST}/pmg-docs/" [R,L]