Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
documentation:latest:securetoken [2019/06/05 14:22]
127.0.0.1 external edit
documentation:latest:securetoken [2019/06/05 15:12]
cmaudoux [Virtual host]
Line 13: Line 13:
 ==== Virtual host ==== ==== Virtual host ====
  
-=== Apache ===+You just have to set "Type: SecureToken"​ in the VirtualHost options in the manager.
  
-VirtualHost has to be configured like other [[configvhost|protected virtual hosts]] but by using Secure Token Handler instead of default Handler. +If you want to protect only a virtualHost part, keep type on "​Main"​ and set type in your configuration ​file: 
- +  Apacheuse simply a ''​PerlSetVar VHOSTTYPE AuthBasic''​ 
-<file apache>​ +  * Nginxcreate another FastCGI with a ''​fastcgi_param VHOSTTYPE ​SecureToken;''​
-PerlModule Lemonldap::​NG::​Handler::​Specific::​SecureToken +
-<​VirtualHost ​*:80> +
-       ServerName secure.example.com +
- +
-       # Load SecureToken Handler +
-       ​PerlHeaderParserHandler Lemonldap::​NG::​Handler::​Specific:​:​SecureToken +
- +
-       ... +
-        +
-</​VirtualHost>​ +
-</​file>​ +
- +
-=== Other web servers ===+
  
 <​note>​This handler uses Apache2Filter Module to hide token, prefer [[servertoserver|Handling server webservice calls]] for other servers.</​note>​ <​note>​This handler uses Apache2Filter Module to hide token, prefer [[servertoserver|Handling server webservice calls]] for other servers.</​note>​