ubuntu - Different domains on different ip addresses in apache -



ubuntu - Different domains on different ip addresses in apache -

i trying setup apache serving different domains different ip addresses.

here did in domain.conf in sites-available :

<virtualhost 199.111.222.333> # admin email, server name (domain name) , aliases serveradmin **********@gmail.com servername domain1.com serveralias www.domain1.com # index file , document root (where public files located) directoryindex index.php documentroot /home/apachewebsites/domain1 # custom log file locations loglevel warn errorlog /home/apachewebsites/logs/error.log customlog /home/apachewebsites/logs/access.log combined <directory /home/apachewebsites/domain1/> options indexes followsymlinks multiviews allowoverride require granted allow </directory> </virtualhost>

and second, create domain2.conf , set same content above , changing ip address. working fine domain1.com, domain2.com not working @ all, , neither ip address want sec domain showing apache default page.

apache ubuntu hosting virtualhost

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -