You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by 고우찬_Gilbert <gi...@kakao.com> on 2012/08/06 12:04:43 UTC
When Use Port 8080, I had problem.
Hi~
I should use Port 8080 instead of 80.
So,I changed Port 80 -> 8080.
But I have problem.
records.config
CONFIG proxy.config.http.server_port INT 8080
CONFIG proxy.config.http.server_port_attr STRING X
remap,config
map http://TS_URL:8080 http://ORIGIN_URL
I tested request with curl..
- curl http://TS_URL:8080/a.jpg ; OK
- Log
<cquuc> ; http://TS_URL:8080 - normal
%<{Host}cqh> ; TS_HOST - normal ( ex) - abc.def.com)
- curl -H "Host:TS_HOT" http://TS_IP:8080/a.jpg ; Fail
- Log
<cquuc> ; http:///a.jpg - abnormal
%<{Host}cqh> ; TS_HOST - normal
After Chage Port 8080 -> 80
- curl http://TS_URL/a.jpg ; OK
- Log
<cquuc> ; http://TS_URL - normal
%<{Host}cqh> ; TS_HOST - normal ( ex) - abc.def.com)
- curl -H "Host:TS_HOST" http://TS_IP/a.jpg ; OK
-Log
<cquuc> ; http://TS_URL - normal
%<{Host}cqh> ; TS_HOST - normal ( ex) - abc.def.com)
What't the meter???
Thanks !
Re: When Use Port 8080, I had problem.
Posted by Conan <co...@gmail.com>.
There is "map_with_recv_port" directive (described in
"remap.config.default"). Don't know if it help. You can have a test. :)
On Tue, Aug 7, 2012 at 11:17 AM, 고우찬_Gilbert <gi...@kakao.com> wrote:
> hi~
>
> I found out !
>
> curl -H "Host:TS_HOST" http://TS_IP:8080/a.jpg <http://ts_ip:8080/a.jpg> ;
> Fail
> curl -H "Host:TS_HOST:8080" http://TS_IP:8080/a.jpg<http://ts_ip:8080/a.jpg> ;
> OK..
>
> TS need Port Number in Host header.
>
>
> Actually, I will plan using nginx ( consistency proxy, Port 80 ) + traffic
> server ( port 8080 ).
>
> I changed nginx.conf. and all process OK~.
>
> nginx.conf
> proxy_set_header Host $host; -> not working
> proxy_set_header Host $host:8080 -> working !!
>
>
> Thanks~
>
>
>
>
>
>
Re: When Use Port 8080, I had problem.
Posted by 고우찬_Gilbert <gi...@kakao.com>.
hi~
I found out !
curl -H "Host:TS_HOST" http://TS_IP:8080/a.jpg<http://ts_ip:8080/a.jpg> ; Fail
curl -H "Host:TS_HOST:8080" http://TS_IP:8080/a.jpg<http://ts_ip:8080/a.jpg> ; OK..
TS need Port Number in Host header.
Actually, I will plan using nginx ( consistency proxy, Port 80 ) + traffic server ( port 8080 ).
I changed nginx.conf. and all process OK~.
nginx.conf
proxy_set_header Host $host; -> not working
proxy_set_header Host $host:8080 -> working !!
Thanks~
Re: When Use Port 8080, I had problem.
Posted by 고우찬_Gilbert <gi...@kakao.com>.
I already tested…
But still not working..
remap,config
map http://TS_URL:8080<http://ts_url:8080/> http://ORIGIN_URL<http://origin_url/>
reverse_map http://ORIGIN_URL<http://origin_url/> http://TS_URL:8080<http://ts_url:8080/>
Thanks~
2012. 8. 6., 오후 7:14, Reindl Harald <h....@thelounge.net>> 작성:
Am 06.08.2012 12:04, schrieb 고우찬_Gilbert:
Hi~
I should use Port 8080 instead of 80.
So,I changed Port 80 -> 8080.
But I have problem.
records.config
CONFIG proxy.config.http.server_port INT 8080
CONFIG proxy.config.http.server_port_attr STRING X
remap,config
map http://TS_URL:8080 http://ORIGIN_URL
you are missing the reverse map
sample below is a internal testmachine
where DNS points to it and the origin
httpd is the same machine on port 80
[root@buildserver:~]$ cat /etc/trafficserver/remap.config
map http://rhsoft.buildserver.thelounge.net:8080 http://rhsoft.buildserver.thelounge.net
reverse_map http://rhsoft.buildserver.thelounge.net http://rhsoft.buildserver.thelounge.net:8080
Re: When Use Port 8080, I had problem.
Posted by Reindl Harald <h....@thelounge.net>.
Am 06.08.2012 12:04, schrieb 고우찬_Gilbert:
> Hi~
>
> I should use Port 8080 instead of 80.
> So,I changed Port 80 -> 8080.
>
> But I have problem.
>
> records.config
> CONFIG proxy.config.http.server_port INT 8080
> CONFIG proxy.config.http.server_port_attr STRING X
>
>
> remap,config
> map http://TS_URL:8080 http://ORIGIN_URL
you are missing the reverse map
sample below is a internal testmachine
where DNS points to it and the origin
httpd is the same machine on port 80
[root@buildserver:~]$ cat /etc/trafficserver/remap.config
map http://rhsoft.buildserver.thelounge.net:8080 http://rhsoft.buildserver.thelounge.net
reverse_map http://rhsoft.buildserver.thelounge.net http://rhsoft.buildserver.thelounge.net:8080