MantisBT设置局域网访问

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

Liste
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值