1. 程式人生 > >MantisBT設定區域網訪問

MantisBT設定區域網訪問

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

驗證配置是否成功:

在區域網任一電腦中通過IE登入Mantis系統

http:// 192.168.1.101:8081/mantis/login_page.php即可正常訪問。