unix - Apache server correctly showing site on www.domainname.com but not on domainname.com despite using ServerAlias -


i trying site , running on digitalocean. have installed , can site work @ www.domainname.com when navigate domaminname.com (without www. prefix) default page:

it works!

this default web page server.

the web server software running no content has been added, yet.

what makes strange (to me @ least, i'm not experienced devops) virtualhost file includes server alias believe should take account. domainname.com.conf file is:

<virtualhost *:80>      servername domainname.com     serveralias *.domainname.com domainname.com      serveradmin webmaster@domainname.com     documentroot /var/www/domainname.com/public     directoryindex index.php </virtualhost> 

i tried switching domainname.com www.domainname.com servername , updating serveralias accordingly got same issue. ideas should appreciated.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -