[Dancer-users] Get the Host that I am running under

Gurunandan Bhat gbhat at pobox.com
Fri Jun 24 15:59:04 CEST 2011


Thank you.



On Fri, Jun 24, 2011 at 7:20 PM, Maxim Nikolenko <root at zbsd.ru> wrote:

> **
> $ENV{HTTP_HOST} should be equal to the value, provided by "Host: " Request
> Header field.
>
> I think you should check out documentation about passing this value to the
> backend (ProxyPreserveHost directive)
>
> http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypreservehost
>
>
> 24.06.2011 17:43, Gurunandan Bhat пишет:
>
> Hi,
>
> I am currently fetching the host my application is running under by
> fetching $ENV{HTTP_HOST} inside a route handler. Very soon, I plan to host
> this behind Apache with mod_proxy.
>
> How can I get the hostname of the proxy when that happens?
>
> Thanks
>
>
> _______________________________________________
> Dancer-users mailing listDancer-users at perldancer.orghttp://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>
>
>
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110624/0c9344c5/attachment.htm>


More information about the Dancer-users mailing list