trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Carroll <solidwallofc...@yahoo-inc.com>
Subject Re: Need help with a particular usage scenario
Date Wed, 20 Jan 2016 20:18:46 GMT
A couple of things to try -
1) Drop the :80
2) Turn on debug tags with a value of "http|dns" and see what you get. Those tend to be informative
in this regard, as you will be able to see exactly what ATS thinks it is connecting to. 

    On Wednesday, January 20, 2016 2:05 PM, Victor Danilchenko <vdanilchenko@cimpress.com>
wrote:
 

 #yiv2744081655 #yiv2744081655 -- _filtered #yiv2744081655 {font-family:Helvetica;panose-1:2
11 6 4 2 2 2 2 2 4;} _filtered #yiv2744081655 {panose-1:2 4 5 3 5 4 6 3 2 4;} _filtered #yiv2744081655
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv2744081655 {panose-1:2
11 6 9 4 5 4 2 2 4;}#yiv2744081655 #yiv2744081655 p.yiv2744081655MsoNormal, #yiv2744081655
li.yiv2744081655MsoNormal, #yiv2744081655 div.yiv2744081655MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}#yiv2744081655
a:link, #yiv2744081655 span.yiv2744081655MsoHyperlink {color:blue;text-decoration:underline;}#yiv2744081655
a:visited, #yiv2744081655 span.yiv2744081655MsoHyperlinkFollowed {color:purple;text-decoration:underline;}#yiv2744081655
p.yiv2744081655msonormal, #yiv2744081655 li.yiv2744081655msonormal, #yiv2744081655 div.yiv2744081655msonormal
{margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv2744081655 p.yiv2744081655msochpdefault,
#yiv2744081655 li.yiv2744081655msochpdefault, #yiv2744081655 div.yiv2744081655msochpdefault
{margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv2744081655 span.yiv2744081655msohyperlink
{}#yiv2744081655 span.yiv2744081655msohyperlinkfollowed {}#yiv2744081655 span.yiv2744081655emailstyle17
{}#yiv2744081655 p.yiv2744081655msonormal1, #yiv2744081655 li.yiv2744081655msonormal1, #yiv2744081655
div.yiv2744081655msonormal1 {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;}#yiv2744081655
span.yiv2744081655msohyperlink1 {color:#0563C1;text-decoration:underline;}#yiv2744081655 span.yiv2744081655msohyperlinkfollowed1
{color:#954F72;text-decoration:underline;}#yiv2744081655 span.yiv2744081655emailstyle171 {color:windowtext;}#yiv2744081655
p.yiv2744081655msochpdefault1, #yiv2744081655 li.yiv2744081655msochpdefault1, #yiv2744081655
div.yiv2744081655msochpdefault1 {margin-right:0in;margin-left:0in;font-size:12.0pt;}#yiv2744081655
span.yiv2744081655EmailStyle27 {color:#1F497D;}#yiv2744081655 .yiv2744081655MsoChpDefault
{font-size:10.0pt;} _filtered #yiv2744081655 {margin:1.0in 1.0in 1.0in 1.0in;}#yiv2744081655
div.yiv2744081655WordSection1 {}#yiv2744081655 Ah, thank you very much, updating the maps
did change things! Right now I am getting error messages that kinda make sense.    So, here’s
my new remap settings:    map http://mediawiki.mycompany.com:8080/  http://localhost:80/
reverse_map http://localhost:80/  http://mediawiki.mycompany.com:8080/    When I try to
hithttp://mediawiki.mycompany.com:8080/phpinfo2.php in the browser now, I get a 502 response
after a lengthy timeout:    internal error - server connection terminated    and on the
server, in error.log, the following gets recorded:    20160120.14h51m15s RESPONSE: sent 10.87.40.108
status 502 (Connect Error <internal error - server connection terminated/-19999>) for
'http://localhost:80/phpinfo2.php'    I tried this both using localhost in the maps, and
FQDNs everywhere, the result is the same. I most definitely can get this URL on the server
using curl:    $ curl -Is http://localhost:80/phpinfo2.php | grep ^HTTP HTTP/1.1 200 OK 
  So it looks like for some weird reason, TrafficServer is trying – and failing – to
contact the origin provider.    Any idea what might be going wrong?    Thanks so much for
your help!       From: Alan Carroll [mailto:solidwallofcode@yahoo-inc.com]
Sent: Wednesday, January 20, 2016 2:09 PM
To: users@trafficserver.apache.org
Subject: Re: Need help with a particular usage scenario    Hmmm. A parent proxy set up might
work better. The logging of empty URLs is a bug in the logging code which has been fixed (current
ATS version is 6.0). If you are doing remap, you need a forward map as well like    maphttp://mediawiki.mycompany.com:8080/
http://mediawiki.mycompany/    reverse_map, if I recall correctly, only applies to response
headers from the origin, to modify them to use the proxy URL instead of the origin URL (as
supplied by the origin).    I'd recommend moving up in versions, to at least 5.3.x.    On
Wednesday, January 20, 2016 12:23 PM, Victor Danilchenko <vdanilchenko@cimpress.com>
wrote:    Hi all,   I need to set up a caching proxy to not work as a proxy, but rather
to simply provide caching upon direct access. For example:   There’s a Mediawiki installation
running athttp://mediawiki.mycompany.com And I need to set up a proxy on an alternative port,http://mediawiki.mycompany.com:8080,
which would do nothing but serve up the traffic from the default port, but cached (we aren’t
trying to cache the entire MediaWiki installation, but rather provide an alternative entry
point for a specific use case).   I am having trouble figuring out what it would take to
set up TrafficServer to do this. I set it up (Ubuntu Vivid, TS 3.2.4), but TS logs empty URLs
(http:///) and of course fails to find them – presumably because it doesn’t receive the
customary proxy HTTP headers; so I hithttp://mediawiki.mycompany.com:8080, and only get back
404s.   Is there an easy way to accomplish what I am looking to do? Here’s the config I
have right now.   In records.config (in addition to all the standard defaults):   CONFIG
proxy.config.http.server_ports STRING 8080 CONFIG proxy.config.http.cache.http INT 1 CONFIG
proxy.config.reverse_proxy.enabled INT 1 CONFIG proxy.config.url_remap.remap_required INT
1 CONFIG proxy.config.url_remap.pristine_host_hdr INT 1   And in remap.config:   reverse_maphttp://mediawiki.mycompany.com/ http://mediawiki.mycompany.com:8080/
  I have never set up a proxy before.   Any suggestions on what I need to do? Thanks.   


  
Mime
View raw message