So I had a free .gq domain which will expire in a few days, so I bought an .xyz domain. What are the things I need to change in Apache (Debian) so that everything will work the way it always did?
I already changed the virtual host config files in /etc/apache/sites-available
, ran the command a2dissite NAME-OF-SUBDOMAIN.domain.gq
and a2ensite NAME-OF-SUBDOMAIN.domain.xyz
. The subdomains still doesn't work. Whenever I try to reach mail.domain.xyz I end up on the www.domain.xyz site.
Summary:
- Configured Apache2 with domain.gq
- I now use domain.xyz
- How do I tell Apache that I don't use old domain anymore but the new one?
- How do I get my subdomains (vitual host) to work again?
Example of one virtual host file (all other vh files have the same scheme):
<VirtualHost *:80>
ServerName pic.domain.xyz
DocumentRoot /var/www/pic/
</VirtualHost>
It works now. I don't exactly know why. The only thing I did was apt update && apt upgrade -y
. I don't know if the upgrade was responsible for it, I did only check a 2 hours after I updated.