ubuntu 14.04 - Setting up multiple sites in Apache -


i have following host file entries on ubuntu 14 machine running apache

127.0.0.1 localhost 10.20.32.20 library.mydnsname.org 10.20.32.20 library-intra.mydnsname.org 10.20.32.20 mtf  

and

sudo a2ensite library sudo a2ensite mtf sudo service apache2 restart 

now when browse site.. can access library.mydnsname.org page. when

a2dissite library  

i can access mtf site. please note both site has been added sites-available. idea how might run both site on same server? input

i think have been more helpful if had included apache sites configuration , how accessing site (whether ip or hostname).

if accessing site ip select default vhost first vhost definition in configuration file. more info can check out apache's doc.

please try access sites hostnames , post errors in comments when tried access mtf site first time.


Comments