I'm trying to migrate virtual hosts entries to a new server but pages are still being served from the old server.
What I've done on the new server:
I have created entries for the domain name in
sites-available
and created symlinks insites-enabled
. Conf file looks like this<VirtualHost *:80>
ServerName domain_name:80 ServerAdmin email@admin.com DocumentRoot "/home/domain/Sites" DirectoryIndex index.html index.php
</VirtualHost>
I have
NameVirtualHosts *:80
activated in/etc/httpd/conf/httpd.conf
- I edited
/etc/hosts
to includeserver_ip domain_name
On the old server, the only thing I've done is to remove the VirtualHost entry for the site I'm trying to move over.
But I still get content from the old server.
I'm not sure if there are other things I need to do on the old server to properly migrate the virtual hosts to the new server.