It is possible to set an specific domain when the request contains header(x-forwarded-photo) in assets config ?
Now I have this:
framework:
router: { resource: "%kernel.root_dir%/config/routing_dev.yml" }
templating:
assets_base_urls:
http: [http://a.com]
ssl: [https://a.com]
I need that to this configuration
cliente -> https -> load balancer -> http -> apache
I found this that solves the issue
HTTP_X_FORWARDED_FOR,X_FORWARDED_PROTO, andX_FORWARDED_HOST). If your application is behind a reverse proxy, add thefollowing configuration:
framework:
trust_proxy_headers: true