Mantis默认为只能够本机访问,若要在局域网内访问则需要修改Apache的配置文件。
打开apache目录(C:\xampp\apache\conf\httpd.conf ),用记事本打开httpd.conf 文件,
插入代码:Listen 192.168.1.101:80,如下:
……
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 127.0.0.1:80
Listen 192.168.1.101:80
我的端口被占用,设置端口号位8081,因此使用如下代码:
……
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 127.0.0.1:80
Listen 192.168.1.101:8081

MantisBT默认仅允许本地访问,要让局域网内的其他电脑可以访问,需修改Apache的httpd.conf文件,添加监听指定IP和端口的配置,例如Listen 172.16.34.85:8081。验证配置成功后,局域网内的设备可以通过http://172.16.34.85:8081/mantis/login_page.php访问Mantis系统。
最低0.47元/天 解锁文章

1727

被折叠的 条评论
为什么被折叠?



