Bug 15890 - koha-create doesn't put a dot between library name and domain name in apache site
Summary: koha-create doesn't put a dot between library name and domain name in apache ...
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Installation and upgrade (command-line installer) (show other bugs)
Version: 3.22
Hardware: All Linux
: P5 - low major (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-24 11:11 UTC by ivan zerlotti
Modified: 2019-06-27 09:24 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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"