2803media opened a new issue, #9266:
URL: https://github.com/apache/trafficserver/issues/9266

   Hi I want to use ATS to cache the tiles generate by the openmaptiles docker. 
The problem is the docker already use the port 8080 for localhost so I guess I 
can't use it for the config of proxy.config.http.server_ports, right?
   
   And previously I use proxypass in my vhost file is it redondant with the map 
in remap.config?
   
   My apache vhost:
   
   ```
   <IfModule mod_ssl.c>
   SSLStaplingCache shmcb:/var/run/apache2/stapling_cache(128000)
   <VirtualHost *:443>
      ServerName tiles.example.com
      Protocols h2 h2c http/1.1
   
      ErrorDocument 404 /404.html
   
      # disable proxy for the /font-family sub-directory
      # must be placed on top of the other ProxyPass directive
      ProxyPass /font-family !
      Alias "/font-family" "/var/www/font-family"
      #HTTP proxy
      ProxyPass / http://localhost:8080/
      ProxyPassReverse / http://localhost:8080/
      ProxyPreserveHost On
   
      ErrorLog ${APACHE_LOG_DIR}/tileserver-gl.error.log
      CustomLog ${APACHE_LOG_DIR}/tileserver-gl.access.log combined
   
     SSLCertificateFile /etc/letsencrypt/live/tiles.example.com/fullchain.pem
     SSLCertificateKeyFile /etc/letsencrypt/live/tiles.example.com/privkey.pem
     Include /etc/letsencrypt/options-ssl-apache.conf
     Header always set Strict-Transport-Security "max-age=31536000"
     SSLUseStapling on
     Header always set Content-Security-Policy upgrade-insecure-requests
     
     RequestHeader set X-Forwarded-Host "tiles.example.com"
     RequestHeader set X-Forwarded-Proto "https"
   
   </VirtualHost>
   </IfModule>
   
   ```
   
   the remap.config with support of SSL
   
   ```
   map http://tiles.example.com/ http://localhost:8080/
   map https://tiles.example.com/ http://localhost:8080/
   
   ```
   
   the record.config
   
   ```
   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
   CONFIG proxy.config.http.server_ports STRING 8080 8080:ipv6
   ```
   
   And of course the error generated at start:
   
   ```
   déc. 20 16:48:34 host6-vm107 systemd[1]: Started Apache Traffic Server is a 
fast, scalable and extensible caching proxy server..
   déc. 20 16:48:34 host6-vm107 traffic_manager[14575]: [E. Mgmt] log ==> 
[TrafficManager] using root directory '/usr'
   déc. 20 16:48:34 host6-vm107 traffic_manager[14575]: NOTE: --- Manager 
Starting ---
   déc. 20 16:48:34 host6-vm107 traffic_manager[14575]: NOTE: Manager Version: 
Apache Traffic Server - traffic_manager - 8.0.5 - (build # 020310 on Feb  3 
2020 at 10:45:17)
   déc. 20 16:48:34 host6-vm107 traffic_manager[14575]: Fatal: [bindProxyPort] 
Unable to bind socket: 8080 : Address already in use
   déc. 20 16:48:34 host6-vm107 traffic_manager[14575]: Fatal: [bindProxyPort] 
Unable to bind socket: 8080 : Address already in use
   déc. 20 16:48:34 host6-vm107 systemd[1]: trafficserver.service: Main process 
exited, code=exited, status=70/SOFTWARE
   déc. 20 16:48:34 host6-vm107 systemd[1]: trafficserver.service: Failed with 
result 'exit-code'.
   ```
   Thanks for your inputs!


-- 
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