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 19:09:07 GMT
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
map http://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:
 

  <!--#yiv3276921609 _filtered #yiv3276921609 {font-family:"Cambria Math";panose-1:2 4
5 3 5 4 6 3 2 4;} _filtered #yiv3276921609 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3
2 4;}#yiv3276921609 #yiv3276921609 p.yiv3276921609MsoNormal, #yiv3276921609 li.yiv3276921609MsoNormal,
#yiv3276921609 div.yiv3276921609MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri",
sans-serif;}#yiv3276921609 a:link, #yiv3276921609 span.yiv3276921609MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv3276921609
a:visited, #yiv3276921609 span.yiv3276921609MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv3276921609
span.yiv3276921609EmailStyle17 {font-family:"Calibri", sans-serif;color:windowtext;}#yiv3276921609
.yiv3276921609MsoChpDefault {font-family:"Calibri", sans-serif;} _filtered #yiv3276921609
{margin:1.0in 1.0in 1.0in 1.0in;}#yiv3276921609 div.yiv3276921609WordSection1 {}-->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 at
http://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 hit http://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_map
http://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