No virtual host + initial password not working

I don’t want to use virtual hosts. With passwords flying, I’m using
https for RT.

The rt.conf in /etc/httpd/conf.d is below.

The initial root password appears to be defined in /etc/rt/initialdata
It isn’t being picked up.

1 # Now you just have to add this line to httpd.conf
2 # Include /path/to/this/file
3 Alias /rt "/var/rt/html"
4 Alias /NoAuth "/var/rt/html/NoAuth"
5 Alias /Admin "/var/rt/html/Admin"
6 Alias /Approvals "/var/rt/html/Approvals"
7 Alias /autohandler "/var/rt/html/autohandler"
8 Alias /Download "/var/rt/html/Download"
9 Alias /Elements "/var/rt/html/Elements"
10 Alias /REST "/var/rt/html/REST"
11 Alias /Search "/var/rt/html/Search"
12 Alias /SelfService "/var/rt/html/SelfService"
13 Alias /Ticket "/var/rt/html/Ticket"
14 Alias /Tools "/var/rt/html/Tools"
15 Alias /User "/var/rt/html/User"
16
17 PerlRequire /usr/bin/webmux.pl
18 <Location /rt>
19 Options None
20 SetHandler perl-script
21 PerlHandler RT::Mason
22
23
24 PerlFixupHandler Apache::SmallProf
25
26
27
28
29 <Location /NoAuth/images>
30 SetHandler default-handler
31
32
33 # To use this you have to start apache with -DPerlStatus.
34 #
35 # In RHEL, add the following line to /etc/sysconfig/httpd:
36 #
37 # OPTIONS=-DPerlStatus
38
39 <Location /perl-status>
40 SetHandler perl-script
41 PerlHandler Apache2::Status
42 PerlSetVar StatusOptionsAll On
43 PerlSetVar StatusTerse On
44 PerlSetVar StatusTerseSize On
45 PerlSetVar StatusTerseSizeMainSummary On
46 PerlSetVar StatusLexInfo On
47
48

I am guessing that the file /etc/rt/initialdata is not being read.
However, when I grep every file I can find, I cannot find a reference to
initialdata. How does it get included?

CentOS 5 install from RPM.

Thanks,

Dale

Dale J. Chatham wrote:

>From the RPM for RHEL5 from rpm.bone.com:

Alias /rt3 “/usr/share/rt3/html”

PerlRequire /usr/sbin/webmux.pl

<Directory “/usr/share/rt3/html”>

AllowOverride All

Options ExecCGI FollowSymLinks

RewriteEngine On

RedirectMatch permanent (.*)/$ $1/index.html

AddDefaultCharset UTF-8

SetHandler perl-script

PerlHandler RT::Mason

</Directory>

The mysql database is initally populated with

/usr/sbin/rt-setup-database init --action init --dba root
–dba-password <password>

It werkz!

Dale J. Chatham wrote:

I am guessing that the file /etc/rt/initialdata is not being read.  
However, when I grep every file I can find, I cannot find a reference to 
initialdata.  How does it get included?

CentOS 5 install from RPM.

Thanks,

Dale

Dale J. Chatham wrote:

I don't want to use virtual hosts.  With passwords flying, I'm using 
https for RT.

The rt.conf in /etc/httpd/conf.d is below.

The initial root password appears to be defined in /etc/rt/initialdata
It isn’t being picked up.

1 # Now you just have to add this line to httpd.conf
2 # Include /path/to/this/file
3 Alias /rt “/var/rt/html”
4 Alias /NoAuth “/var/rt/html/NoAuth”
5 Alias /Admin “/var/rt/html/Admin”
6 Alias /Approvals “/var/rt/html/Approvals”
7 Alias /autohandler “/var/rt/html/autohandler”
8 Alias /Download “/var/rt/html/Download”
9 Alias /Elements “/var/rt/html/Elements”
10 Alias /REST “/var/rt/html/REST”
11 Alias /Search “/var/rt/html/Search”
12 Alias /SelfService “/var/rt/html/SelfService”
13 Alias /Ticket “/var/rt/html/Ticket”
14 Alias /Tools “/var/rt/html/Tools”
15 Alias /User “/var/rt/html/User”
16
17 PerlRequire /usr/bin/webmux.pl
18 <Location /rt>
19 Options None
20 SetHandler perl-script
21 PerlHandler RT::Mason
22 <IfDefine PerlDProf>
23 <IfDefine PerlSmallProf>
24 PerlFixupHandler Apache::SmallProf
25 </IfDefine>
26 </IfDefine>
27 </Location>
28
29 <Location /NoAuth/images>
30 SetHandler default-handler
31 </Location>
32
33 # To use this you have to start apache with -DPerlStatus.
34 #
35 # In RHEL, add the following line to /etc/sysconfig/httpd:
36 #
37 # OPTIONS=-DPerlStatus
38 <IfDefine PerlStatus>
39 <Location /perl-status>
40 SetHandler perl-script
41 PerlHandler Apache2::Status
42 PerlSetVar StatusOptionsAll On
43 PerlSetVar StatusTerse On
44 PerlSetVar StatusTerseSize On
45 PerlSetVar StatusTerseSizeMainSummary On
46 PerlSetVar StatusLexInfo On
47 </Location>
48 </IfDefine>

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com