如何在/rt
rt.example.com
更改为子域apache
目前我在debian上设置了virtualhsot,在我的所有网站上如果你转到mysite.com/r
它会转到请求跟踪器。
我想将其设置为在单个子域rt.synergysystems.co.za
当前Vhost配置:
AddDefaultCharset UTF-8
PerlSetEnv RT_SITE_CONFIG /etc/request-tracker4/RT_SiteConfig.pm
Alias /rt /usr/share/request-tracker4/html
<Location /rt>
SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /usr/share/request-tracker4/libexec/rt-server
</Location>
<Location /rt/REST/1.0/NoAuth>
Order Allow,Deny
Allow from 127.0.0.1
</Location>
<Perl>
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/usr/share/request-tracker4/libexec/rt-server");
</Perl>
答案 0 :(得分:0)
alias /rt
表示apache /rt
上与document root
的别名。
您需要做的就是设置标准Virtualhost
,ServerName
,DocumentRoot
和Directory
,如下所示:
<VirtualHost *:80>
ServerName rt.mysite.co.za
AddDefaultCharset UTF-8
DocumentRoot "/usr/share/request-tracker4/html"
<Directory /usr/share/request-tracker4/html >
Order allow,deny
Allow from all
SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /usr/share/request-tracker4/libexec/rt-server
</Directory>
<Perl>
use Plack::Handler::Apache2;
Plack::Handler::Apache2->preload("/usr/share/request-tracker4/libexec/rt-server");
</Perl>
</VirtualHost>