linux - Apache Configure Multiple Site on same IP, to be access remotely -
i have vps server. lamp installed in it.
consider ip 99.88.77.66
i want run 2 application on site. 1 vtiger , other redmine.
installation location redmine: /var/www/html/redmine vtiger: /var/www/html/vtigercrm
i configured httpd.conf as..
servername 99.88.77.66:80
..
documentroot "/var/www/html"
..
<directory "/var/www/html">
..
namevirtualhost *:80
..
<virtualhost *:80> documentroot "/var/www/html" </virtualhost> <virtualhost *:80> documentroot "/var/www/html/redmine/public" servername localhost serveralias redmine </virtualhost> <virtualhost *:80> documentroot "/var/www/html/vtigercrm" servername localhost serveralias vtiger </virtualhost>
/etc/hosts as..
127.0.0.1 redmine 127.0.0.1 vtiger 127.0.0.1 localhost
please me configure in such way that, access http://99.88.77.66/redmine
-- able access redmine , http://99.88.77.66/vtiger
-- vtigercrm.
you not able acces that, can configure,
<virtualhost *:80> documentroot "/var/www/html/vtigercrm" servername vtigercrm.com serveralias www.vtigercrm.com
and /etc/hosts(on linux/mac) or system32/drivers/etc/hosts (on windows) file add
99.88.77.66 vtigercrm.com 99.88.77.66 redmine.com
and able access websites on new ip
Comments
Post a Comment