[Dancer-users] Get the Host that I am running under
Stefan Hornburg (Racke)
racke at linuxia.de
Fri Jun 24 15:53:50 CEST 2011
On 06/24/2011 03:43 PM, Gurunandan Bhat wrote:
> 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?
>
Why do you need the hostname at all?
If everything is configured correctly as described in Dancer::Deployment and
Dancer::Config (behind_proxy), you can construct URLs for redirects and such
with uri_for.
Regards
Racke
--
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team
More information about the Dancer-users
mailing list