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


Release history Release notifications

Download files

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

Files for silva.app.forest, version 3.0.1
Filename, size File type Python version Upload date Hashes
Filename, size silva.app.forest-3.0.1.tar.gz (18.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page