wiki:custom-mosh-domain

Custom MOSH domain

All servers have a canonical domain ending in mayfirst.org (e.g. roe.mayfirst.org). These MOSH'es are configured to use this canonical domain name for apache (specifically to reach phpmyadmin) and to use the canonical domain name for x509 certificates.

Some members run their own dedicated MOSH'es and prefer to have a server alias, usually because they want to use their own x509 certificates the work with their own domain names.

x509

When configuring custom x509 certificates, simply create a symlink from /etc/ssl/SERVERNAME.mayfirst.org.crt that points to the member's certificate and a symlink from /etc/ssl/private/SERVERNAME.mayfirst.org.pem that points to the members combined certificate and key file. No changes to puppet are required, these symlinks will be preserved.

apache

If you'd like to have http requests sent to the canonical name redirected to the alias, configure the server via puppet using the apache_server_alias variable in the mosh class. For example, here is the setting for roe.pp:

  class { "m_mosh":
    fcgid_max_processes => 10,
    apache_server_alias => "roe.nnaf.org"
  }
Last modified 7 years ago Last modified on Nov 13, 2012, 5:19:46 PM