Changes

From SME Server
Jump to navigationJump to search
448 bytes added ,  13:22, 22 December 2013
m
Line 93: Line 93:     
* First, you can install your application (for example in /opt/myapp)
 
* First, you can install your application (for example in /opt/myapp)
* Now, you need to create a custom template to make this application available from the web. LemonLDAP::NG uses VirtualHosts to protect different application, so it's recommended to not create alias on the primary domain in your custom-template. A dedicated virtualhost will be created later to access the application. Here's a example of custom-template:
+
* Now, you need to create a custom template to make this application available from the web. LemonLDAP::NG uses VirtualHosts to protect different applications, so it's recommended to not create alias on the primary domain in your custom-template. A dedicated virtualhost will be created later to access the application. Here's a example of custom-template:
    
  # MyApp configuration
 
  # MyApp configuration
   −
  <Directory /opt/kplaylist>
+
  <Directory /opt/myapp>
 
     AllowOverride None
 
     AllowOverride None
 
     SSLRequireSSL on
 
     SSLRequireSSL on
Line 113: Line 113:     
  db domains set myapp.domain.tld domain Content Primary \
 
  db domains set myapp.domain.tld domain Content Primary \
  Description 'My App' DocumentRoot /opt/myapp LemonLDAP enabled \
+
  Description 'My App' DocumentRoot /opt/myapp Authentication LemonLDAP \
 
  Nameservers internet TemplatePath WebAppVirtualHost
 
  Nameservers internet TemplatePath WebAppVirtualHost
 +
signal-event domain-create myapp.domain.tld
    +
{{Note box|Instead of '''LemonLDAP''' you can also use '''LemonLDAPBasic''' as Authentication type. LemonLDAPBasic will still use LemonLDAP::NG to handle authentication and authorization, but will use a basic HTTP auth scheme, it's usefull in some situation, like being able to connect native mobile application for example (but of course, you won't have the benefit of the SSO with a basic auth)}}
    
It's important to set TemplatePath to WebAppVirtualHost. Those templates are provided by smeserver-webapps-common package (automatically installed, as it's need by LemonLDAP). Those templates make it easy to protect any virtualhost by LemonLDAP::NG  
 
It's important to set TemplatePath to WebAppVirtualHost. Those templates are provided by smeserver-webapps-common package (automatically installed, as it's need by LemonLDAP). Those templates make it easy to protect any virtualhost by LemonLDAP::NG  

Navigation menu