[ 
https://issues.apache.org/jira/browse/TS-3897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14737073#comment-14737073
 ] 

Bryan Call commented on TS-3897:
--------------------------------

It is working for me on Fedora 22 with this setup:

Configuration:
{code}
[bcall@homer ~]$ tail -1 /usr/local/etc/trafficserver/remap.config
regex_map http://(.*).aa.com/ http://$1.aa.com
{code}

Client:
{code}
[bcall@homer ~]$ curl -D - -H 'Host: www.aa.com' http://127.0.0.1:8080/
HTTP/1.1 301 Moved Permanently
{code}

Server:
{code}
sudo /usr/local/bin/traffic_server -T http
...
[Sep  9 08:50:55.768] Server {0x7f124a9ce700} DEBUG: (http) [0] open connection 
to www.aa.com: 96.7.189.41:80
...
{code}

> Getting 404s with regex_map
> ---------------------------
>
>                 Key: TS-3897
>                 URL: https://issues.apache.org/jira/browse/TS-3897
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: HTTP
>    Affects Versions: 6.0.0
>            Reporter: Bryan Call
>            Priority: Blocker
>             Fix For: 6.0.0
>
>
> build pass on Debian 7 64bit, 
> but ts behaved strangely with old config that previous work for v5.3.1 
> (reverse proxy):
> ats return HTTP/1.1 404 Not Found on Accelerator for all request ~
> remap.config:
> regex_map       http://(.*).aa.com/                            
> http://$1.aa.com/
> diag.log:
> [Sep  9 11:49:16.506] Server {0x2b6567a0e700} NOTE: cache enabled
> [Sep  9 11:49:17.890] Server {0x2b6568014700} WARNING: pcre_exec() failed 
> with error code 0
> [Sep  9 11:49:17.892] Server {0x2b6566687e00} NOTE: traffic server running
> [Sep  9 11:53:32.954] Server {0x2b6568115700} WARNING: pcre_exec() failed 
> with error code 0
> [Sep  9 11:53:38.587] Server {0x2b6566687e00} WARNING: pcre_exec() failed 
> with error code 0
> [Sep  9 11:59:57.908] Server {0x2b6567c10700} WARNING: pcre_exec() failed 
> with error code 0
> [Sep  9 12:04:42.012] Server {0x2b656770b700} WARNING: pcre_exec() failed 
> with error code 0
> [Sep  9 12:05:30.299] Server {0x2b6567e12700} WARNING: pcre_exec() failed 
> with error code 0
> traffic.out(debug)
> [Sep  9 12:23:43.091] Server {0x2b6567d11700} DEBUG: (dns) 
> [HttpTransact::HandleRequest] Skipping DNS lookup for 127.0.0.1 because it's 
> loopback
> [Sep  9 12:23:53.094] Server {0x2b6567e12700} DEBUG: (dns) 
> [HttpTransact::HandleRequest] Skipping DNS lookup for 127.0.0.1 because it's 
> loopback
> [Sep  9 12:24:03.098] Server {0x2b6567f13700} DEBUG: (dns) 
> [HttpTransact::HandleRequest] Skipping DNS lookup for 127.0.0.1 because it's 
> loopback
> [Sep  9 12:24:13.102] Server {0x2b6568014700} DEBUG: (dns) 
> [HttpTransact::HandleRequest] Skipping DNS lookup for 127.0.0.1 because it's 
> loopback
> [Sep  9 12:24:23.105] Server {0x2b6568115700} DEBUG: (dns) 
> [HttpTransact::HandleRequest] Skipping DNS lookup for 127.0.0.1 because it's 
> loopback
> [Sep  9 12:24:33.109] Server {0x2b6566687e00} DEBUG: (dns) 
> [HttpTransact::HandleRequest] Skipping DNS lookup for 127.0.0.1 because it's 
> loopback



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to