#1281: Forcing the url scheme to https is not possible
-----------------------------------------+----------------------------------
Reporter: sven.kretschm...@… | Owner: david
Type: defect | Status: new
Priority: normal | Milestone: 1.0.4
Component: request | Version: 1.0.3
Severity: normal | Keywords:
Has_patch: 0 |
-----------------------------------------+----------------------------------
Comment(by david):
Mind you... {{{sources}}} is primarily an instrument to re-map lookup
variables. It will only use the configuration values as literals if they
aren't found using a key lookup. Example:
{{{
#!xml
<ae:parameter name="sources">
<ae:parameter name="SERVER_NAME">HTTP_X_FORWARDED_HOST</ae:parameter>
</ae:parameter>
}}}
That'll look up the server hostname in
{{{$_SERVER['HTTP_X_FORWARDED_HOST']}}} rather than
{{{$_SERVER['SERVER_NAME']}}}. If this key doesn't exist, it will use
"HTTP_X_FORWARDED_HOST" literally. That's why you can also use this to
provide static values in case you don't have an alternate header or
similar to map to:
{{{
#!xml
<ae:parameter name="sources">
<ae:parameter name="SERVER_PORT">80</ae:parameter>
</ae:parameter>
}}}
--
Ticket URL: <http://trac.agavi.org/ticket/1281#comment:4>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets