Ubuntu 14.04 使用Apache2虚拟主机配置Mantis和Testlink
来源:互联网 发布:群智感知网络 编辑:程序博客网 时间:2024/06/05 17:46
在同一台服务器上使用Apache2配置多个网站,有三种方式:
(1)基于IP
(2)基于主机名
(3)基于端口
本次配置是基于端口的方式实现的。
1、Mantis和Testlink的配置文件
在目录/etc/apache2/sites-available下复制 000-default.conf分别为 mantis-default.conf testlink-default.conf,修改配置文件内容:
mantis-default.conf 如下:
<VirtualHost 192.168.1.22:80>
ServerAdmin webmaster@localhost
ServerName bug.corp.com
DocumentRoot /var/www/mantis
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
testlink-default.conf如下:
<VirtualHost 192.168.1.22:8081>
ServerAdmin webmaster@localhost
ServerName testlink.corp.com
DocumentRoot /var/www/testlink
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
2、使能Mantis和Testlink虚拟主机配置
为配置文件建立使能链接文件:
sudo ln -s /etc/apache2/sites-enable/testlink-default.conf /etc/apache2/sites-available/testlink-default.conf
sudo ln -s /etc/apache2/sites-enable/mantis-default.conf /etc/apache2/sites-available/mantis-default.conf
3、增加监听端口
在/etc/apache2/ports.conf中增加listen 8081的端口监听配置,具体如下:
Listen 8081
Listen 80
<IfModule ssl_module>
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
4、启用Mantis和Testlink虚拟主机配置
使用如下命令:
sudo a2dissite 000-default.confsudo a2ensite mantis-default.confsudo a2ensite testlink-default.conf
5、重启Apache2服务,通过浏览器访问服务器对应的端口即可,如果访问80端口可用用,8081端口不能用,请查看是否是防火墙屏蔽该端口,打开该端口即可。
- Ubuntu 14.04 使用Apache2虚拟主机配置Mantis和Testlink
- Ubuntu apache2 虚拟主机配置
- testLink和mantis整合
- Testlink和mantis整合
- mantis和testlink集成
- testlink和mantis集成
- testlink和mantis
- TestLink和Mantis
- Ubuntu 下apache2 虚拟主机配置
- ubuntu apache2域名&虚拟主机配置
- Testlink+Mantis集成环境配置
- apache2 相关配置和虚拟主机
- 在 ubuntu 14.04 下,配置 apache2 的虚拟主机步骤
- Ubuntu配置apache2.4配置虚拟主机
- Testlink与Mantis使用总结
- 备份 Mantis 和 Testlink 数据库
- testlink和mantis角色整理
- 关于Mantis和Testlink汉化
- C#中异步和多线程的区别
- 使用真机导致Androidstudio打印不出log
- windows客户端时间更新脚本NTP
- PCF8591 AD/DA转换
- 单片机ad/da转换
- Ubuntu 14.04 使用Apache2虚拟主机配置Mantis和Testlink
- CSS3:border-radius隐藏的威力
- Android下录音amr文件
- shell '++'运算符出错和let: not found错误的解决
- Spark经典案例3-数据排序
- JDBC的使用(后台学习之路(七))
- Truncate 表之恢复
- 【设计模式】【十二】享元模式
- 百度知道的问答,别笑抽过去了