Page 1 of 1

Vhosts file update

Posted: Thu 14. Sep 2023, 09:54
by boka003
Hello there,

We have installed LDAP Kerberos on our website.
To archive this, we have updated /etc/apache2/keyhelp/vhosts/boris.conf file.
https://plugins.miniorange.com/guide-to ... sso#step-1


Now, every time we change something related to the domain in keyhelp, we lose our custom settings.

This is a line that we add:
<Directory "/home/users/boris/www/">
# Require all granted
Require valid-user
Options SymLinksIfOwnerMatch
AuthType Kerberos
AuthName "Kerberos auth"
KrbServiceName HTTP/domain.int@domain.INT
Krb5Keytab /etc/krb5.keytab
BrowserMatch Windows gssapi-no-negotiate
BrowserMatch Chrome gssapi-no-negotiate
KrbMethodNegotiate on
KrbMethodK5Passwd on
#GssapiAllowedMech krb5
#GssapiBasicAuth On
#GssapiCredStore keytab:/etc/krb5.keytab
#GssapiLocalName On
#BrowserMatch Windows gssapi-no-negotiate
</Directory>


Can we somehow keep this line it the file, even if I made some domain-related changes?


Regards

Re: Vhosts file update  [SOLVED]

Posted: Thu 14. Sep 2023, 10:36
by Alexander
Hello,

Of course, the relevant configuration files needs to be updated when changes are triggered within the UI.


1) An update proof method can be found here:
KeyHelp Admin Area -> Domains -> Select the domain you want to update and click on Edit -> Tab 'Apache settings'


2) Alternatively, set the file read-only with the "chattr +i" command (generally a rather bad idea - not recommended)