Athento is installed by default on a subdomain of athento and is installed with a valid Athento certificate; so it is accessible in a url like: https://USUARIO.athento.com
If you wish to modify this configuration and replace it with another domain name, follow the steps below:
Editar /etc/apache2/sites-available/athentose.conf
Replace:
<Host virtual *:80>
ServerName USUARIO.athento.com
Redirección 307 / https://USUARIO.athento.com
Por:
<VirtualHost *:80>
ServerName NUEVA_URL
ServerAlias USUARIO.athento.com
Redirect 307 / https://NUEVA_URL
Replace:
<VirtualHost *:443>
ServerName USUARIO.athento.com
Por:
<VirtualHost *:443>
ServerName NUEVA_URL
ServerAlias USUARIO.athento.com
Change the apache certificates for others (they must be in apache2 standard format):
The athento certificates installed by default are:
SSLCACertificateFile /etc/ssl/athento/gd_bundle-g2-g1.crt
SSLCertificateKeyFile /etc/ssl/athento/athento.key
SSLCertificateFile /etc/ssl/athento/athento.crt
Place, inside /etc/ssl/USER/ the new certificates, and edit the same file /etc/apache2/sites-available/athentose.conf commenting the previous lines and putting the new ones where the certificates have been previously placed:
#SSLCACertificateFile /etc/ssl/athento/gd_bundle-g2-g1.crt
#SSLCertificateKeyFile /etc/ssl/athento/athento.key
#SSLCertificateFile /etc/ssl/athento/athento.crt
SSLCACertificateFile /etc/ssl/USUARIO/gd_bundle-g2-g1.crt
SSLCertificateKeyFile /etc/ssl/USUARIO/USUARIO.key
SSLCertificateFile /etc/ssl/USUARIO/USUARIO.crt
PS: Information about the format of apache certificates:
https://httpd.apache.org/docs/2.4/ssl/ssl_howto.html
Editing local_settings.py
The installation properties file must be modified so that the default URL that is taken in any case is the new one.
We edit:
/var/www/athentose/athentose/settings_custom/local_settings.py
Where it said:
SITE_URL = 'https://USUARIO.athento.com'
We put:
#SITE_URL = 'https://USUARIO.athento.com'
SITE_URL = 'https://NUEVA_URL'
It is necessary to restart apache to take all the previous changes:
sudo service apache2 restart
Finally, in Athento, the new domain is configured in the Team:
Comments
0 comments
Please sign in to leave a comment.