here from apache.conf Code: # you will save yourself a lot of trouble. ServerRoot "/etc/apache2" ServerName www.domain.com and here is my VHOST file Code: NameVirtualHost *:443 NameVirtualHost *:80 <VirtualHost *:443> ServerAdmin webmaster@localhost ServerName www.domain.com DocumentRoot /var/www <Directory /> ------------- <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.domain.com DocumentRoot /var/www <Directory /> -------------- must i put domain or ip in VirtualHost directive and in NameVirtualHost?