Symptoms

OSA has been upgraded from 6.0 to 7.0.

During the upgrade, a brand was migrated to a new host, dedicated for hosting brands, per the upgrade workflow procedures.

The brand hosted a protected page, served by Apache basic authentication module, e.g. a secured proxy-store web page https://brand.com/store.

Former configuration:

<Directory "/usr/local/pem/vhosts/100001/webspace/httpsdocs/store">
        Require valid-user
        AuthType basic
        AuthUserFile /usr/local/pem/vhosts/100001/webspace/pd/1
        AuthName "Please provide user password"
</Directory>

New configuration in /etc/httpd/conf.d/brand_brand.com.conf does not include the same settings.

Cause

All customized Apache configuration for branded sites should be backed up and re-applied after the upgrade to 7.0, as the approach to hosting brands has been completely re-worked.

Resolution

In order to restore the basic authentication for a particular page, e.g. brand.com/store, follow the steps below:

  • create store directory in the website root:

    # mkdir /var/www/brands/brand.com/store
    
  • copy the file storing user passwords for Apache authentication from the original node, e.g. /usr/local/pem/vhosts/100001/webspace/pd/1/.htpasswd, and save it as /var/www/brands/brand.com/store/.htpasswd

  • create /var/www/brands/mbntest.cb.nsc.no/store/.htaccess file with the following content:

    require valid-user
    AuthType basic
    AuthUserFile /var/www/brands/brand.com/store/.htpasswd
    AuthName "Please provide user password"
    

Internal content