Bug 15890

Summary: koha-create doesn't put a dot between library name and domain name in apache site
Product: Koha Reporter: ivan zerlotti <manager>
Component: Installation and upgrade (command-line installer)Assignee: Galen Charlton <gmcharlt>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: mtompset
Version: 3.22   
Hardware: All   
OS: Linux   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description ivan zerlotti 2016-02-24 11:11:02 UTC
When creating site with koha-create with a third level domain the ServerName directive in the /etc/apache2/sites-enabled conf file doesn't put a dot between library name and domain name. Both for OPAC and Intranet sections.
Therefore you are unable to reach both the interfaces, public and staff.
Comment 1 Mark Tompsett 2017-06-22 17:27:43 UTC
You likely edited out the initial . from the DOMAIN in the /etc/koha/koha-sites.conf file before you did your koha-create command. If you place the initial . in the DOMAIN variable, it doesn't matter how many levels of domains are being used.

Around line 589 in /usr/sbin/koha-create:
opacdomain="$OPACPREFIX$name$OPACSUFFIX$DOMAIN"
intradomain="$INTRAPREFIX$name$INTRASUFFIX$DOMAIN"