Skip to main content

Advanced virtual hosting for Silva CMS

Project description

This extension provides you with the possibility to define advanced virtual hosting strategies within Silva.

To use this extension, you must add it to your Silva site, and activate it in service_extension. After, you will have a Silva service available in ZMI, service_forest where you can define virtual host, and rewrite rules inside each one.

To enable the extension you must click on activate in the service_forest.

To trigger a virtual host, you must set the HTTP header X-VHM-Url inside your HTTP request to Silva.

This is done like this in Apache, for instance:

 <VirtualHost *:80>
   ServerName demo30.silvacms.org

   RequestHeader set X-VHM-URL http://demo30.silvacms.org
   RewriteEngine On
   RewriteRule ^/(.*)$ http://localhost:7778/$1 [P]
</VirtualHost>

Credits

Thanks to WUW for sponsoring this extension.

Code repository

You can find the code of this extension in Git: https://github.com/silvacms/silva.app.forest

Changes

3.0.1 (2013/03/06)

  • Add an interface IForestRequest on the request when the extension is used. Bind all feature to this new request.

  • Implement the new top level methods of IVirtualHost to return information based the highest rule available for an virtual url.

3.0 (2012/12/11)

  • Add events upon activation/deactivation, in order to be able to extend the forest functionality in an extension.

3.0c1 (2012/90/24)

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

silva.app.forest-3.0.1.tar.gz (18.5 kB view details)

Uploaded Source

File details

Details for the file silva.app.forest-3.0.1.tar.gz.

File metadata

File hashes

Hashes for silva.app.forest-3.0.1.tar.gz
Algorithm Hash digest
SHA256 8dfee117f4ad5503f3a8749266760fd3f4932a132d7747b5a7c017fc22d3af6b
MD5 f5da5b3fb88050dfcaf5bd83950ac1af
BLAKE2b-256 455c2d96dcd7dfeb8c927c3ec97c1c27fe3b9c8ffda32ebf3000f4a9fed441c0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page