Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3096 | minor | always | 11-24-08 14:30 | 03-18-09 15:52 | |
|
|||||
Reporter: | ferg | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | urgent | OS Version: | |||
Status: | closed | Product Version: | 3.2.1 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.0 | ||
|
|||||
Summary: | 0003096: dynamic rewrite-dispatch | ||||
Description: |
(rep by Leonid Geller) Protocol://hostname:port/x/y.html [^] Always forwards to Protocol://hostname:port/y.html [^] Unless x matches a specified regex. Where x and y.html are not known until runtime, and both could be empty. It is easy to do the above if x is known in advance, e.g. <forward regexp="^/x" target="/" /> But I cannot figure out how to do this dynamically, so, except for a short list of ?folders? (really servlet mappings), all requests redirect to the root app. Example 1: http://hostname.com:88/somefolder [^] and http://hostname.com:88/somefolder/index.html [^] should load http://hostname.com:88/index.html [^] Example 2: http://hostname.com:88/foo.html [^] and http://hostname.com:88/somefolder/foo.html [^] should load the same page: http://hostname.com:88/foo.html [^] Example 3: http://hostname.com:88/special/foo.html [^] should go to /special/foo.html because ?/special? is in the exceptions regex. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|