| 59 | ''' Apache configuration''' |
| 60 | |
| 61 | {{{ |
| 62 | <VirtualHost *:80> |
| 63 | ServerName ssp.example.com |
| 64 | |
| 65 | DocumentRoot /usr/share/self-service-password/htdocs |
| 66 | DirectoryIndex index.php |
| 67 | |
| 68 | AddDefaultCharset UTF-8 |
| 69 | |
| 70 | <Directory /usr/share/self-service-password/htdocs> |
| 71 | AllowOverride None |
| 72 | <IfVersion >= 2.3> |
| 73 | Require all granted |
| 74 | </IfVersion> |
| 75 | <IfVersion < 2.3> |
| 76 | Order Deny,Allow |
| 77 | Allow from all |
| 78 | </IfVersion> |
| 79 | </Directory> |
| 80 | |
| 81 | Alias /rest /usr/share/self-service-password/rest |
| 82 | |
| 83 | <Directory /usr/share/self-service-password/rest> |
| 84 | AllowOverride None |
| 85 | <IfVersion >= 2.3> |
| 86 | Require all denied |
| 87 | </IfVersion> |
| 88 | <IfVersion < 2.3> |
| 89 | Order Deny,Allow |
| 90 | Deny from all |
| 91 | </IfVersion> |
| 92 | </Directory> |
| 93 | |
| 94 | LogLevel warn |
| 95 | ErrorLog /var/log/apache2/ssp_error.log |
| 96 | CustomLog /var/log/apache2/ssp_access.log combined |
| 97 | </VirtualHost> |
| 98 | }}} |
| 99 | |
| 100 | {{{a2ensite self-service-password}}} |
| 101 | |
| 102 | Check you configuration and reload Apache: |
| 103 | {{{ |
| 104 | # apachectl configtest |
| 105 | # apachectl reload |
| 106 | }}} |
| 107 | |
| 108 | |