Could not reliably determine the server’s fully qualified domain name
sudo gedit /etc/apache2/httpd.conf
ServerName localhost
sudo /etc/init.d/apache2 restart
sudo apt-get install libapache2-mod-geoip
sudo a2enmod rewrite sudo a2enmod geoip
# if country is PT
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^PT$
RewriteRule ^(.*)$ http://www.site.pt
# else
RewriteEngine on
RewriteRule ^(.*)$ http://www.site/en/
<directory /var/www/site/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</directory>
GeoIPEnable On GeoIPDBFile /usr/local/share/geoip/geoip.dat
sudo apt update && sudo apt install systemd-timesyncd && sudo systemctl enable --now systemd-timesyncd