如何在 bugzilla 中全局更改“urlbase”参数的值?
3 回答
如果您是管理员,则它位于管理 > 参数下。
最近在 Ubuntu 10.04LTS 上安装 bugzilla3 时遇到了同样的问题
我没有编辑/usr/share/perl5/Bugzilla/Constants.pm
文件,而是看到如果变量 debian_webpath 设置为环境变量X_BUGZILLA_WEBPATH的值。如果未设置,则默认为/bugzilla3/
.
确保在您的 apache 设置 (a2enmod env) 中启用了 mod_env 。
然后在我的 apache 配置文件 ( /etc/apache/hosts-available/default
) 中,我添加了行
<VirtualHost *:80>
...
SetEnv X_BUGZILLA_WEBPATH /bugzilla/
...
</VirtualHost>
还登录到 bugzilla 并在以下部分设置urlbase:管理 > 参数。
urlbase = http://my-server-name/bugzilla/
它在 Ubuntu 9.04 中运行不佳,在 Ubuntu 10.10 中仍然无法运行。
更改 /usr/share/perl5/Bugzilla/Constants.pm 中的以下行
$overwritten_locations{'debian_webpath'} = '/your_url_prefix_here/';
/etc/apache2/conf.d/bugzilla3.conf 别名 /your_url_prefix_here /usr/share/bugzilla3/web
sudo vi /etc/bugzilla3/params 'urlbase' => 'http://your_domain.tld/your_url_prefix/'
也许您还需要调整 /usr/share/bugzilla3/debian/params (与上面的第 3 项相同)
祝你好运!;)