On Wed, Apr 15, 2009 at 3:13 PM, [email protected]
<[email protected]> wrote:
>
> I may be missing this in the documentation somewhere...
>
> I have my site setup to run on port 8518. I want the secure port to be
> on 8519. That means that regular traffic would go to http://localhost:8518
> and secure traffic to https://localhost:8519/
>
> If I specify a url with h.url_for('/some_url', protocol='https'), then
> I would like to to produce a link to https://localhost:8519/some_url.
> How do I configure it to do that?

It looks like you can add it to the host argument.

>>> url("/search", host="abc:123")
'http://abc:123/search'

I guess that should be documented.

-- 
Mike Orr <[email protected]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to