Multiple CiviHR installation in single Amazon AWS instance
It's purely apache/httpd configuration issue. Create 2 subdomain demo1.domain.com and demo2.domain.com and have 2 conf file under sites-available and sites-enabled with following config

demo1.domain.com.conf

&lt;VirtualHost *:80&gt;

  DocumentRoot /var/www/html/demo1

  ServerName demo1.domain.com

  ServerAdmin admin@domain.com

  &lt;Directory "/var/www/html/demo1"&gt;

    AllowOverride All

    Require all granted

    Options -Indexes

  &lt;/Directory&gt;

  ErrorLog  /var/log/apache2/demo1.domain.com.error.log

  # Possible values include: debug, info, notice, warn, error, crit,

  # alert, emerg.

  LogLevel warn

  CustomLog  /var/log/apache2/demo1.domain.com.access.log  combined

&lt;/VirtualHost&gt;


demo2.domain.com.conf

&lt;VirtualHost *:80&gt;

  DocumentRoot /var/www/html/demo2

  ServerName demo2.domain.com

  ServerAdmin admin@domain.com

  &lt;Directory "/var/www/html/demo2"&gt;

    AllowOverride All

    Require all granted

    Options -Indexes

  &lt;/Directory&gt;

  ErrorLog  /var/log/apache2/demo2.domain.com.error.log

  # Possible values include: debug, info, notice, warn, error, crit,

  # alert, emerg.

  LogLevel warn

  CustomLog  /var/log/apache2/demo2.domain.com.access.log  combined

&lt;/VirtualHost&gt;