I have a vps server. LAMP is installed in it.
Consider the IP as 99.88.77.66
I want to run two application on this site. One is vtiger and other is 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 help me configure in such a way that, by access http://99.88.77.66/redmine
-- I would be able to access redmine and by http://99.88.77.66/vtiger
-- vtigerCRM.
You will not be able to acces it like that, but you can configure,
<VirtualHost *:80>
DocumentRoot "/var/www/html/vtigerCRM"
ServerName vtigercrm.com
ServerAlias www.vtigercrm.com
and the your /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 you will be able to access the websites on your new IP
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.