Steps to set-up
an Apache SSL VirtualHost
as LCG BDII software repository

Objective:
To define and configure the VirtualHost https://lcg-bdii.cern.ch:5252 on host lxshare0251.cern.ch.

Background:
DNS aliases lcg-vo.cern.ch (for the LDAP configuration of the DTEAM Virtual Organisation (VO)) and lcg-registrar.cern.ch (for the LDAP configuration of O=registrar) were already defined for this host as needed for the 'group' entries in the gridmap configuration file.
The hostalias lcg-registrar.cern.ch is also used (in the apache configuration file /etc/httpd/conf/httpd.conf ) as the default SSL web server (port-number 443), accepting client certificates for LCG user registration via https://lcg-registrar.cern.ch.

Steps:

  1. Defined DNS alias lcg-bdii.cern.ch in http://network.cern.ch for lxshare0251.cern.ch to create a clearly separate URL for this VirtualHost.
  2. Obtain a separate host certificate for this host alias and install it as well as its key in a designated directory on the host with different filenames.
  3. Changed the apache configuration file so that:
  4. Prepared afs directory /afs/cern.ch/project/gd/www/gis/bdii-conf with appropriate ACLs for the data owners. A number of people in the IT/GD/GIS section and the group's webmasters have ' rlidwka' access control rights in this directory.
  5. Wrote a ./.htaccess file to allow directory listing.

Apache configuration sample:
The sub-set of the /etc/httpd/conf/httpd.conf file specific to the SSL-VirtualHost definition can be found here. All hostname, portnumber and filepath information is changed to generic values for security and privacy reasons.

Related links:

Maria Dimou, IT/GD, Grid Infrastructure Services