I have created a virtual host using apache in ubuntu for my wordpress site. I disabled the default page apache servers and enabled my site, but the default site is still displayed instead of my site. What could be wrong?
NOTE I used an IP address instead of servername/xxxx.com. Can that be the reason? Thank you
<virtualHost *:80>
ServerAdmin webmaster@localhost
ServerName xx.xx.90.xx
DocumentRoot /var/www/wordpress
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /var/www/wordpress>
Options -Indexes
</Directory>
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi
</IfModule>
<virtualHost/>