Apache configuration

Debian and RPM packages already include Apache configuration

Here is an example of Apache configuration using a virtual host:

<VirtualHost *:80>
    ServerName ssp.example.com
 
    DocumentRoot /usr/local/self-service-password
    DirectoryIndex index.php
 
    AddDefaultCharset UTF-8
 
    <Directory /usr/local/self-service-password>
        AllowOverride None
        <IfVersion >= 2.3>
            Require all granted
        </IfVersion>
        <IfVersion < 2.3>
            Order Deny,Allow
            Allow from all
        </IfVersion>
    </Directory>
 
    LogLevel warn
    ErrorLog /var/log/apache2/ssp_error.log
    CustomLog /var/log/apache2/ssp_access.log combined
</VirtualHost>

You have to change the server name to fit your own domain configuration.

This file should then be included in Apache configuration.

With Debian package, just enable the site like this:
# a2ensite self-service-password

You can also configure Self Service Password in the default virtual host:

Alias /ssp /usr/local/self-service-password
 
<Directory /usr/local/self-service-password>
        AllowOverride None
        <IfVersion >= 2.3>
            Require all granted
        </IfVersion>
        <IfVersion < 2.3>
            Order Deny,Allow
            Allow from all
        </IfVersion>
        DirectoryIndex index.php
        AddDefaultCharset UTF-8
</Directory>

Check you configuration and reload Apache:

# apachectl configtest
# apachectl reload