On 20.04.2011, at 20:34, [email protected] wrote:

> On Apr 19, 2011 5:17pm, David Zülke <[email protected]> wrote:
> 
>> Your Apache is misconfigured. You have UseCanonicalName on, but your 
>> ServerName doesn't contain the port. Setting it only "Listen" and the 
>> VirtualHost setting (if you use one) isn't enough.
> 
> I am also not sure if other servers support this at all, lighttpd in 
> particular didn't last time I checked (and don't get me started on doing HTTP 
> AUTH with it)
> 
> Perhaps this should be more generic in Routing?

It works just fine in Lighty, it reports the correct port, and so does Nginx* 
:) It really is just a misconfigured Apache.

You can map any $_SERVER field too, for instance in case you're running behind 
a load balancer (this one is for EC2 LBs):

<ae:configuration environment="production.*" context="web">
  <request class="AgaviWebRequest">
    <ae:parameter name="sources">
      <ae:parameter name="SERVER_PORT">HTTP_X_FORWARDED_PORT</ae:parameter>
      <ae:parameter name="HTTPS">HTTP_X_FORWARDED_PROTO</ae:parameter>
    </ae:parameter>
  </request>
</ae:configuration>

Cheers,

David

*: actually, in Soviet Russia, port reports you :)


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to