Under the global section of my virtual host (apache2), I have:
RewriteEngine on
RewriteRule ^/rt$ /
It works when I hit the old /rt url before I log in. I am presented with the log in page. However, when I log in, I immediately get "the page you requested could not be found" in the middle of the page. However, the rest of the GUI loads. Clicking home then clicking on a ticket link with the old /rt portion yields the same error.
Checking the rewrite log it appears that mod_rewrite is doing its job, but RT isn't playing along. I've included my apache 000-default file below.
Ideas?
-Landy
<VirtualHost *:80>
ServerName rt.thecrosbygroup.com
ServerAdmin [email protected]
DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl
RewriteEngine on
RewriteRule ^/rt$ /
RewriteLog "/tmp/rewrite.log"
RewriteLogLevel 2
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /opt/rt3/share/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
SetHandler perl-script
PerlResponseHandler RT::Mason
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn
#CustomLog /var/log/apache2/access.log combined ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
-----"Wayne Richardson" <[email protected]> wrote: -----RewriteEngine on
RewriteRule ^/rt$ /
It works when I hit the old /rt url before I log in. I am presented with the log in page. However, when I log in, I immediately get "the page you requested could not be found" in the middle of the page. However, the rest of the GUI loads. Clicking home then clicking on a ticket link with the old /rt portion yields the same error.
Checking the rewrite log it appears that mod_rewrite is doing its job, but RT isn't playing along. I've included my apache 000-default file below.
Ideas?
-Landy
<VirtualHost *:80>
ServerName rt.thecrosbygroup.com
ServerAdmin [email protected]
DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl
RewriteEngine on
RewriteRule ^/rt$ /
RewriteLog "/tmp/rewrite.log"
RewriteLogLevel 2
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /opt/rt3/share/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
SetHandler perl-script
PerlResponseHandler RT::Mason
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn
#CustomLog /var/log/apache2/access.log combined ServerSignature On
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
To: [email protected]
From: "Wayne Richardson" <[email protected]>
Date: 12/14/2008 01:55PM
Subject: Re: [rt-users] 3.6.1 -> 3.8.1 - Problem with Saved Searches
Its in the rewrite section in your rt apache config file
On 12/14/08, [email protected]
<[email protected]> wrote:
> Hello All,
>
> I'm attempting to move our RT server from 3.6.1 to 3.8.1. I'm not doing a
> actual upgrade, but instead I created a new VM for the new server and did an
> install from the latest tarball.
>
> I did an install up to the point where I should initialize the database. At
> that point, I dumped the database from the old server using mysqldump,
> imported it into the new server, then followed the instructions in
> UPGRADING.mysql to bring the database up to date.
>
> So far so good... I am able to log in and every thing looks normal.
>
> On the old server, the url was of the form: http://server/rt but on the new
> server it is http://newserver/ which is preferable.
>
> Now to the problem... on the main page, the links in any saved saved
> searches reference http://newserver/rt/Ticket... instead of
> http://newserver/Ticket.
>
> /rt does not exist on the new server, and everything else works, but saved
> searches are broken.
>
> Any ideas how I can fix the searches to not reference /rt anymore? This is
> the only issue standing between me and a new RT server... any help would be
> greatly appreciated.
>
> Thanks,
>
> Landy
>
--
Sent from my mobile device
_______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com Commercial support: [email protected] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
