[Zope-dev] ZServer hardcodes "http"

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Tue, 12 Oct 1999 09:01:12 +1000


Hi there,

Make sure your HTTPS_Server passes the environment variable 
'HTTPS=on' to Zope, then it will 'do the right thing'.

Anthony

>>> Ng Pheng Siong wrote
> Hi,
> 
> I've put together a HTTPS_Server for ZServer, based on my https_server.
> 
> Let's say I run HTTPS_Server at https://127.0.0.1:8443. I can get to
> Zope's default main screen; however the url's returned are http,
> e.g., http://127.0.0.1:8443/QuickStart. That is, these are _http_
> urls pointing to my _https_ server.
> 
> Naturally, when I connect to such a url, the server generates a
> SSL23_GET_CLIENT_HELLO error, because my browser is talking http, not 
> https.
> 
> 
> Using HTTPServer, I look at the DTML for index_html and see:
> 
>     <a href="<!--#var URL1-->/QuickStart/">QuickStart</a> material.
> 
> Browse around the web UI... Didn't see anywhere to change URL1 easily.
> 
> 
> So, RTFM... Ok, found the explanation for URLn under "name lookup" in 
> the DTML Reference. 
> 
> Fine. But I'm still stuck. 
> 
> Thus, my questions are: why is "http" hardcoded, and where do I change 
> it?
> 
> TIA. Cheers.
> 
> 
> PS. https_server comes with M2Crypto. http://www.post1.com/home/ngps
> 
> PPS. I'm not subscribed to the list. Please cc your replies to me.
> 
> -- 
> Ng Pheng Siong <ngps@post1.com>
> 
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://www.zope.org/mailman/listinfo/zope-dev
> 
> (Related lists - please, no cross posts or HTML encoding!
> 
> To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
> 
> For non-developer, user-level issues, 
> zope@zope.org, http://www.zope.org/mailman/listinfo/zope )

-- 
Anthony Baxter     <anthony@interlink.com.au>   
It's never too late to have a happy childhood.