Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000085 [Resin] minor always 04-07-05 00:00 03-29-06 10:54
Reporter user91 View Status public  
Assigned To
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0000085: rewrite-dispatch redirect does not support host
Description RSN-76
We want to be able to redirect based on the host
portion of a URL. Essentially, we want each web-app
to only serve requests for fully specified URLs to the
primary host address. All of the aliases should be
redirected to the primary host address. We need to
preserve the path portion of the request in the
redirect. Consequently, we want to use the
rewrite-dispatch tag.

Here are some examples of rewrite rules that we have
tried, but none of them seem to have any effect:

      <redirect regexp='*$)'
target='$1'/> [^]

This should redirect all requests against the host to the host and
preserve any URL path and search arguments.
Unfortunately, this rule does not seem to ever

This rule, however does:

      <redirect regexp='^/index.html'
target=''/> [^]

This indicates that the host portion of the request is
not available for the regular expression evaluation.

Where should we place our rewrite-dispatch stanzas in
the resin.conf file so that the host portion of the
request is available?
Additional Information RedHat Enterprise 3
IBM JDK 1.4.2
Attached Files

- Relationships

- Notes
04-07-05 00:00

Dispatching based on the host is not yet supported.
03-29-06 10:54


- Issue History
Date Modified Username Field Change
04-07-05 00:00 user91 New Issue
03-29-06 10:54 ferg Note Added: 0000958
03-29-06 10:54 ferg Status acknowledged => closed
03-29-06 10:54 ferg Resolution open => fixed
03-29-06 10:54 ferg version 3.0.12 =>
03-29-06 10:54 ferg Fixed in Version  => 3.0.19

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
35 total queries executed.
28 unique queries executed.
Powered by Mantis Bugtracker