我有一个LAMP,ubuntu和apache2本地服务器,并且想要安装几个web应用程序(openproject,vtiger,suitecrm,sugar crm等)来测试他们。他们都是基于网络的服务。apache2:在本地服务器的同一域下托管多个网站
我解开它们在/ var/www和配置的虚拟主机为:
对于vtigerCRM的服务:/etc/apache2/sites-available/vtigercrm.conf
#ServerName www.example.com
ServerAdmin [email protected]
DocumentRoot /var/www/vtigercrm
ServerName vtigercrm
ServerAlias vtigercrm.serverMachine.synology.me
Alias /vtigercrm /var/www/vtigercrm
ErrorLog ${APACHE_LOG_DIR}/vtigercrm-error.log
CustomLog ${APACHE_LOG_DIR}/vtigercrm-access.log combined
对于套件CRM服务:/etc/apache2/sites-available/suitecrm.conf
ServerAdmin [email protected]
DocumentRoot /var/www/suitecrm
ServerName suitecrm
ServerAlias suitecrm.serverMachine.synology.me
ServerAlias localhost
Alias /suitecrm /var/www/suitecrm
ErrorLog ${APACHE_LOG_DIR}/suitecrm-error.log
CustomLog ${APACHE_LOG_DIR}/suitecrm-access.log combined
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
和F或openproject:/etc/apache2/sites-available/openproject.conf
Include /etc/openproject/addons/apache2/includes/server/*.conf
ServerName openproject
ServerAlias serverMachine.synology.me
ServerAlias localhost
DocumentRoot /opt/openproject/public
ProxyRequests off
Include /etc/openproject/addons/apache2/includes/vhost/*.conf
ProxyPass /openproject/ http://127.0.0.1:6000/openproject/ retry=0
ProxyPassReverse /openproject/ http://127.0.0.1:6000/openproject/
我可以访问与他们ServerAlias地址服务的每一个:
vtigercrm.serverMachine.synology。我
suitecrm.serverMachine.synology.me
serverMachine.synology.me/openproject
我该如何配置,才能访问每个服务,以访问同一个域的不同文件夹?例如:
为openproject的情况下工作:
感谢
编辑1
我已经成功地解决了一半编辑虚拟主机配置openproject添加问题:
Alias /vtigercrm /var/www/vtigercrm
Alias /suitecrm /var/www/suitecrm
这似乎表明openproject正在启动时访问。我需要做些什么来避免需要openproject虚拟主机才能正确访问vtiger,suitecrm和其他网站?
谢谢
2016-11-02
theme