You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Michael A. Smith (JIRA)" <ji...@apache.org> on 2011/02/23 02:23:38 UTC
[jira] Created: (TS-675) Traffic Server 2.1.5 does not respect
redirect directives in remap.config
Traffic Server 2.1.5 does not respect redirect directives in remap.config
-------------------------------------------------------------------------
Key: TS-675
URL: https://issues.apache.org/jira/browse/TS-675
Project: Traffic Server
Issue Type: Bug
Components: Remap API
Affects Versions: 2.1.5
Environment: Linux NAZ-PLONE-2020 2.6.36-gentoo-r5 #1 SMP Wed Feb 9 15:16:31 EST 2011 x86_64 Intel(R) Xeon(R) CPU E5540 @ 2.53GHz GenuineIntel GNU/Linux
Apache Traffic Server - traffic_server - 2.1.5-unstable - (build # 1913 on Feb 9 2011 at 13:42:56)
Reporter: Michael A. Smith
Traffic Server does not seem to respect the redirect rules in remap.config at all. I've tried several iterations of the below to no avail.
# fgrep proxy.config.url_remap records.config
CONFIG proxy.config.url_remap.default_to_server_pac INT 0
CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1
CONFIG proxy.config.url_remap.remap_required INT 0
CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
CONFIG proxy.config.url_remap.filename STRING remap.config
# cat remap.config
redirect https://naz-plone-2020/ https://2020.naz.edu/
redirect http://naz-plone-2020/ http://2020.naz.edu/
map https://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/https/naz-plone-2020/Plone/VirtualHostRoot
map http://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/http/naz-plone-2020/Plone/VirtualHostRoot
# traffic_line -x
# curl -D- -o/dev/null http://naz-plone-2020 2> /dev/null
HTTP/1.1 404 Not Found on Accelerator
Date: Wed, 23 Feb 2011 01:20:37 GMT
Connection: close
Server: ATS/2.1.5-unstable
Cache-Control: no-store
Content-Type: text/html
Content-Language: en
Content-Length: 240
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (TS-675) Traffic Server 2.1.5 does not respect
redirect directives in remap.config
Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-675:
-----------------------------
Assignee: Leif Hedstrom
> Traffic Server 2.1.5 does not respect redirect directives in remap.config
> -------------------------------------------------------------------------
>
> Key: TS-675
> URL: https://issues.apache.org/jira/browse/TS-675
> Project: Traffic Server
> Issue Type: Bug
> Components: Remap API
> Affects Versions: 2.1.5
> Environment: Linux NAZ-PLONE-2020 2.6.36-gentoo-r5 #1 SMP Wed Feb 9 15:16:31 EST 2011 x86_64 Intel(R) Xeon(R) CPU E5540 @ 2.53GHz GenuineIntel GNU/Linux
> Apache Traffic Server - traffic_server - 2.1.5-unstable - (build # 1913 on Feb 9 2011 at 13:42:56)
> Reporter: Michael A. Smith
> Assignee: Leif Hedstrom
> Fix For: 2.1.7
>
> Attachments: ats-no-redirect.txt
>
>
> Traffic Server does not seem to respect the redirect rules in remap.config at all. I've tried several iterations of the below to no avail.
> {code}
> # fgrep proxy.config.url_remap records.config
> CONFIG proxy.config.url_remap.default_to_server_pac INT 0
> CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1
> CONFIG proxy.config.url_remap.remap_required INT 0
> CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
> CONFIG proxy.config.url_remap.filename STRING remap.config
> # cat remap.config
> redirect https://naz-plone-2020/ https://2020.naz.edu/
> redirect http://naz-plone-2020/ http://2020.naz.edu/
> map https://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/https/naz-plone-2020/Plone/VirtualHostRoot
> map http://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/http/naz-plone-2020/Plone/VirtualHostRoot
> # traffic_line -x
> # curl -D- -o/dev/null http://naz-plone-2020 2> /dev/null
> HTTP/1.1 404 Not Found on Accelerator
> Date: Wed, 23 Feb 2011 01:20:37 GMT
> Connection: close
> Server: ATS/2.1.5-unstable
> Cache-Control: no-store
> Content-Type: text/html
> Content-Language: en
> Content-Length: 240
> {code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (TS-675) Traffic Server 2.1.5 does not respect
redirect directives in remap.config
Posted by "Michael A. Smith (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael A. Smith updated TS-675:
--------------------------------
Description:
Traffic Server does not seem to respect the redirect rules in remap.config at all. I've tried several iterations of the below to no avail.
{code}
# fgrep proxy.config.url_remap records.config
CONFIG proxy.config.url_remap.default_to_server_pac INT 0
CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1
CONFIG proxy.config.url_remap.remap_required INT 0
CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
CONFIG proxy.config.url_remap.filename STRING remap.config
# cat remap.config
redirect https://naz-plone-2020/ https://2020.naz.edu/
redirect http://naz-plone-2020/ http://2020.naz.edu/
map https://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/https/naz-plone-2020/Plone/VirtualHostRoot
map http://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/http/naz-plone-2020/Plone/VirtualHostRoot
# traffic_line -x
# curl -D- -o/dev/null http://naz-plone-2020 2> /dev/null
HTTP/1.1 404 Not Found on Accelerator
Date: Wed, 23 Feb 2011 01:20:37 GMT
Connection: close
Server: ATS/2.1.5-unstable
Cache-Control: no-store
Content-Type: text/html
Content-Language: en
Content-Length: 240
{code}
was:
Traffic Server does not seem to respect the redirect rules in remap.config at all. I've tried several iterations of the below to no avail.
# fgrep proxy.config.url_remap records.config
CONFIG proxy.config.url_remap.default_to_server_pac INT 0
CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1
CONFIG proxy.config.url_remap.remap_required INT 0
CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
CONFIG proxy.config.url_remap.filename STRING remap.config
# cat remap.config
redirect https://naz-plone-2020/ https://2020.naz.edu/
redirect http://naz-plone-2020/ http://2020.naz.edu/
map https://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/https/naz-plone-2020/Plone/VirtualHostRoot
map http://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/http/naz-plone-2020/Plone/VirtualHostRoot
# traffic_line -x
# curl -D- -o/dev/null http://naz-plone-2020 2> /dev/null
HTTP/1.1 404 Not Found on Accelerator
Date: Wed, 23 Feb 2011 01:20:37 GMT
Connection: close
Server: ATS/2.1.5-unstable
Cache-Control: no-store
Content-Type: text/html
Content-Language: en
Content-Length: 240
> Traffic Server 2.1.5 does not respect redirect directives in remap.config
> -------------------------------------------------------------------------
>
> Key: TS-675
> URL: https://issues.apache.org/jira/browse/TS-675
> Project: Traffic Server
> Issue Type: Bug
> Components: Remap API
> Affects Versions: 2.1.5
> Environment: Linux NAZ-PLONE-2020 2.6.36-gentoo-r5 #1 SMP Wed Feb 9 15:16:31 EST 2011 x86_64 Intel(R) Xeon(R) CPU E5540 @ 2.53GHz GenuineIntel GNU/Linux
> Apache Traffic Server - traffic_server - 2.1.5-unstable - (build # 1913 on Feb 9 2011 at 13:42:56)
> Reporter: Michael A. Smith
>
> Traffic Server does not seem to respect the redirect rules in remap.config at all. I've tried several iterations of the below to no avail.
> {code}
> # fgrep proxy.config.url_remap records.config
> CONFIG proxy.config.url_remap.default_to_server_pac INT 0
> CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1
> CONFIG proxy.config.url_remap.remap_required INT 0
> CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
> CONFIG proxy.config.url_remap.filename STRING remap.config
> # cat remap.config
> redirect https://naz-plone-2020/ https://2020.naz.edu/
> redirect http://naz-plone-2020/ http://2020.naz.edu/
> map https://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/https/naz-plone-2020/Plone/VirtualHostRoot
> map http://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/http/naz-plone-2020/Plone/VirtualHostRoot
> # traffic_line -x
> # curl -D- -o/dev/null http://naz-plone-2020 2> /dev/null
> HTTP/1.1 404 Not Found on Accelerator
> Date: Wed, 23 Feb 2011 01:20:37 GMT
> Connection: close
> Server: ATS/2.1.5-unstable
> Cache-Control: no-store
> Content-Type: text/html
> Content-Language: en
> Content-Length: 240
> {code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (TS-675) Traffic Server 2.1.5 does not respect
redirect directives in remap.config
Posted by "ben snowden (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999065#comment-12999065 ]
ben snowden commented on TS-675:
--------------------------------
i have a similar problem with https map rules. if i put in the following rule in the remap config:
"map https://external.domain.com/ http://internal.domain.com/"
if i browse to https://external.domain.com/, then i am redirected as expected
if i browse to https://external.domain.com/path, then i get a 404 error
If i change the map rule to "map http://external.domain.com/ http://internal.domain.com/",
then i can browse to http://external.domain.com/ and http://external.domain.com/path fine
ATS 2.15 on ubuntu 10.04
> Traffic Server 2.1.5 does not respect redirect directives in remap.config
> -------------------------------------------------------------------------
>
> Key: TS-675
> URL: https://issues.apache.org/jira/browse/TS-675
> Project: Traffic Server
> Issue Type: Bug
> Components: Remap API
> Affects Versions: 2.1.5
> Environment: Linux NAZ-PLONE-2020 2.6.36-gentoo-r5 #1 SMP Wed Feb 9 15:16:31 EST 2011 x86_64 Intel(R) Xeon(R) CPU E5540 @ 2.53GHz GenuineIntel GNU/Linux
> Apache Traffic Server - traffic_server - 2.1.5-unstable - (build # 1913 on Feb 9 2011 at 13:42:56)
> Reporter: Michael A. Smith
> Fix For: 2.1.7
>
> Attachments: ats-no-redirect.txt
>
>
> Traffic Server does not seem to respect the redirect rules in remap.config at all. I've tried several iterations of the below to no avail.
> {code}
> # fgrep proxy.config.url_remap records.config
> CONFIG proxy.config.url_remap.default_to_server_pac INT 0
> CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1
> CONFIG proxy.config.url_remap.remap_required INT 0
> CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
> CONFIG proxy.config.url_remap.filename STRING remap.config
> # cat remap.config
> redirect https://naz-plone-2020/ https://2020.naz.edu/
> redirect http://naz-plone-2020/ http://2020.naz.edu/
> map https://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/https/naz-plone-2020/Plone/VirtualHostRoot
> map http://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/http/naz-plone-2020/Plone/VirtualHostRoot
> # traffic_line -x
> # curl -D- -o/dev/null http://naz-plone-2020 2> /dev/null
> HTTP/1.1 404 Not Found on Accelerator
> Date: Wed, 23 Feb 2011 01:20:37 GMT
> Connection: close
> Server: ATS/2.1.5-unstable
> Cache-Control: no-store
> Content-Type: text/html
> Content-Language: en
> Content-Length: 240
> {code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (TS-675) Traffic Server 2.1.5 does not respect
redirect directives in remap.config
Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001850#comment-13001850 ]
Leif Hedstrom commented on TS-675:
----------------------------------
I have a fix for this, that I will commit soon (doing some more tests). Do remember though that all "redirect" map rules have lower priority than a "map" rule. So, if a map rule matches the request, it will always take effect, even if it's later in the remap.config file order. E.g. something like this will work
redirect http://www.ogre.com/path1 http://www.apache.org
map http://www.ogre.com/path2 http://real.ogre.com
while this will not work:
redirect http://www.ogre.com/path1 http://www.apache.org
map http://www.ogre.com http://real.ogre.com
I *think* we have a separate bug filed for that, probably targeted for v3.1, but it's a wee bit complicated to fix I think.
> Traffic Server 2.1.5 does not respect redirect directives in remap.config
> -------------------------------------------------------------------------
>
> Key: TS-675
> URL: https://issues.apache.org/jira/browse/TS-675
> Project: Traffic Server
> Issue Type: Bug
> Components: Remap API
> Affects Versions: 2.1.5
> Environment: Linux NAZ-PLONE-2020 2.6.36-gentoo-r5 #1 SMP Wed Feb 9 15:16:31 EST 2011 x86_64 Intel(R) Xeon(R) CPU E5540 @ 2.53GHz GenuineIntel GNU/Linux
> Apache Traffic Server - traffic_server - 2.1.5-unstable - (build # 1913 on Feb 9 2011 at 13:42:56)
> Reporter: Michael A. Smith
> Assignee: Leif Hedstrom
> Fix For: 2.1.7
>
> Attachments: ats-no-redirect.txt
>
>
> Traffic Server does not seem to respect the redirect rules in remap.config at all. I've tried several iterations of the below to no avail.
> {code}
> # fgrep proxy.config.url_remap records.config
> CONFIG proxy.config.url_remap.default_to_server_pac INT 0
> CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1
> CONFIG proxy.config.url_remap.remap_required INT 0
> CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
> CONFIG proxy.config.url_remap.filename STRING remap.config
> # cat remap.config
> redirect https://naz-plone-2020/ https://2020.naz.edu/
> redirect http://naz-plone-2020/ http://2020.naz.edu/
> map https://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/https/naz-plone-2020/Plone/VirtualHostRoot
> map http://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/http/naz-plone-2020/Plone/VirtualHostRoot
> # traffic_line -x
> # curl -D- -o/dev/null http://naz-plone-2020 2> /dev/null
> HTTP/1.1 404 Not Found on Accelerator
> Date: Wed, 23 Feb 2011 01:20:37 GMT
> Connection: close
> Server: ATS/2.1.5-unstable
> Cache-Control: no-store
> Content-Type: text/html
> Content-Language: en
> Content-Length: 240
> {code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (TS-675) Traffic Server 2.1.5 does not respect
redirect directives in remap.config
Posted by "Michael A. Smith (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael A. Smith updated TS-675:
--------------------------------
Attachment: ats-no-redirect.txt
debug information showing that only the scheme is caught.
> Traffic Server 2.1.5 does not respect redirect directives in remap.config
> -------------------------------------------------------------------------
>
> Key: TS-675
> URL: https://issues.apache.org/jira/browse/TS-675
> Project: Traffic Server
> Issue Type: Bug
> Components: Remap API
> Affects Versions: 2.1.5
> Environment: Linux NAZ-PLONE-2020 2.6.36-gentoo-r5 #1 SMP Wed Feb 9 15:16:31 EST 2011 x86_64 Intel(R) Xeon(R) CPU E5540 @ 2.53GHz GenuineIntel GNU/Linux
> Apache Traffic Server - traffic_server - 2.1.5-unstable - (build # 1913 on Feb 9 2011 at 13:42:56)
> Reporter: Michael A. Smith
> Attachments: ats-no-redirect.txt
>
>
> Traffic Server does not seem to respect the redirect rules in remap.config at all. I've tried several iterations of the below to no avail.
> {code}
> # fgrep proxy.config.url_remap records.config
> CONFIG proxy.config.url_remap.default_to_server_pac INT 0
> CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1
> CONFIG proxy.config.url_remap.remap_required INT 0
> CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
> CONFIG proxy.config.url_remap.filename STRING remap.config
> # cat remap.config
> redirect https://naz-plone-2020/ https://2020.naz.edu/
> redirect http://naz-plone-2020/ http://2020.naz.edu/
> map https://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/https/naz-plone-2020/Plone/VirtualHostRoot
> map http://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/http/naz-plone-2020/Plone/VirtualHostRoot
> # traffic_line -x
> # curl -D- -o/dev/null http://naz-plone-2020 2> /dev/null
> HTTP/1.1 404 Not Found on Accelerator
> Date: Wed, 23 Feb 2011 01:20:37 GMT
> Connection: close
> Server: ATS/2.1.5-unstable
> Cache-Control: no-store
> Content-Type: text/html
> Content-Language: en
> Content-Length: 240
> {code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (TS-675) Traffic Server 2.1.5 does not respect
redirect directives in remap.config
Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom updated TS-675:
-----------------------------
Fix Version/s: 2.1.7
Marking these for v2.1.7 for now, that doesn't mean they will necessarily go in for v3.0, they could get pushed out for v3.1 unless someone works on them.
> Traffic Server 2.1.5 does not respect redirect directives in remap.config
> -------------------------------------------------------------------------
>
> Key: TS-675
> URL: https://issues.apache.org/jira/browse/TS-675
> Project: Traffic Server
> Issue Type: Bug
> Components: Remap API
> Affects Versions: 2.1.5
> Environment: Linux NAZ-PLONE-2020 2.6.36-gentoo-r5 #1 SMP Wed Feb 9 15:16:31 EST 2011 x86_64 Intel(R) Xeon(R) CPU E5540 @ 2.53GHz GenuineIntel GNU/Linux
> Apache Traffic Server - traffic_server - 2.1.5-unstable - (build # 1913 on Feb 9 2011 at 13:42:56)
> Reporter: Michael A. Smith
> Fix For: 2.1.7
>
> Attachments: ats-no-redirect.txt
>
>
> Traffic Server does not seem to respect the redirect rules in remap.config at all. I've tried several iterations of the below to no avail.
> {code}
> # fgrep proxy.config.url_remap records.config
> CONFIG proxy.config.url_remap.default_to_server_pac INT 0
> CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1
> CONFIG proxy.config.url_remap.remap_required INT 0
> CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
> CONFIG proxy.config.url_remap.filename STRING remap.config
> # cat remap.config
> redirect https://naz-plone-2020/ https://2020.naz.edu/
> redirect http://naz-plone-2020/ http://2020.naz.edu/
> map https://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/https/naz-plone-2020/Plone/VirtualHostRoot
> map http://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/http/naz-plone-2020/Plone/VirtualHostRoot
> # traffic_line -x
> # curl -D- -o/dev/null http://naz-plone-2020 2> /dev/null
> HTTP/1.1 404 Not Found on Accelerator
> Date: Wed, 23 Feb 2011 01:20:37 GMT
> Connection: close
> Server: ATS/2.1.5-unstable
> Cache-Control: no-store
> Content-Type: text/html
> Content-Language: en
> Content-Length: 240
> {code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Work started: (TS-675) Traffic Server 2.1.5 does not respect
redirect directives in remap.config
Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on TS-675 started by Leif Hedstrom.
> Traffic Server 2.1.5 does not respect redirect directives in remap.config
> -------------------------------------------------------------------------
>
> Key: TS-675
> URL: https://issues.apache.org/jira/browse/TS-675
> Project: Traffic Server
> Issue Type: Bug
> Components: Remap API
> Affects Versions: 2.1.5
> Environment: Linux NAZ-PLONE-2020 2.6.36-gentoo-r5 #1 SMP Wed Feb 9 15:16:31 EST 2011 x86_64 Intel(R) Xeon(R) CPU E5540 @ 2.53GHz GenuineIntel GNU/Linux
> Apache Traffic Server - traffic_server - 2.1.5-unstable - (build # 1913 on Feb 9 2011 at 13:42:56)
> Reporter: Michael A. Smith
> Assignee: Leif Hedstrom
> Fix For: 2.1.7
>
> Attachments: ats-no-redirect.txt
>
>
> Traffic Server does not seem to respect the redirect rules in remap.config at all. I've tried several iterations of the below to no avail.
> {code}
> # fgrep proxy.config.url_remap records.config
> CONFIG proxy.config.url_remap.default_to_server_pac INT 0
> CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1
> CONFIG proxy.config.url_remap.remap_required INT 0
> CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
> CONFIG proxy.config.url_remap.filename STRING remap.config
> # cat remap.config
> redirect https://naz-plone-2020/ https://2020.naz.edu/
> redirect http://naz-plone-2020/ http://2020.naz.edu/
> map https://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/https/naz-plone-2020/Plone/VirtualHostRoot
> map http://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/http/naz-plone-2020/Plone/VirtualHostRoot
> # traffic_line -x
> # curl -D- -o/dev/null http://naz-plone-2020 2> /dev/null
> HTTP/1.1 404 Not Found on Accelerator
> Date: Wed, 23 Feb 2011 01:20:37 GMT
> Connection: close
> Server: ATS/2.1.5-unstable
> Cache-Control: no-store
> Content-Type: text/html
> Content-Language: en
> Content-Length: 240
> {code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (TS-675) Traffic Server 2.1.5 does not respect
redirect directives in remap.config
Posted by "Leif Hedstrom (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom resolved TS-675.
------------------------------
Resolution: Fixed
> Traffic Server 2.1.5 does not respect redirect directives in remap.config
> -------------------------------------------------------------------------
>
> Key: TS-675
> URL: https://issues.apache.org/jira/browse/TS-675
> Project: Traffic Server
> Issue Type: Bug
> Components: Remap API
> Affects Versions: 2.1.5
> Environment: Linux NAZ-PLONE-2020 2.6.36-gentoo-r5 #1 SMP Wed Feb 9 15:16:31 EST 2011 x86_64 Intel(R) Xeon(R) CPU E5540 @ 2.53GHz GenuineIntel GNU/Linux
> Apache Traffic Server - traffic_server - 2.1.5-unstable - (build # 1913 on Feb 9 2011 at 13:42:56)
> Reporter: Michael A. Smith
> Assignee: Leif Hedstrom
> Fix For: 2.1.7
>
> Attachments: ats-no-redirect.txt
>
>
> Traffic Server does not seem to respect the redirect rules in remap.config at all. I've tried several iterations of the below to no avail.
> {code}
> # fgrep proxy.config.url_remap records.config
> CONFIG proxy.config.url_remap.default_to_server_pac INT 0
> CONFIG proxy.config.url_remap.default_to_server_pac_port INT -1
> CONFIG proxy.config.url_remap.remap_required INT 0
> CONFIG proxy.config.url_remap.pristine_host_hdr INT 0
> CONFIG proxy.config.url_remap.filename STRING remap.config
> # cat remap.config
> redirect https://naz-plone-2020/ https://2020.naz.edu/
> redirect http://naz-plone-2020/ http://2020.naz.edu/
> map https://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/https/naz-plone-2020/Plone/VirtualHostRoot
> map http://2020.naz.edu http://127.0.0.1:10000/VirtualHostBase/http/naz-plone-2020/Plone/VirtualHostRoot
> # traffic_line -x
> # curl -D- -o/dev/null http://naz-plone-2020 2> /dev/null
> HTTP/1.1 404 Not Found on Accelerator
> Date: Wed, 23 Feb 2011 01:20:37 GMT
> Connection: close
> Server: ATS/2.1.5-unstable
> Cache-Control: no-store
> Content-Type: text/html
> Content-Language: en
> Content-Length: 240
> {code}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira