On Wed, Apr 15, 2009 at 9:43 PM, Jonathan Gardner
<[email protected]> wrote:
>
> On Apr 15, 6:32 pm, Mike Orr <[email protected]> wrote:
>> 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 tohttp://localhost:8518
>> > and secure traffic tohttps://localhost:8519/
>>
>> > If I specify a url with h.url_for('/some_url', protocol='https'), then
>> > I would like to to produce a link tohttps://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.
>>
>
> I think it might be documented.
>
> That doesn't solve the problem, however. I want to be able to
> configure the "abc:123" part so that I don't have to hardcode it.

You can put it in the route path and set _static=True.


-- 
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