mlibbey commented on issue #9526:
URL: https://github.com/apache/trafficserver/issues/9526#issuecomment-1472316533

   Looks like you have ATS only listening on ports 82 and 8443. So, when you 
tell your client to go to those ports, ATS is in the picture. When you have 
your client use the default 443, it would not be in the picture.
   
   I'm guessing that you are trying to run ATS and Apache httpd on the same 
machine, and are really asking, how can I have ATS always take the traffic and 
proxy over to httpd? If so,
   - I'd change the ATS ports to the defaults (proxy.config.http.server_ports)
   - change the httpd ports to non-standard ones (eg, flip flop your current 
set up -- have httpd take 82 and 8443, and ats take 80/443
   - change your remap to be like 
   
   ```
   map https://tiles.example.com https://127.0.0.1:8443
   map http://tiles.example.com http://127.0.0.1:82
   ```
   
   since you have proxy.config.url_remap.pristine_host_hdr set to 1, the Host: 
header that ATS will send to httpd will remain tiles.example.com.
   If you wanted to run on different machines, then perhaps you could make a 
DNS name of origin.tiles.example.com that points to the httpd machine IPs, then 
use `map https://tiles.example.com https://origin.tiles.example.com ...`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to