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

Gurunandan Bhat gbhat at pobox.com
Fri Jun 24 16:07:11 CEST 2011


That, I was not aware of. Thank you for pointing it out.



On Fri, Jun 24, 2011 at 7:33 PM, Alex Kalderimis <alex at intermine.org> wrote:

> On Fri, Jun 24, 2011 at 07:30:59PM +0530, Gurunandan Bhat wrote:
> > I need to send the public facing URL of the application in an email to
> > confirm registration
> >
> > Thanks
>
> Again, there uri_for is your friend, as any uri, even the
> application's root uri can be constructed.
>
> Alex
>
> >
> >
> > On Fri, Jun 24, 2011 at 7:23 PM, Stefan Hornburg (Racke)
> > <racke at linuxia.de>wrote:
> >
> > > 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
> > >
> > >
> > > ______________________________**_________________
> > > Dancer-users mailing list
> > > Dancer-users at perldancer.org
> > > http://www.backup-manager.org/**cgi-bin/listinfo/dancer-users<
> http://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/a3232730/attachment-0001.htm>


More information about the Dancer-users mailing list